query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Creates a String from a URI, the URI can be relative or absolute, the URI is decoded. TODO Why can't I just return uri.toString()??? | public static String toString(URI uri) {
StringBuffer buffer = new StringBuffer();
if (uri.getScheme() != null) {
buffer.append(uri.getScheme());
buffer.append(":");
}
buffer.append(uri.getSchemeSpecificPart());
if (uri.getFragment() != null) {
buffer.append("#");
buffer.append(uri.getFragment());
}
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String encode(String uri) {\n return uri;\n }",
"URI uri();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"String getUri( );",
"URI createURI();",
"String getURI();",
"String getURI();",
"String getURI();",
"public static String encodedURI(String uri, String decodedUri) {\r\n\t\tfinal String charToReplace = \":\";\r\n\t\tfinal String replacementChar = \"-\";\r\n\t\tif (decodedUri.startsWith(charToReplace)) {\r\n\t\t\tdecodedUri = decodedUri.substring(1); // remove leading char to replace, if any\r\n\t\t}\r\n\t\tString result = \"\";\r\n\t\tif (!uri.equals(decodedUri)) { // was the uri prefixable?\r\n\t\t\t// first, duplicate every pre-existing replacementChar to guarantee unity\r\n\t\t\tresult = decodedUri.replace(replacementChar, replacementChar + replacementChar);\r\n\t\t\t// replace the character to replace with a replacement character to make it a valid fragment\r\n\t\t\tresult = decodedUri.replace(charToReplace, replacementChar);\r\n\t\t} else {\r\n\t\t\tresult = IRILib.encodeUriComponent(decodedUri); // for non-prefixable uri's, just take the encoded form\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"String getUri();",
"URI getUri();",
"String getBaseUri();",
"public DsByteString getURIAsString() {\n DsURI uri = null;\n return (m_nameAddress != null && (uri = m_nameAddress.getURI()) != null)\n ? uri.getValue()\n : null;\n }",
"private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}",
"abstract String getUri();",
"@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }",
"public static String makeResourceFromURI(String uri) {\n String path = uri.substring(MagicNames.ANTLIB_PREFIX.length());\n String resource;\n if (path.startsWith(\"//\")) {\n //handle new style full paths to an antlib, in which\n //all but the forward slashes are allowed.\n resource = path.substring(\"//\".length());\n if (!resource.endsWith(\".xml\")) {\n //if we haven't already named an XML file, it gets antlib.xml\n resource += ANTLIB_XML;\n }\n } else {\n //convert from a package to a path\n resource = path.replace('.', '/') + ANTLIB_XML;\n }\n return resource;\n }",
"@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }",
"private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}",
"public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }",
"public Object build( URI uri ) throws DecodingException, IOException\r\n {\r\n Document document = DOCUMENT_BUILDER.parse( uri );\r\n Element root = document.getDocumentElement();\r\n Resolver resolver = new SimpleResolver();\r\n return decode( root , resolver );\r\n }",
"private static String getUrlString(String urlSpec) throws IOException {\n String urlString = StringUtils.EMPTY_STRING;\n byte[] bytes = getUrlBytes(urlSpec);\n if (!Utils.isNull(bytes)) {\n urlString = new String(bytes);\n }\n return urlString;\n }",
"private static String decodeAndCleanUriString(HttpServletRequest request, String uri) {\n uri = decodeRequestString(request, uri);\n int semicolonIndex = uri.indexOf(';');\n return (semicolonIndex != -1 ? uri.substring(0, semicolonIndex) : uri);\n }",
"com.google.protobuf.ByteString\n getUriBytes();",
"com.google.protobuf.ByteString\n getUriBytes();",
"static String convertURLToString(URL url) {\n\t\tif (URISchemeType.FILE.isURL(url)) {\n\t\t\tfinal StringBuilder externalForm = new StringBuilder();\n\t\t\texternalForm.append(url.getPath());\n\t\t\tfinal String ref = url.getRef();\n\t\t\tif (!Strings.isEmpty(ref)) {\n\t\t\t\texternalForm.append(\"#\").append(ref); //$NON-NLS-1$\n\t\t\t}\n\t\t\treturn externalForm.toString();\n\t\t}\n\t\treturn url.toExternalForm();\n\t}",
"public String getUri();",
"private String getFullLocalURI(String uri) {\n return LOCAL_NS_PREFIX + \":\" + uri;\n }",
"public static String verifierUri(String uri) {\n\t\treturn uri.charAt(uri.length() - 1) == '/' ? uri : uri + \"/\";\n\t}",
"protected String getEscapedUri(String uriToEscape) {\r\n\t\treturn UriComponent.encode(uriToEscape, UriComponent.Type.PATH_SEGMENT);\r\n\t}",
"public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}",
"public String toString() {\n StringBuffer uriSpecString = new StringBuffer();\n \n if (m_scheme != null) {\n uriSpecString.append(m_scheme);\n uriSpecString.append(':');\n }\n uriSpecString.append(getSchemeSpecificPart());\n return uriSpecString.toString();\n }",
"public static File toFile(URI uri) {\n// if (uri.getScheme() == null) {\n// try {\n// uri = new URI(\"file\", uri.getSchemeSpecificPart(), null);\n// } catch (URISyntaxException e) {\n// // should never happen\n// Logger.getLogger(URIUtils.class).fatal(uri, e);\n// }\n// }\n\t\treturn new File((File) null, uri.getSchemeSpecificPart());\n\t}",
"public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}",
"static String uriUnescapeString(String escaped) {\n try {\n return URLDecoder.decode(escaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }",
"private URI makeUri(String source) throws URISyntaxException {\n if (source == null)\n source = \"\";\n\n if ((source.length()>0)&&((source.substring(source.length() - 1)).equals(\"/\") ))\n source=source.substring(0, source.length() - 1);\n\n return new URI( source.toLowerCase() );\n }",
"public static Object encodeURI(final Object self, final Object uri) {\n return URIUtils.encodeURI(self, JSType.toString(uri));\n }",
"@NotNull URI getURI();",
"static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}",
"public static String getRealFilePathFromUri(final Context context, final Uri uri) {\n if (null == uri) return null;\n final String scheme = uri.getScheme();\n String data = null;\n if (scheme == null)\n data = uri.getPath();\n else if (ContentResolver.SCHEME_FILE.equals(scheme)) {\n data = uri.getPath();\n } else if (ContentResolver.SCHEME_CONTENT.equals(scheme)) {\n Cursor cursor = context.getContentResolver().query(uri, new String[]{MediaStore.Images.ImageColumns.DATA}, null, null, null);\n if (null != cursor) {\n if (cursor.moveToFirst()) {\n int index = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n if (index > -1) {\n data = cursor.getString(index);\n }\n }\n cursor.close();\n }\n }\n return data;\n }",
"private String getFullRemoteURI(String uri) {\n return REMOTE_NS_PREFIX + \":\" + uri;\n }",
"public static String getURI(){\n\t\treturn uri;\n\t}",
"java.lang.String getResourceUri();",
"public static String getURI() {\n return uri;\n }",
"public static URI createURI(String path) {\n\t\tpath = path.replace('\\\\', '/');\n\t\treturn URI.create(encodeURI(path));\n\t}",
"public abstract String encodeURL(CharSequence url);",
"public static Object decodeURI(final Object self, final Object uri) {\n return URIUtils.decodeURI(self, JSType.toString(uri));\n }",
"public static String decodePath(String href) {\r\n // For IPv6\r\n href = href.replace(\"[\", \"%5B\").replace(\"]\", \"%5D\");\r\n\r\n // Seems that some client apps send spaces.. maybe..\r\n href = href.replace(\" \", \"%20\");\r\n // ok, this is milton's bad. Older versions don't encode curly braces\r\n href = href.replace(\"{\", \"%7B\").replace(\"}\", \"%7D\");\r\n try {\r\n if (href.startsWith(\"/\")) {\r\n URI uri = new URI(\"http://anything.com\" + href);\r\n return uri.getPath();\r\n } else {\r\n URI uri = new URI(\"http://anything.com/\" + href);\r\n String s = uri.getPath();\r\n return s.substring(1);\r\n }\r\n } catch (URISyntaxException ex) {\r\n throw new RuntimeException(ex);\r\n }\r\n }",
"protected String uri(String path) {\n return baseURI + '/' + path;\n }",
"public static String readUrlToString(String url){\n \tString out = \"\";\n \tBufferedReader in = null;\n \t\n \ttry { \n URL theUrl = new URL(url); \n in = new BufferedReader(new InputStreamReader(theUrl.openStream())); \n String inputLine; \n \n while ((inputLine = in.readLine()) != null) { \n out = out + inputLine; \n }\n } catch (Exception e) { \n e.printStackTrace();\n \n }finally{\n \ttry {\n\t\t\t\tin.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n return out;\n\t}",
"public static String get_path_from_URI(Context context, Uri uri) {\r\n String result;\r\n Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);\r\n if (cursor == null) {\r\n result = uri.getPath();\r\n } else {\r\n cursor.moveToFirst();\r\n int idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\r\n result = cursor.getString(idx);\r\n cursor.close();\r\n }\r\n return result;\r\n }",
"public byte[] uri() {\n return uri;\n }",
"public static String getStringDataFromNetwork(Uri uri) {\n String networkData = null;\n\n try {\n URL matchesURL = new URL(uri.toString());\n networkData = NetworkClient.getStringDataFromNetwork(matchesURL);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"Malformed URL: \" + e.getMessage());\n e.printStackTrace();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n e.printStackTrace();\n }\n\n return networkData;\n }",
"public String getFileName(Uri uri) {\n String result = null;\n int cut;\n\n String scheme = uri.getScheme();\n if (scheme != null && scheme.equals(\"content\")) {\n //\n // query the URI provider for the file name\n //\n try (Cursor cursor = getContentResolver().query(uri, new String[]{OpenableColumns.DISPLAY_NAME}, null, null, null)) {\n if (cursor != null && cursor.moveToFirst()) {\n result = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n }\n }\n }\n if (result != null)\n return result;\n\n result = uri.getPath();\n try {\n assert result != null;\n cut = result.lastIndexOf('/');\n } catch (NullPointerException e) {\n cut = -1;\n }\n if (cut != -1)\n result = result.substring(cut + 1);\n\n return result;\n }",
"public static String uriToPath(String u) {\n return uriToPath(uriStoreLocation(u), u.substring(6));\n }",
"public String GET(String uri) {\n String retVal = \"\";\n try {\n request = HttpRequest.newBuilder()\n .GET()\n .uri(new URI(uri))\n .build();\n\n response = HttpClient.newBuilder()\n .build()\n .send(request, HttpResponse.BodyHandlers.ofString());\n\n retVal = response.body().toString();\n }\n catch (Exception e) {\n // correctly handles the exception according to framework\n // for this case, just returns an empty string\n }\n return retVal;\n }",
"private String getRealPathFromURI(Uri contentUri) {\n String[] proj = {MediaStore.Images.Media.DATA};\n CursorLoader loader = new CursorLoader(this, contentUri, proj, null, null, null);\n Cursor cursor = loader.loadInBackground();\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n String result = cursor.getString(column_index);\n cursor.close();\n return result;\n }",
"public static URI toURI(String filenameOrFileURI) {\n File file = toFile(filenameOrFileURI);\n return file==null?null:file.toURI();\n }",
"static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }",
"private String getPathFromUri(Uri uri) {\n\n String path = \"\";\n\n String[] projection = {MediaColumns.DATA};\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n\n try {\n int column_index = cursor.getColumnIndexOrThrow(MediaColumns.DATA);\n if (cursor.moveToFirst()) {\n path = cursor.getString(column_index);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n cursor.close();\n\n return path;\n }",
"public String getUri() {\n return uri;\n }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public static URI toPublicURI(URI uri) {\r\n if (getPassword(uri) != null) {\r\n final String username = getUsername(uri);\r\n final String scheme = uri.getScheme();\r\n final String host = uri.getHost();\r\n final int port = uri.getPort();\r\n final String path = uri.getPath();\r\n final String query = uri.getQuery();\r\n final String fragment = uri.getFragment();\r\n final String userInfo = username == null ? null : username + \":***\";\r\n try {\r\n return new URI(scheme, userInfo, host, port, path, query, fragment);\r\n } catch (URISyntaxException e) {\r\n // Should never happen\r\n }\r\n }\r\n return uri;\r\n }",
"public String getUri()\r\n {\r\n return uri;\r\n }",
"public URI toURI( URL url ) throws URISyntaxException {\n\t\treturn toURI(url.toString());\n\t}",
"public static String getUriValue() {\n\t\treturn uriValue;\n\t}",
"protected String getTildered(String wrappedUri) {\r\n\t\treturn wrappedUri.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\r\n\t}",
"public static String getRealFilePath( final Context context, final Uri uri ) {\n\n if ( null == uri ) return null;\n\n final String scheme = uri.getScheme();\n String data = null;\n\n if ( scheme == null )\n data = uri.getPath();\n else if ( ContentResolver.SCHEME_FILE.equals( scheme ) ) {\n data = uri.getPath();\n } else if ( ContentResolver.SCHEME_CONTENT.equals( scheme ) ) {\n Cursor cursor = context.getContentResolver().query( uri, new String[] { Images.ImageColumns.DATA }, null, null, null );\n if ( null != cursor ) {\n if ( cursor.moveToFirst() ) {\n int index = cursor.getColumnIndex( Images.ImageColumns.DATA );\n if ( index > -1 ) {\n data = cursor.getString( index );\n }\n }\n cursor.close();\n }\n }\n return data;\n }",
"private String convertUriToPath(Uri object) {\n Object object2;\n Throwable throwable22222;\n block6 : {\n Object object3;\n block5 : {\n object2 = null;\n if (object == null) return object2;\n object2 = ((Uri)object).getScheme();\n if (object2 == null) return ((Uri)object).getPath();\n if (((String)object2).equals(\"\")) return ((Uri)object).getPath();\n if (((String)object2).equals(\"file\")) return ((Uri)object).getPath();\n if (((String)object2).equals(\"http\")) return ((Uri)object).toString();\n if (((String)object2).equals(\"https\")) return ((Uri)object).toString();\n if (!((String)object2).equals(\"content\")) throw new IllegalArgumentException(\"Given Uri scheme is not supported\");\n object3 = null;\n object2 = null;\n object = this.mContext.getContentResolver().query((Uri)object, new String[]{\"_data\"}, null, null, null);\n if (object == null) break block5;\n object2 = object;\n object3 = object;\n if (object.getCount() == 0) break block5;\n object2 = object;\n object3 = object;\n if (!object.moveToFirst()) break block5;\n object2 = object;\n object3 = object;\n String string2 = object.getString(object.getColumnIndexOrThrow(\"_data\"));\n object2 = string2;\n object.close();\n return object2;\n }\n object2 = object;\n object3 = object;\n try {\n object2 = object;\n object3 = object;\n IllegalArgumentException illegalArgumentException = new IllegalArgumentException(\"Given Uri could not be found in media store\");\n object2 = object;\n object3 = object;\n throw illegalArgumentException;\n }\n catch (Throwable throwable22222) {\n break block6;\n }\n catch (SQLiteException sQLiteException) {\n object2 = object3;\n object2 = object3;\n IllegalArgumentException illegalArgumentException = new IllegalArgumentException(\"Given Uri is not formatted in a way so that it can be found in media store.\");\n object2 = object3;\n throw illegalArgumentException;\n }\n }\n if (object2 == null) throw throwable22222;\n object2.close();\n throw throwable22222;\n }",
"public java.lang.String getUri() {\n return uri;\n }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public static URIElement buildURIElement(String uri) throws AmazonException{\r\n\t\tint questionIndex = uri.indexOf('?');\r\n\t\tif(questionIndex > 0){\r\n\t\t\turi = uri.substring(0, questionIndex);\r\n\t\t}\r\n\t\tString[] uriElements = uri.split(\"/\");\r\n\t\tif(uriElements.length < 4){\r\n\t\t\tthrow new AmazonException(\"InCompatible URI: \" + uri);\r\n\t\t}\r\n\t\tString context = uriElements[1];\r\n\t\tString module = uriElements[2];\r\n\t\tString command = uriElements[3];\r\n\t\tString method = \"execute\";\r\n\t\tif(uriElements.length == 5 ){\r\n\t\t\tif(uriElements[4] != null || !uriElements[4].isEmpty()){\r\n\t\t\t\tmethod = uriElements[4];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint dotIndex = method.indexOf('.');\r\n\t\tif(dotIndex > 0){\r\n\t\t\tmethod = method.substring(0, dotIndex);\r\n\t\t}\r\n\t\t\r\n\t\treturn new URIElement(context, module, command, method);\r\n\t}",
"public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }",
"public URI toIRI(\n ){\n String xri = toXRI();\n StringBuilder iri = new StringBuilder(xri.length());\n int xRef = 0;\n for(\n int i = 0, limit = xri.length();\n i < limit;\n i++\n ){\n char c = xri.charAt(i);\n if(c == '%') {\n iri.append(\"%25\");\n } else if (c == '(') {\n xRef++;\n iri.append(c);\n } else if (c == ')') {\n xRef--;\n iri.append(c);\n } else if (xRef == 0) {\n iri.append(c);\n } else if (c == '#') {\n iri.append(\"%23\");\n } else if (c == '?') {\n iri.append(\"%3F\");\n } else if (c == '/') {\n iri.append(\"%2F\");\n } else {\n iri.append(c);\n }\n }\n return URI.create(iri.toString());\n }",
"public static String encodedURI(Resource resource) {\r\n\t\tString result = null;\r\n\t\tif (resource != null) {\r\n\t\t\tresult = encodedURI(resource.getURI(), JenaUtils.prefixedURI(resource));\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic URL getURL(String uri) throws MalformedURLException {\n\t\tif (uri.length() == 0) {\n\t\t\tthrow new MalformedURLException(\"Empty URI\");\n\t\t}\n\t\tURL url;\n\t\tif (uri.indexOf(\"://\") < 0) {\n\t\t\turl = new URL(getBaseURL(), uri);\n\t\t} else {\n\t\t\turl = new URL(uri);\n\t\t}\n\t\treturn url;\n\t}",
"public static String decodePath(String href) {\r\n\t\t// For IPv6\r\n\t\thref = href.replace(\"[\", \"%5B\").replace(\"]\", \"%5D\");\r\n\r\n\t\t// Seems that some client apps send spaces.. maybe..\r\n\t\thref = href.replace(\" \", \"%20\");\r\n\t\ttry {\r\n\t\t\tif (href.startsWith(\"/\")) {\r\n\t\t\t\tURI uri = new URI(\"http://anything.com\" + href);\r\n\t\t\t\treturn uri.getPath();\r\n\t\t\t} else {\r\n\t\t\t\tURI uri = new URI(\"http://anything.com/\" + href);\r\n\t\t\t\tString s = uri.getPath();\r\n\t\t\t\treturn s.substring(1);\r\n\t\t\t}\r\n\t\t} catch (URISyntaxException ex) {\r\n\t\t\tthrow new RuntimeException(ex);\r\n\t\t}\r\n\t}",
"public String getUri() {\n return uri;\n }",
"private UUID uuidFromUri(URI uri) {\n Pattern pairRegex = Pattern.compile(\"\\\\p{XDigit}{8}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{12}\");\n Matcher matcher = pairRegex.matcher(uri.toString());\n String uuid = \"\";\n while (matcher.find()) {\n uuid = matcher.group(0);\n }\n return UUID.fromString(uuid);\n }",
"public static String getContentString( HttpRequestHeaderInfo header, String url, String charset ) throws URISyntaxException, IOException {\n\t\treturn new String( getContentBytes( header, url ), charset );\n\t}",
"private String getMediaPathFromUri(final Uri uri) {\n\t\t\tString[] projection = { MediaStore.Images.Media.DATA };\n\t\t\tCursor cursor = managedQuery(uri, projection, null, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\treturn cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA));\n\t\t}",
"public static String getUriPathFromUrl(final String url) {\n // URI = scheme:[//authority]path[?query][#fragment]\n String uri = url;\n if(url != null && url.length() > 0) {\n final int ejbcaIndex = url.indexOf(\"/ejbca\");\n if (ejbcaIndex != -1) {\n uri = url.substring(ejbcaIndex);\n // TODO Temporary\n uri = uri.replaceAll(\"//\", \"/\");\n final int questionMarkIndex = uri.indexOf('?');\n uri = (questionMarkIndex == -1 ? uri : uri.substring(0, questionMarkIndex));\n final int semicolonIndex = uri.indexOf(';');\n uri = (semicolonIndex == -1 ? uri : uri.substring(0, semicolonIndex));\n final int numberSignIndex = uri.indexOf('#');\n uri = (numberSignIndex == -1 ? uri : uri.substring(0, numberSignIndex));\n }\n }\n return uri;\n }",
"public static String urlReader(String url) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tURLConnection con = urlResource.openConnection();\n\t\t\tInputStream in = con.getInputStream();\n\t\t\tString encoding = con.getContentEncoding();\n\t\t\tencoding = encoding == null ? \"UTF-8\" : encoding;\n\t\t\treturn IOUtils.toString(in, encoding);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"URL toURL() throws IOException;",
"public String openHttp2String(URL url) throws IOException {\r\n return EntityUtils.toString(openHttpEntity(url), Charset.forName(\"UTF-8\"));\r\n }",
"String getIssueURI();",
"public static String getRealPathFromURI(Context context, Uri uri){\n Cursor cursor = null;\n String filePath = \"\";\n\n if (Build.VERSION.SDK_INT < 19) {\n // On Android Jelly Bean\n\n // Taken from https://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore\n try {\n String[] proj = { MediaStore.Images.Media.DATA };\n cursor = context.getContentResolver().query(uri, proj, null, null, null);\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n filePath = cursor.getString(column_index);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n } else {\n // On Android KitKat+\n\n // Taken from http://hmkcode.com/android-display-selected-image-and-its-real-path/\n String wholeID = DocumentsContract.getDocumentId(uri);\n\n // Split at colon, use second item in the array\n String id = wholeID.split(\":\")[1];\n\n String[] column = {MediaStore.Images.Media.DATA};\n\n // Where id is equal to\n String sel = MediaStore.Images.Media._ID + \"=?\";\n\n cursor = context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n column, sel, new String[]{id}, null);\n\n int columnIndex = cursor.getColumnIndex(column[0]);\n\n if (cursor.moveToFirst()) {\n filePath = cursor.getString(columnIndex);\n }\n cursor.close();\n }\n return filePath;\n }",
"public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }",
"private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }",
"private static String readUrl(String urlString) throws Exception {\r\n\t BufferedReader reader = null;\r\n\t try {\r\n\t URL url = new URL(urlString);\r\n\t reader = new BufferedReader(new InputStreamReader(url.openStream()));\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t int read;\r\n\t char[] chars = new char[1024];\r\n\t while ((read = reader.read(chars)) != -1)\r\n\t buffer.append(chars, 0, read); \r\n\r\n\t return buffer.toString();\r\n\t } finally {\r\n\t if (reader != null)\r\n\t reader.close();\r\n\t }\r\n\t}",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public String getUri() {\r\n\t\treturn uri;\r\n\t}",
"private static String getResourceName(String uri) {\r\n int p = uri.lastIndexOf('/');\r\n if (p != -1) {\r\n return uri.substring(p + 1);\r\n } else {\r\n return uri;\r\n }\r\n }",
"@Override\r\n public String toString() {\r\n return getURI();\r\n }",
"public static String getRealPathFromURI(Context context, Uri contentURI) {\n String result = null;\n Cursor cursor = context.getContentResolver().query(contentURI,\n null, null, null, null);\n if (cursor != null) {\n cursor.moveToFirst();\n int idx = cursor\n .getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n result = cursor.getString(idx);\n cursor.close();\n }\n return result;\n }",
"@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }",
"public URI toURI( String location ) throws URISyntaxException {\n\t\treturn new URI( Strings.nvl(location).replace(\" \", \"%20\"));\n\t}",
"public String uri() {\n return this.uri;\n }"
]
| [
"0.71306396",
"0.67213917",
"0.65889525",
"0.65889525",
"0.6397545",
"0.63757646",
"0.63455915",
"0.63455915",
"0.63455915",
"0.6320799",
"0.62679166",
"0.6256216",
"0.6231376",
"0.61860985",
"0.6170308",
"0.60925573",
"0.5993049",
"0.59867525",
"0.5975891",
"0.5959841",
"0.5956549",
"0.5948987",
"0.587871",
"0.5849689",
"0.58420694",
"0.58420694",
"0.5817861",
"0.580338",
"0.57649404",
"0.5759552",
"0.57568866",
"0.57248735",
"0.5712439",
"0.5675241",
"0.56429935",
"0.55871797",
"0.5580994",
"0.5529629",
"0.55254376",
"0.552534",
"0.5506123",
"0.55006987",
"0.54844373",
"0.54764277",
"0.54759413",
"0.54706085",
"0.5465502",
"0.5460482",
"0.5459497",
"0.54572576",
"0.54392105",
"0.5423424",
"0.5416243",
"0.5409787",
"0.5403409",
"0.5392297",
"0.5390554",
"0.53806746",
"0.53562593",
"0.53318447",
"0.5325984",
"0.53151506",
"0.530094",
"0.5294613",
"0.5281332",
"0.5278009",
"0.5277814",
"0.5263056",
"0.52574134",
"0.5250869",
"0.5249565",
"0.5245501",
"0.5245501",
"0.52450377",
"0.52295613",
"0.52281946",
"0.52199715",
"0.5219339",
"0.52162206",
"0.5215655",
"0.5206551",
"0.5204815",
"0.5195419",
"0.51845056",
"0.51829666",
"0.51660717",
"0.5164438",
"0.51449394",
"0.5135656",
"0.51309884",
"0.5123857",
"0.5123124",
"0.512176",
"0.51192176",
"0.5117689",
"0.5115955",
"0.5106802",
"0.5106259",
"0.5106136",
"0.51024234"
]
| 0.68925023 | 1 |
Creates a File from a URI, the URI can be relative or absolute, this method returns only a file for the Scheme Specific Part. | public static File toFile(URI uri) {
// if (uri.getScheme() == null) {
// try {
// uri = new URI("file", uri.getSchemeSpecificPart(), null);
// } catch (URISyntaxException e) {
// // should never happen
// Logger.getLogger(URIUtils.class).fatal(uri, e);
// }
// }
return new File((File) null, uri.getSchemeSpecificPart());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File getRealFile(final Context context, final Uri uri) {\n if (null == uri) return null;\n final String scheme = uri.getScheme();\n String data = null;\n if (scheme == null)\n data = uri.getPath();\n else if (ContentResolver.SCHEME_FILE.equals(scheme)) {\n data = uri.getPath();\n } else if (ContentResolver.SCHEME_CONTENT.equals(scheme)) {\n Cursor cursor = context.getContentResolver().query(uri, new String[]{MediaStore.Images.ImageColumns.DATA}, null, null, null);\n if (null != cursor) {\n if (cursor.moveToFirst()) {\n int index = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n if (index > -1) {\n data = cursor.getString(index);\n }\n }\n cursor.close();\n }\n }\n File f = new File(data);\n return f;\n }",
"public static File toFile(String filenameOrFileURI) {\n try {\n if (hasScheme(filenameOrFileURI)) {\n try { \n File f = new File(URIUtils.createURI(filenameOrFileURI));\n return f;\n } catch (URISyntaxException e) {\n e.printStackTrace(); \n }\n return null;\n } \n return new File(filenameOrFileURI);\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static File getFileFromContentUri(Uri contentUri, Context context) {\r\n if (contentUri == null) {\r\n return null;\r\n }\r\n File file = null;\r\n String filePath = null;\r\n String fileName;\r\n String[] filePathColumn = {MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.DISPLAY_NAME};\r\n ContentResolver contentResolver = context.getContentResolver();\r\n Cursor cursor = contentResolver.query(contentUri, filePathColumn, null,\r\n null, null);\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n try{\r\n filePath = cursor.getString(cursor.getColumnIndex(filePathColumn[0]));\r\n }catch(Exception e){\r\n }\r\n fileName = cursor.getString(cursor.getColumnIndex(filePathColumn[1]));\r\n cursor.close();\r\n if (!TextUtils.isEmpty(filePath)) {\r\n file = new File(filePath);\r\n }\r\n if (!file.exists() || file.length() <= 0 || TextUtils.isEmpty(filePath)) {\r\n filePath = getPathFromInputStreamUri(context, contentUri, fileName);\r\n }\r\n if (!TextUtils.isEmpty(filePath)) {\r\n file = new File(filePath);\r\n }\r\n }\r\n return file;\r\n }",
"public static File getFile(Context context, Uri uri) {\n if (uri != null) {\n String path = getPath(context, uri);\n if (path != null && isLocal(path)) {\n return new File(path);\n }\n }\n return null;\n }",
"public ValidFile(URI uri) throws IOException\r\n\t{\r\n\t\tsuper(uri);\r\n\t\tinit();\r\n\t}",
"@Override\n public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {\n List<String> segments = uri.getPathSegments();\n String accountId = segments.get(0);\n String id = segments.get(1);\n String format = segments.get(2);\n if (FORMAT_THUMBNAIL.equals(format)) {\n int width = Integer.parseInt(segments.get(3));\n int height = Integer.parseInt(segments.get(4));\n String filename = \"thmb_\" + accountId + \"_\" + id;\n File dir = getContext().getCacheDir();\n File file = new File(dir, filename);\n if (!file.exists()) {\n Uri attachmentUri = getAttachmentUri(Long.parseLong(accountId), Long.parseLong(id));\n Cursor c = query(attachmentUri,\n new String[] { AttachmentProviderColumns.DATA }, null, null, null);\n if (c != null) {\n try {\n if (c.moveToFirst()) {\n attachmentUri = Uri.parse(c.getString(0));\n } else {\n return null;\n }\n } finally {\n c.close();\n }\n }\n String type = getContext().getContentResolver().getType(attachmentUri);\n try {\n InputStream in =\n getContext().getContentResolver().openInputStream(attachmentUri);\n Bitmap thumbnail = createThumbnail(type, in);\n thumbnail = Bitmap.createScaledBitmap(thumbnail, width, height, true);\n FileOutputStream out = new FileOutputStream(file);\n thumbnail.compress(Bitmap.CompressFormat.PNG, 100, out);\n out.close();\n in.close();\n }\n catch (IOException ioe) {\n return null;\n }\n }\n return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);\n }\n else {\n return ParcelFileDescriptor.open(\n new File(getContext().getDatabasePath(accountId + \".db_att\"), id),\n ParcelFileDescriptor.MODE_READ_ONLY);\n }\n }",
"protected static File getFile(URL resourceUrl, String description) throws FileNotFoundException {\r\n\t\t//assert (resourceUrl == null);\r\n\t\tif (!URL_PROTOCOL_FILE.equals(resourceUrl.getProtocol())) {\r\n\t\t\tthrow new FileNotFoundException(\r\n\t\t\t\t\tdescription + \" cannot be resolved to absolute file path \" +\r\n\t\t\t\t\t\"because it does not reside in the file system: \" + resourceUrl);\r\n\t\t}\r\n\t\tFile file = null;\r\n\t\ttry {\r\n\t\t\tfile = new File(URLDecoder.decode(resourceUrl.getFile(), \"UTF-8\"));\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn file;\r\n\t}",
"Object create(String uri) throws IOException, SAXException, ParserConfigurationException;",
"@Override\n\tpublic URI create(URI uri) throws StorageSecuirtyException,\n\t\t\tResourceAccessException {\n\t\treturn null;\n\t}",
"public static File composeFile(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\treturn new File(uri);\n\t\t} else if (base != null) {\n\t\t\treturn new File(new File(base), uri.toString());\n\t\t}\n\t\treturn null;\n\t}",
"static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}",
"public static UriSchemaUtils.UtilFile getFile(Context param0, Uri param1, String param2) throws IOException {\n }",
"URI createURI();",
"File retrieveFile(String absolutePath);",
"@Nullable\n @Override\n public ParcelFileDescriptor openFile(@NonNull final Uri uri, @NonNull final String mode)\n throws FileNotFoundException {\n switch (matcher.match(uri)) {\n case CODE_LINK_HTML: {\n return openPipeHelper(uri, \"text/html\", null, null, streamWriter);\n }\n }\n return super.openFile(uri, mode);\n }",
"public static String getRealFilePathFromUri(final Context context, final Uri uri) {\n if (null == uri) return null;\n final String scheme = uri.getScheme();\n String data = null;\n if (scheme == null)\n data = uri.getPath();\n else if (ContentResolver.SCHEME_FILE.equals(scheme)) {\n data = uri.getPath();\n } else if (ContentResolver.SCHEME_CONTENT.equals(scheme)) {\n Cursor cursor = context.getContentResolver().query(uri, new String[]{MediaStore.Images.ImageColumns.DATA}, null, null, null);\n if (null != cursor) {\n if (cursor.moveToFirst()) {\n int index = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n if (index > -1) {\n data = cursor.getString(index);\n }\n }\n cursor.close();\n }\n }\n return data;\n }",
"public Resource createResourceFromUri(String uri)\n\t{\n\t\turi = this.replaceNamespacePrefixes(uri);\n\t\treturn this.model.createResource(uri);\n\t}",
"public static String getRealFilePath( final Context context, final Uri uri ) {\n\n if ( null == uri ) return null;\n\n final String scheme = uri.getScheme();\n String data = null;\n\n if ( scheme == null )\n data = uri.getPath();\n else if ( ContentResolver.SCHEME_FILE.equals( scheme ) ) {\n data = uri.getPath();\n } else if ( ContentResolver.SCHEME_CONTENT.equals( scheme ) ) {\n Cursor cursor = context.getContentResolver().query( uri, new String[] { Images.ImageColumns.DATA }, null, null, null );\n if ( null != cursor ) {\n if ( cursor.moveToFirst() ) {\n int index = cursor.getColumnIndex( Images.ImageColumns.DATA );\n if ( index > -1 ) {\n data = cursor.getString( index );\n }\n }\n cursor.close();\n }\n }\n return data;\n }",
"FileReference createFile(String fileName, String toolId);",
"public IFile getBundleFile(String uri){\r\n \t\tif(project == null || !project.isOpen()) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tif(!project.hasNature(JavaCore.NATURE_ID)) {\r\n \t\t\t\treturn null;\r\n \t\t\t}\r\n \t\t\tIJavaProject javaProject = JavaCore.create(project);\t\t\r\n \t\t\tIClasspathEntry[] es = javaProject.getResolvedClasspath(true);\r\n \t\t\tfor (int i = 0; i < es.length; i++) {\r\n \t\t\t\tif(es[i].getEntryKind() != IClasspathEntry.CPE_SOURCE) {\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\t}\r\n \t\t\t\tIFile file = (IFile) project.getWorkspace().getRoot()\r\n \t\t\t\t\t.getFolder(es[i].getPath()).findMember(\"/\" + getBundleFileName(uri)); //$NON-NLS-1$\r\n \t\t\t\tif(file != null && file.exists()) {\r\n \t\t\t\t\treturn file;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (CoreException e) {\r\n \t\t\tJspEditorPlugin.getPluginLog().logError(e);\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public File getFile()\r\n \t{\r\n \t\tFile result = null;\r\n \t\t\r\n \t\tString hostName = getAuthority();\r\n \t\t\r\n \t\tif((hostName == null) || hostName.equals(\"\") || hostName.equalsIgnoreCase(\"localhost\"))\r\n \t\t{\r\n \t\t\tString filePath = getPath();\r\n \t\t\tresult = new File(filePath);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tthrow new RuntimeException(\"Can't resolve files on remote host machines\");\r\n \t\t}\r\n \t\t\r\n \t\treturn result;\r\n \t}",
"public static String getRealPathFromURI(Context context, Uri uri){\n Cursor cursor = null;\n String filePath = \"\";\n\n if (Build.VERSION.SDK_INT < 19) {\n // On Android Jelly Bean\n\n // Taken from https://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore\n try {\n String[] proj = { MediaStore.Images.Media.DATA };\n cursor = context.getContentResolver().query(uri, proj, null, null, null);\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n filePath = cursor.getString(column_index);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n } else {\n // On Android KitKat+\n\n // Taken from http://hmkcode.com/android-display-selected-image-and-its-real-path/\n String wholeID = DocumentsContract.getDocumentId(uri);\n\n // Split at colon, use second item in the array\n String id = wholeID.split(\":\")[1];\n\n String[] column = {MediaStore.Images.Media.DATA};\n\n // Where id is equal to\n String sel = MediaStore.Images.Media._ID + \"=?\";\n\n cursor = context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n column, sel, new String[]{id}, null);\n\n int columnIndex = cursor.getColumnIndex(column[0]);\n\n if (cursor.moveToFirst()) {\n filePath = cursor.getString(columnIndex);\n }\n cursor.close();\n }\n return filePath;\n }",
"private SoundPlayer(URI uri) {\n\t\tfile = new File(uri.getPath());\n\t}",
"public static String getGoogleFilePath(final Context context, final Uri uri) {\n\n if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n String result = getDataColumn(context, uri, null, null); //\n if (TextUtils.isEmpty(result))\n if (uri.getAuthority().contains(\"com.google.android\")) {\n try {\n File localFile = createFile(context, null);\n FileInputStream remoteFile = getSourceStream(context, uri);\n if (copyToFile(remoteFile, localFile))\n result = localFile.getAbsolutePath();\n remoteFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return result;\n }\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }",
"public File getFile() {\n\t\treturn new File(filepath);\n\t}",
"@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }",
"private Bitmap getBitmapFromUri ( Uri uri ) throws IOException {\r\n ParcelFileDescriptor parcelFileDescriptor =\r\n getContentResolver (). openFileDescriptor ( uri , \"r\" );\r\n FileDescriptor fileDescriptor = parcelFileDescriptor . getFileDescriptor ();\r\n Bitmap image = BitmapFactory . decodeFileDescriptor ( fileDescriptor );\r\n parcelFileDescriptor . close ();\r\n return image ;\r\n }",
"private String getFileEx(Uri uri){\n ContentResolver cr=getContentResolver();\n MimeTypeMap mime=MimeTypeMap.getSingleton();\n return mime.getExtensionFromMimeType(cr.getType(uri));\n }",
"public static URI toURI(String filenameOrFileURI) {\n File file = toFile(filenameOrFileURI);\n return file==null?null:file.toURI();\n }",
"public static File getFile(String resourceOrFile, Class<?> cls,\n boolean deleteTmpOnExit) throws FileNotFoundException {\n try {\n\n // jar:file:/home/.../blue.jar!/path/to/file.xml\n URI uri = getURL(resourceOrFile, cls).toURI();\n String uriStr = uri.toString();\n if (uriStr.startsWith(\"jar\")) {\n\n if (uriStr.endsWith(\"/\")) {\n throw new UnsupportedOperationException(\n \"cannot unjar directories, only files\");\n }\n\n String jarPath = uriStr.substring(4, uriStr.indexOf(\"!\"))\n .replace(\"file:\", \"\");\n String filePath = uriStr.substring(uriStr.indexOf(\"!\") + 2);\n\n JarFile jarFile = new JarFile(jarPath);\n assert (jarFile.size() > 0) : \"no jarFile at \" + jarPath;\n\n Enumeration<JarEntry> entries = jarFile.entries();\n\n while (entries.hasMoreElements()) {\n\n JarEntry jarEntry = entries.nextElement();\n if (jarEntry.toString().equals(filePath)) {\n InputStream input = jarFile.getInputStream(jarEntry);\n assert (input != null) : \"empty is for \" + jarEntry;\n return tmpFileFromStream(input, filePath,\n deleteTmpOnExit);\n }\n }\n assert (false) : \"file\" + filePath + \" not found in \" + jarPath;\n return null;\n } else {\n return new File(uri);\n }\n\n } catch (URISyntaxException e) {\n throw new FileNotFoundException(resourceOrFile);\n } catch (IOException e) {\n throw new FileNotFoundException(resourceOrFile);\n }\n }",
"public static String getPath(final Context context, final Uri uri) {\n\n if (DEBUG)\n Log.d(TAG + \" File -\",\n \"Authority: \" + uri.getAuthority() +\n \", Fragment: \" + uri.getFragment() +\n \", Port: \" + uri.getPort() +\n \", Query: \" + uri.getQuery() +\n \", Scheme: \" + uri.getScheme() +\n \", Host: \" + uri.getHost() +\n \", Segments: \" + uri.getPathSegments().toString()\n );\n\n final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;\n\n // DocumentProvider\n if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {\n // LocalStorageProvider\n if (isLocalStorageDocument(uri)) {\n // The path is the id\n return DocumentsContract.getDocumentId(uri);\n }\n // ExternalStorageProvider\n else if (isExternalStorageDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n if (\"primary\".equalsIgnoreCase(type)) {\n return Environment.getExternalStorageDirectory() + \"/\" + split[1];\n }\n\n // TODO handle non-primary volumes\n }\n // DownloadsProvider\n else if (isDownloadsDocument(uri)) {\n\n final String id = DocumentsContract.getDocumentId(uri);\n final Uri contentUri = ContentUris.withAppendedId(\n Uri.parse(\"content://downloads/public_downloads\"), Long.valueOf(id));\n\n return getDataColumn(context, contentUri, null, null);\n }\n // MediaProvider\n else if (isMediaDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n Uri contentUri = null;\n if (\"image\".equals(type)) {\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n } else if (\"video\".equals(type)) {\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n } else if (\"audio\".equals(type)) {\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n }\n\n final String selection = \"_id=?\";\n final String[] selectionArgs = new String[]{\n split[1]\n };\n\n return getDataColumn(context, contentUri, selection, selectionArgs);\n }\n }\n // MediaStore (and general)\n else if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n\n // Return the remote address\n if (isGooglePhotosUri(uri))\n return uri.getLastPathSegment();\n\n if (isGoogleVideosUri(uri))\n return uri.getLastPathSegment();\n\n return getDataColumn(context, uri, null, null);\n }\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }",
"public static File yieldFile(String fileURI,\r\n String tmpDir,\r\n String[] exts,\r\n boolean needSuffix) throws CWLException {\r\n if (fileURI == null) {\r\n throw new IllegalArgumentException(\"The file path is null.\");\r\n }\r\n // check file extension if exts is specified\r\n if ((exts != null && exts.length != 0) && !validateExts(fileURI, exts)) {\r\n int index = fileURI.lastIndexOf('.');\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.file.invalid.ext\",\r\n fileURI,\r\n (index == -1 ? \"\" : fileURI.substring(index)),\r\n String.join(\", \", exts)),\r\n 255);\r\n }\r\n // download file if it's not a local file\r\n if (fileURI.startsWith(HTTP_PREFIX)\r\n || fileURI.startsWith(HTTPS_PREFIX)\r\n || fileURI.startsWith(FTP_PREFIX)) {\r\n fileURI = downloadFile(fileURI, tmpDir, needSuffix);\r\n }\r\n Path descriptionFilePath = Paths.get(fileURI);\r\n if (!descriptionFilePath.isAbsolute()) {\r\n descriptionFilePath = Paths.get(System.getProperty(\"user.dir\"), fileURI);\r\n }\r\n return descriptionFilePath.toFile();\r\n }",
"public static synchronized Result makeOutputFile(URI absoluteURI) throws XPathException {\n File newFile = new File(absoluteURI);\n try {\n if (!newFile.exists()) {\n File directory = newFile.getParentFile();\n if (directory != null && !directory.exists()) {\n directory.mkdirs();\n }\n newFile.createNewFile();\n }\n return new StreamResult(newFile);\n } catch (IOException err) {\n throw new XPathException(\"Failed to create output file \" + absoluteURI, err);\n }\n }",
"public AssetFileDescriptor a(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {\n AssetFileDescriptor openAssetFileDescriptor = contentResolver.openAssetFileDescriptor(uri, \"r\");\n if (openAssetFileDescriptor != null) {\n return openAssetFileDescriptor;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"FileDescriptor is null for: \");\n sb.append(uri);\n throw new FileNotFoundException(sb.toString());\n }",
"private PDF getPDF() {\n final Intent intent = getIntent();\n\t\tUri uri = intent.getData(); \t\n\t\tfilePath = uri.getPath();\n\t\tif (uri.getScheme().equals(\"file\")) {\n\t\t\tif (history) {\n\t\t\t\tRecent recent = new Recent(this);\n\t\t\t\trecent.add(0, filePath);\n\t\t\t\trecent.commit();\n\t\t\t}\n\t\t\treturn new PDF(new File(filePath), this.box);\n \t} else if (uri.getScheme().equals(\"content\")) {\n \t\tContentResolver cr = this.getContentResolver();\n \t\tFileDescriptor fileDescriptor;\n\t\t\ttry {\n\t\t\t\tfileDescriptor = cr.openFileDescriptor(uri, \"r\").getFileDescriptor();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tthrow new RuntimeException(e); // TODO: handle errors\n\t\t\t}\n \t\treturn new PDF(fileDescriptor, this.box);\n \t} else {\n \t\tthrow new RuntimeException(\"don't know how to get filename from \" + uri);\n \t}\n }",
"public static String makeResourceFromURI(String uri) {\n String path = uri.substring(MagicNames.ANTLIB_PREFIX.length());\n String resource;\n if (path.startsWith(\"//\")) {\n //handle new style full paths to an antlib, in which\n //all but the forward slashes are allowed.\n resource = path.substring(\"//\".length());\n if (!resource.endsWith(\".xml\")) {\n //if we haven't already named an XML file, it gets antlib.xml\n resource += ANTLIB_XML;\n }\n } else {\n //convert from a package to a path\n resource = path.replace('.', '/') + ANTLIB_XML;\n }\n return resource;\n }",
"private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}",
"@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }",
"@Override\n public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException {\n return getFS(delegate.newFileSystem(uri, env));\n\n }",
"@Override\n public FileSystem getFileSystem(URI uri) {\n return getFS(delegate.getFileSystem(uri));\n }",
"public Uri getUri(Context context, @NonNull String authority, @NonNull File file) {\n return FileProvider.getUriForFile(context, authority, file);\n }",
"private static URL toFileURL(URL resource) throws IOException {\n\t\t// Don't bother copying file urls\n\t\t//\n\t\tif (resource.getProtocol()\n\t\t\t.equalsIgnoreCase(\"file\"))\n\t\t\treturn resource;\n\n\t\t//\n\t\t// Need to make a copy to a temp file\n\t\t//\n\n\t\tFile f = File.createTempFile(\"resource\", \".jar\");\n\t\tFiles.createDirectories(f.getParentFile()\n\t\t\t.toPath());\n\t\ttry (InputStream in = resource.openStream(); OutputStream out = Files.newOutputStream(f.toPath())) {\n\t\t\tbyte[] buffer = new byte[BUFFER_SIZE];\n\t\t\tfor (int size; (size = in.read(buffer, 0, buffer.length)) > 0;) {\n\t\t\t\tout.write(buffer, 0, size);\n\t\t\t}\n\t\t}\n\t\tf.deleteOnExit();\n\t\treturn f.toURI()\n\t\t\t.toURL();\n\t}",
"private String getRealPathFromURI(Uri contentUri) {\n String[] proj = {MediaStore.Images.Media.DATA};\n CursorLoader loader = new CursorLoader(this, contentUri, proj, null, null, null);\n Cursor cursor = loader.loadInBackground();\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n String result = cursor.getString(column_index);\n cursor.close();\n return result;\n }",
"public static Document newDocument(final URI uri, boolean useNamespaces) throws IOException, XMLException {\n\t\tString scheme = uri.getScheme();\n\t\tif(scheme==null || scheme.equals(\"file\") || scheme.equals(\"\")){\n\t\t\treturn newDocument(new File(uri), useNamespaces);\n\t\t}else{\n\t\t\treturn newDocument(uri.toURL(), useNamespaces);\n\t\t}\n\t}",
"@Test\n\tvoid testFileURI(@TempDir Path tempDir) {\n\t\tfinal File tempFile = tempDir.resolve(\"foo.bar\").toFile();\n\t\tfinal URI fileURI = Files.toURI(tempFile); //create a Java URI directly from a file\n\t\tassertThat(fileURI.getScheme(), is(FILE_SCHEME)); //file:\n\t\tassertTrue(fileURI.getRawPath().startsWith(ROOT_PATH)); //file:/\n\t\tassertFalse(fileURI.getRawPath().startsWith(ROOT_PATH + PATH_SEPARATOR + PATH_SEPARATOR)); //not file:/// (even though that is correct)\n\t}",
"@Override\n\t\t\tprotected URI toUriImpl(String path) throws URISyntaxException {\n\t\t\t\treturn toFileToURI(path);\n\t\t\t}",
"public File generateFile(String midName)\r\n {\r\n File file;\r\n String name = (midName==null) ? generateFileName() \r\n : generateFileName(midName);\r\n if ((file = new File(name)) == null)\r\n return null;\r\n \r\n try\r\n {\r\n FileOutputStream fos = new FileOutputStream(file);\r\n fos.close();\r\n }\r\n catch (IOException e) { return null; }\r\n return file;\r\n }",
"private File getPhotoFileUri(String photoFileName) {\n // Get safe storage directory for photos\n // Use `getExternalFilesDir` on Context to access package-specific directories.\n // This way, we don't need to request external read/write runtime permissions.\n File mediaStorageDir = new File(getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES), TAG);\n\n // Create the storage directory if it does not exist\n if (!mediaStorageDir.exists() && !mediaStorageDir.mkdirs()){\n Log.d(TAG, \"failed to create directory\");\n }\n\n // Return the file target for the photo based on filename\n File file = new File(mediaStorageDir.getPath() + File.separator + photoFileName);\n\n return file;\n\n }",
"String getFile();",
"String getFile();",
"String getFile();",
"public static String getRealPathFromURI(Context context, Uri contentUri) {\n// Log.i(\"\", \"getRealPathFromURI \" + (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT));\n\n// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n// // Will return \"image:x*\"\n// String wholeID = DocumentsContract.getDocumentId(contentUri);\n//\n// // Split at colon, use second item in the array\n// String id = wholeID.split(\":\")[1];\n//\n// String[] column = {MediaStore.Images.Media.DATA};\n//\n// // where id is equal to\n// String sel = MediaStore.Images.Media._ID + \"=?\";\n//\n// Cursor cursor = context.getContentResolver().\n// query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n// column, sel, new String[]{id}, null);\n//\n// String filePath = \"\";\n//\n// int columnIndex = cursor.getColumnIndex(column[0]);\n//\n// if (cursor.moveToFirst()) {\n// filePath = cursor.getString(columnIndex);\n//\n// return filePath;\n// }\n//\n// cursor.close();\n//\n// return null;\n// } else {\n Cursor cursor = null;\n try {\n String[] proj = {MediaColumns.DATA};\n cursor = context.getContentResolver().query(contentUri, proj, null,\n null, null);\n\n if (cursor != null) {\n int column_index = cursor.getColumnIndexOrThrow(MediaColumns.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n } else\n return null;\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n// }\n }",
"public File getFile();",
"public File getFile();",
"private Uri transcodeSchemeContentFileUri(Uri uri) {\n Uri newUri = null;\n Cursor cursor = null;\n try {\n // get file id\n long id = ContentUris.parseId(uri);\n // check file whether has existed in video table\n cursor = getContentResolver()\n .query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, null,\n MediaStore.Video.Media._ID + \" = '\" + id + \"'\", null, null);\n if (cursor != null && cursor.moveToFirst()\n && cursor.getCount() > 0) {\n newUri = ContentUris.withAppendedId(\n MediaStore.Video.Media.EXTERNAL_CONTENT_URI, id);\n Log.v(TAG, \"transcodeSchemeContentFileUri, newUri \" + newUri);\n } else {\n newUri = uri;\n Log.e(TAG, \"transcodeSchemeContentFileUri, The uri not existed in video table\");\n }\n return newUri;\n } catch (final SQLiteException ex) {\n ex.printStackTrace();\n } catch (final IllegalArgumentException ex) {\n ex.printStackTrace();\n } finally {\n if (cursor != null) {\n cursor.close();\n cursor = null;\n }\n }\n return null;\n }",
"public Uri getImageFileUri()\n {\n imagePath = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES), \"Tuxuri\");\n Log.d(tag, \"Find \" + imagePath.getAbsolutePath());\n\n\n if (! imagePath.exists())\n {\n if (! imagePath.mkdirs())\n {\n Log.d(\"CameraTestIntent\", \"failed to create directory\");\n return null;\n }else{\n Log.d(tag,\"create new Tux folder\");\n }\n }\n\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File image = new File(imagePath,\"TUX_\"+ timeStamp + \".jpg\");\n file = image;\n name = file.getName();\n path = imagePath;\n\n\n if(!image.exists())\n {\n try {\n image.createNewFile();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return Uri.fromFile(image);\n }",
"URI uri();",
"public File getPhotoFileUri(String fileName) {\n // Get safe storage directory for photos\n // Use `getExternalFilesDir` on Context to access package-specific directories.\n // This way, we don't need to request external read/write runtime permissions.\n File mediaStorageDir = new File(getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES), TAG);\n\n // Create the storage directory if it does not exist\n if (!mediaStorageDir.exists() && !mediaStorageDir.mkdirs()){\n Log.d(TAG, \"failed to create directory\");\n }\n\n // Return the file target for the photo based on filename\n File file = new File(mediaStorageDir.getPath() + File.separator + fileName);\n\n return file;\n }",
"public File getFile() {\n return new File(this.filePath);\n }",
"public static UrlTrack createTrack(URI uri) throws IOException {\r\n try {\r\n AudioInputStream stream = AudioSystem.getAudioInputStream(new File(uri));\r\n AudioFormat f = stream.getFormat();\r\n double seconds = stream.getFrameLength() / f.getFrameRate();\r\n return new UrlTrack(uri, 0, seconds, f);\r\n } catch (UnsupportedAudioFileException e) {\r\n throw new IOException(e.getMessage());\r\n }\r\n }",
"URI getUri();",
"private Uri getOutputMediaFileUri(int type){\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"public static String getMimeTypeForFile(String uri) {\n\t\tint dot = uri.lastIndexOf('.');\n\t\tString mime = null;\n\t\tif (dot >= 0) {\n\t\t\tmime = mimeTypes().get(uri.substring(dot + 1).toLowerCase());\n\t\t}\n\t\treturn mime == null ? \"application/octet-stream\" : mime;\n\t}",
"private static Uri getOutputMediaFileUri(int type){\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"private static Uri getOutputMediaFileUri(int type){\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"public Uri getOutputMediaFileUri(int type) {\n\t\treturn Uri.fromFile(getOutputMediaFile(type));\n\t}",
"public File getPhotoFileUri(String fileName) {\n // Get safe storage directory for photos\n // Use `getExternalFilesDir` on Context to access package-specific directories.\n // This way, we don't need to request external read/write runtime permissions.\n File mediaStorageDir = new File(getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES), APP_TAG);\n\n // Create the storage directory if it does not exist\n if (!mediaStorageDir.exists() && !mediaStorageDir.mkdirs()){\n Log.d(APP_TAG, \"failed to create directory\");\n }\n\n // Return the file target for the photo based on filename\n File file = new File(mediaStorageDir.getPath() + File.separator + fileName);\n\n return file;\n }",
"public File getPhotoFileUri(String fileName) {\n // Get safe storage directory for photos\n // Use `getExternalFilesDir` on Context to access package-specific directories.\n // This way, we don't need to request external read/write runtime permissions.\n File mediaStorageDir = new File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), APP_TAG);\n\n // Create the storage directory if it does not exist\n if (!mediaStorageDir.exists() && !mediaStorageDir.mkdirs()){\n Log.d(APP_TAG, \"failed to create directory\");\n }\n\n // Return the file target for the photo based on filename\n File file = new File(mediaStorageDir.getPath() + File.separator + fileName);\n\n return file;\n }",
"public static Uri createImageUri() {\n \t\tUri imageFileUri;\n \t\tString folder = Environment.getExternalStorageDirectory()\n \t\t\t\t.getAbsolutePath() + \"/tmp\";\n \t\tFile folderF = new File(folder);\n \t\tif (!folderF.exists()) {\n \t\t\tfolderF.mkdir();\n \t\t}\n \n \t\tString imageFilePath = folder + \"/\"\n \t\t\t\t+ String.valueOf(System.currentTimeMillis()) + \"jpg\";\n \t\tFile imageFile = new File(imageFilePath);\n \t\timageFileUri = Uri.fromFile(imageFile);\n \n \t\treturn imageFileUri;\n \t}",
"public static Bitmap getBitmapFromUri(Uri uri, Fragment fragment) throws IOException {\n ParcelFileDescriptor parcelFileDescriptor = fragment.requireActivity().getContentResolver().openFileDescriptor(uri, \"r\");\n FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();\n Bitmap image = BitmapFactory.decodeFileDescriptor(fileDescriptor);\n parcelFileDescriptor.close();\n return image;\n }",
"public Uri getUriFromFile(File file){\n Log.d(LOG_TAG,\"getUriFromFile file=\"+file.getAbsolutePath());\n Uri uri;\n if (Build.VERSION.SDK_INT >= 23){\n uri = FileProvider.getUriForFile(activity,\n AddPhotoController.provider_Authorities, file);\n } else {\n uri = Uri.fromFile(file);\n }\n Log.d(LOG_TAG,\"getUriFromFile uri=\"+uri.toString());\n return uri;\n }",
"public static String/*File*/ convertImageUriToFile(Context context, Uri imageUri) {\n Cursor cursor = null;\n try {\n String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media._ID/*, MediaStore.Images.ImageColumns.ORIENTATION*/};\n cursor = context.getContentResolver().query(\n imageUri,\n projection, // Which columns to return\n null, // WHERE clause; which rows to return (all rows)\n null, // WHERE clause selection arguments (none)\n null); // Order-by clause (ascending by name)\n\n int file_ColumnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n //int orientation_ColumnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.ImageColumns.ORIENTATION);\n\n if (cursor.moveToFirst()) {\n //String orientation = cursor.getString(orientation_ColumnIndex);\n return cursor.getString(file_ColumnIndex)/*new File(cursor.getString(file_ColumnIndex))*/;\n }\n return null;\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }",
"public Uri getOutputMediaFileUri(int type) {\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"public Uri getOutputMediaFileUri(int type) {\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"public File get( String url, String suffix ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return null;\n }\n\n File file = null;\n try\n {\n file = File.createTempFile( String.valueOf( System.currentTimeMillis() ), suffix );\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"I/O problem\", e );\n }\n\n try\n {\n m_wagon.get( url, file );\n }\n catch ( TransferFailedException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n file.delete(); // return non-existent file\n }\n\n return file;\n }",
"File getFile();",
"File getFile();",
"@SuppressLint(\"NewApi\")\r\n public static String getRealPath(final Context context, final Uri uri) {\r\n\r\n final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;\r\n\r\n // DocumentProvider\r\n if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {\r\n // ExternalStorageProvider\r\n if (isExternalStorageDocument(uri)) {\r\n final String docId = DocumentsContract.getDocumentId(uri);\r\n final String[] split = docId.split(\":\");\r\n final String type = split[0];\r\n\r\n if (\"primary\".equalsIgnoreCase(type)) {\r\n return Environment.getExternalStorageDirectory() + \"/\" + split[1];\r\n }\r\n\r\n // TODO handle non-primary volumes\r\n }\r\n // DownloadsProvider\r\n else if (isDownloadsDocument(uri)) {\r\n\r\n final String id = DocumentsContract.getDocumentId(uri);\r\n final Uri contentUri =\r\n ContentUris.withAppendedId(Uri.parse(\"content://downloads/public_downloads\"),\r\n Long.valueOf(id));\r\n\r\n return getDataColumn(context, contentUri, null, null);\r\n }\r\n // MediaProvider\r\n else if (isMediaDocument(uri)) {\r\n final String docId = DocumentsContract.getDocumentId(uri);\r\n final String[] split = docId.split(\":\");\r\n final String type = split[0];\r\n\r\n Uri contentUri = null;\r\n if (\"image\".equals(type)) {\r\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\r\n } else if (\"video\".equals(type)) {\r\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\r\n } else if (\"audio\".equals(type)) {\r\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\r\n }\r\n\r\n final String selection = \"_id=?\";\r\n final String[] selectionArgs = new String[] {split[1]};\r\n\r\n return getDataColumn(context, contentUri, selection, selectionArgs);\r\n }\r\n }\r\n // MediaStore (and general)\r\n else if (\"content\".equalsIgnoreCase(uri.getScheme())) {\r\n return getDataColumn(context, uri, null, null);\r\n }\r\n // File\r\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\r\n return uri.getPath();\r\n }\r\n\r\n return null;\r\n }",
"URL toURL(FileReference fileReferece);",
"public static String getPath(Context context, Uri uri) throws URISyntaxException {\n\t\t if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n\t\t String[] projection = { \"_data\" };\n\t\t Cursor cursor = null;\n\n\t\t try {\n\t\t cursor = context.getContentResolver().query(uri, projection, null, null, null);\n\t\t int column_index = cursor.getColumnIndexOrThrow(\"_data\");\n\t\t if (cursor.moveToFirst()) {\n\t\t return cursor.getString(column_index);\n\t\t }\n\t\t } catch (Exception e) {\n\t\t // Eat it\n\t\t }\n\t\t }\n\t\t else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n\t\t return uri.getPath();\n\t\t }\n\n\t\t return null;\n\t\t}",
"public Object build( URI uri ) throws DecodingException, IOException\r\n {\r\n Document document = DOCUMENT_BUILDER.parse( uri );\r\n Element root = document.getDocumentElement();\r\n Resolver resolver = new SimpleResolver();\r\n return decode( root , resolver );\r\n }",
"private Uri getFileUriAndSetType(Intent intent, String str, String str2, String str3, int i) throws IOException {\n String str4;\n String str5;\n String str6;\n if (str2.endsWith(\"mp4\") || str2.endsWith(\"mov\") || str2.endsWith(\"3gp\")) {\n intent.setType(\"video/*\");\n } else if (str2.endsWith(\"mp3\")) {\n intent.setType(\"audio/x-mpeg\");\n } else {\n intent.setType(\"image/*\");\n }\n if (str2.startsWith(\"http\") || str2.startsWith(\"www/\")) {\n String fileName = getFileName(str2);\n String str7 = \"file://\" + str + \"/\" + fileName.replaceAll(\"[^a-zA-Z0-9._-]\", \"\");\n if (str2.startsWith(\"http\")) {\n URLConnection openConnection = new URL(str2).openConnection();\n String headerField = openConnection.getHeaderField(\"Content-Disposition\");\n if (headerField != null) {\n Matcher matcher = Pattern.compile(\"filename=([^;]+)\").matcher(headerField);\n if (matcher.find()) {\n fileName = matcher.group(1).replaceAll(\"[^a-zA-Z0-9._-]\", \"\");\n if (fileName.length() == 0) {\n fileName = \"file\";\n }\n str7 = \"file://\" + str + \"/\" + fileName;\n }\n }\n saveFile(getBytes(openConnection.getInputStream()), str, fileName);\n str2 = str7;\n } else {\n saveFile(getBytes(this.webView.getContext().getAssets().open(str2)), str, fileName);\n str2 = str7;\n }\n } else if (str2.startsWith(\"data:\")) {\n if (!str2.contains(\";base64,\")) {\n intent.setType(\"text/plain\");\n return null;\n }\n String substring = str2.substring(str2.indexOf(\";base64,\") + 8);\n if (!str2.contains(\"data:image/\")) {\n intent.setType(str2.substring(str2.indexOf(\"data:\") + 5, str2.indexOf(\";base64\")));\n }\n String substring2 = str2.substring(str2.indexOf(\"/\") + 1, str2.indexOf(\";base64\"));\n if (notEmpty(str3)) {\n StringBuilder sb = new StringBuilder();\n sb.append(sanitizeFilename(str3));\n if (i == 0) {\n str6 = \"\";\n } else {\n str6 = \"_\" + i;\n }\n sb.append(str6);\n sb.append(\".\");\n sb.append(substring2);\n str4 = sb.toString();\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"file\");\n if (i == 0) {\n str5 = \"\";\n } else {\n str5 = \"_\" + i;\n }\n sb2.append(str5);\n sb2.append(\".\");\n sb2.append(substring2);\n str4 = sb2.toString();\n }\n saveFile(Base64.decode(substring, 0), str, str4);\n str2 = \"file://\" + str + \"/\" + str4;\n } else if (str2.startsWith(\"df:\")) {\n if (!str2.contains(\";base64,\")) {\n intent.setType(\"text/plain\");\n return null;\n }\n String substring3 = str2.substring(str2.indexOf(\"df:\") + 3, str2.indexOf(\";data:\"));\n String substring4 = str2.substring(str2.indexOf(\";data:\") + 6, str2.indexOf(\";base64,\"));\n String substring5 = str2.substring(str2.indexOf(\";base64,\") + 8);\n intent.setType(substring4);\n saveFile(Base64.decode(substring5, 0), str, sanitizeFilename(substring3));\n str2 = \"file://\" + str + \"/\" + sanitizeFilename(substring3);\n } else if (str2.startsWith(\"file://\")) {\n intent.setType(getMIMEType(str2));\n } else {\n throw new IllegalArgumentException(\"URL_NOT_SUPPORTED\");\n }\n return Uri.parse(str2);\n }",
"public static Uri getOutputMediaFileUri(int type) {\n return Uri.fromFile(getOutputMediaFile(type));\n }",
"private static Uri getOutputMediaFileUri(int type){\n\t return Uri.fromFile(getOutputMediaFile(type));\n\t}",
"public InputStream open(Context context, Uri uri) throws FileNotFoundException {\n Cursor cursor;\n Uri uri2;\n block5 : {\n block4 : {\n cursor = this.query.queryPath(context, uri);\n if (cursor != null) {\n try {\n Uri uri3;\n if (!cursor.moveToFirst()) break block4;\n uri2 = uri3 = this.parseThumbUri(cursor);\n break block5;\n }\n catch (Throwable var6_7) {\n if (cursor == null) throw var6_7;\n cursor.close();\n throw var6_7;\n }\n }\n }\n uri2 = null;\n }\n if (cursor != null) {\n cursor.close();\n }\n InputStream inputStream = null;\n if (uri2 == null) return inputStream;\n return context.getContentResolver().openInputStream(uri2);\n }",
"public String getRealPathFromURI(Uri contentUri) {\r\n String[] proj = {\"*\"};\r\n Cursor cursor = managedQuery(contentUri, proj, null, null, null);\r\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\r\n cursor.moveToFirst();\r\n return cursor.getString(column_index);\r\n }",
"public AbstractFileName(final String scheme, final String absolutePath, final FileType type) {\r\n this.rootUri = null;\r\n this.scheme = scheme;\r\n this.type = type;\r\n if (StringUtils.isEmpty(absolutePath)) {\r\n this.absPath = ROOT_PATH;\r\n } else if (absolutePath.length() > 1 && absolutePath.endsWith(\"/\")) {\r\n this.absPath = absolutePath.substring(0, absolutePath.length() - 1);\r\n } else {\r\n this.absPath = absolutePath;\r\n }\r\n }",
"public URI(String p_scheme, String p_schemeSpecificPart)\n throws MalformedURIException {\n if (p_scheme == null || p_scheme.trim().length() == 0) {\n throw new MalformedURIException(\n \"Cannot construct URI with null/empty scheme!\");\n }\n if (p_schemeSpecificPart == null ||\n p_schemeSpecificPart.trim().length() == 0) {\n throw new MalformedURIException(\n \"Cannot construct URI with null/empty scheme-specific part!\");\n }\n setScheme(p_scheme);\n setPath(p_schemeSpecificPart);\n }",
"private static Uri getOutputMediaFileUri(int type){\r\n\t return Uri.fromFile(getOutputMediaFile(type));\r\n\t}",
"public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }",
"FileObject getFile();",
"FileObject getFile();",
"public void downloadFile(final String fileUri, final String filePath) {\n\n new Thread(() -> {\n try {\n URL url = new URL(parseUrl(fileUri));\n URLConnection urlConnection = url.openConnection();\n InputStream inputStream = urlConnection.getInputStream();\n\n String filename = new File(filePath).getName();\n\n int count = 0;\n byte[] buffer = new byte[1024];\n\n File fileDir = new File(filePath).getParentFile();\n\n if (!fileDir.exists()) {\n fileDir.mkdirs();\n }\n\n File downloadFile = new File(fileDir + File.separator + filename);\n\n //Ensure that we do not always download existing files\n if (downloadFile.exists()) {\n return;\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(downloadFile);\n\n while ((count = inputStream.read(buffer)) != -1) {\n fileOutputStream.write(buffer, 0, count);\n }\n\n fileOutputStream.close();\n\n\n } catch (MalformedURLException e) {\n\n e.printStackTrace();\n\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n\n }\n }).start();\n\n }",
"private Uri getOutputMediaFileUri(){\n\t\treturn Uri.fromFile( getOutputMediaFile() );\n\t}",
"@NotNull URI getURI();",
"public static File getAsLocalFile(String name) throws IOException {\n \tif(!name.startsWith(\"/\")) name = \"/\"+name;\n \t\n \tURL url = NativeUtils.class.getResource(name);\n \tif(url == null) throw new FileNotFoundException(\"Unable to locate \"+name);\n \t\n \tFile file = null;\n \tif(url.getProtocol().equals(\"jar\")){\n \t\tfile = extractTmpFileFromJar(name, false);\n \t}else{\n \t\tfile = new File(url.getFile());\n \t}\n \treturn file;\n }",
"@Override\n public void open(URI uri) throws IOException {\n openUri = uri;\n }",
"public Uri getOutputMediaFileUri(int type, double latitude, double longitude){\n \tSystem.out.println(\"Uri: \" + type);\n \treturn Uri.fromFile(getOutputMediaFile(type, latitude, longitude));\n }",
"public String getRealPathFromURI(Context context, Uri contentUri) {\n Cursor cursor = null;\n try {\n String[] proj = {MediaStore.Images.Media.DATA};\n cursor = context.getContentResolver().query(contentUri, proj, null, null, null);\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n\n }catch (IllegalArgumentException e){\n Log.e(\"getRealPathFromURI()\",\"IllegalArgumentException\");\n return null;\n }catch (NullPointerException e){\n Log.e(\"getRealPathFromURI()\",\"IllegalArgumentException\");\n return null;\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }",
"public static String get_path_from_URI(Context context, Uri uri) {\r\n String result;\r\n Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);\r\n if (cursor == null) {\r\n result = uri.getPath();\r\n } else {\r\n cursor.moveToFirst();\r\n int idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\r\n result = cursor.getString(idx);\r\n cursor.close();\r\n }\r\n return result;\r\n }"
]
| [
"0.69342047",
"0.6881421",
"0.66922784",
"0.6557873",
"0.5932983",
"0.5884533",
"0.58015585",
"0.57992697",
"0.57954717",
"0.57818276",
"0.5778088",
"0.5771849",
"0.5755642",
"0.5721896",
"0.5712975",
"0.57123333",
"0.56566775",
"0.56262773",
"0.5606867",
"0.55773723",
"0.5574562",
"0.5498034",
"0.54657257",
"0.54624575",
"0.54527265",
"0.5437474",
"0.5421891",
"0.541406",
"0.5394818",
"0.53583544",
"0.53539526",
"0.5341072",
"0.53356016",
"0.53266525",
"0.5303286",
"0.52989185",
"0.5280973",
"0.52698386",
"0.5240234",
"0.5237475",
"0.52364975",
"0.523484",
"0.52130866",
"0.52062327",
"0.52025384",
"0.5202438",
"0.52023643",
"0.5193683",
"0.51924384",
"0.51924384",
"0.51924384",
"0.5179188",
"0.5173872",
"0.5173872",
"0.516581",
"0.5143407",
"0.513996",
"0.51301193",
"0.5129442",
"0.51291764",
"0.5127823",
"0.5125703",
"0.5121654",
"0.5104667",
"0.5104667",
"0.51042396",
"0.5098945",
"0.5097606",
"0.5097386",
"0.5086345",
"0.5086231",
"0.5067804",
"0.50675666",
"0.50675666",
"0.5065861",
"0.50610757",
"0.50610757",
"0.5052869",
"0.5046194",
"0.50450116",
"0.50445455",
"0.5039195",
"0.5030838",
"0.50070566",
"0.5005943",
"0.5002891",
"0.4993321",
"0.4993115",
"0.4983422",
"0.49782652",
"0.49700013",
"0.49700013",
"0.4966511",
"0.49590993",
"0.49571916",
"0.49490145",
"0.4947603",
"0.49467745",
"0.4946008",
"0.49408308"
]
| 0.80726045 | 0 |
Return the uri for the uri relative to the base uri. | public static URI getRelativeURI(URI base, URI uri) {
if (base != null && uri != null && (uri.getScheme() == null || uri.getScheme().equals(base.getScheme()))) {
StringTokenizer baseParts = tokenizeBase(base);
StringTokenizer uriParts = new StringTokenizer(uri.getSchemeSpecificPart(), "/");
StringBuffer relativePath = new StringBuffer();
String part = null;
boolean first = true;
if (!baseParts.hasMoreTokens()) {
return uri;
}
while (baseParts.hasMoreTokens() && uriParts.hasMoreTokens()) {
String baseDir = baseParts.nextToken();
part = uriParts.nextToken();
if ((baseDir.equals(part) && baseDir.contains(":")) && first) {
baseDir = baseParts.nextToken();
part = uriParts.nextToken();
}
if (!baseDir.equals(part)) { // || (baseDir.equals(part) && baseDir.contains(":"))) {
if (first) {
return uri;
}
relativePath.append("../");
break;
}
part = null;
first = false;
}
while (baseParts.hasMoreTokens()) {
relativePath.append("../");
baseParts.nextToken();
}
if (part != null) {
relativePath.append(part);
if (uriParts.hasMoreTokens()) {
relativePath.append("/");
}
}
while (uriParts.hasMoreTokens()) {
relativePath.append(uriParts.nextToken());
if (uriParts.hasMoreTokens()) {
relativePath.append("/");
}
}
return createURI(relativePath.toString());
}
return uri;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FullUriTemplateString baseUri();",
"String getBaseUri();",
"RaptureURI getBaseURI();",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"URI getBaseURI() {\n return _baseURI;\n }",
"URI getUri();",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"java.lang.String getUri();",
"java.lang.String getUri();",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}",
"@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }",
"public static String getBaseURI(NodeInfo node) {\n String xmlBase = node.getAttributeValue(StandardNames.XML_BASE);\n if (xmlBase != null) {\n String escaped = EscapeURI.escape(xmlBase,\"!#$%&'()*+,-./:;=?_[]~\").toString();\n URI escapedURI;\n try {\n escapedURI = new URI(escaped);\n if (!escapedURI.isAbsolute()) {\n NodeInfo parent = node.getParent();\n if (parent == null) {\n // We have a parentless element with a relative xml:base attribute. We need to ensure that\n // in such cases, the systemID of the element is always set to reflect the base URI\n // TODO: ignoring the above comment, in order to pass fn-base-uri-10 in XQTS...\n //return element.getSystemId();\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n // TODO: we are resolving a relative base URI against the base URI of the parent element.\n // This isn't what the RFC says we should do: we should resolve it against the base URI\n // of the containing entity. So xml:base on an ancestor element should have no effect (check this)\n URI base = new URI(node.getParent().getBaseURI());\n escapedURI = base.resolve(escapedURI);\n } else {\n URI base = new URI(startSystemId);\n escapedURI = base.resolve(escapedURI);\n }\n }\n } catch (URISyntaxException e) {\n // xml:base is an invalid URI. Just return it as is: the operation that needs the base URI\n // will probably fail as a result.\n return xmlBase;\n }\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n NodeInfo parent = node.getParent();\n if (parent == null) {\n return startSystemId;\n }\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n return parent.getBaseURI();\n } else {\n return startSystemId;\n }\n }",
"URI uri();",
"abstract String getUri();",
"@Override\n public String getBaseUri() {\n return null;\n }",
"String getUri();",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public static String getURI() {\n return uri;\n }",
"public String getUri();",
"public abstract String getResUri();",
"String getUri( );",
"public String uri() {\n return this.uri;\n }",
"@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}",
"public java.lang.String getUri() {\n return uri;\n }",
"public URI uri() {\n\t\treturn uri;\n\t}",
"public URI uri() {\n return uri;\n }",
"public String getUri() {\n return uri;\n }",
"private String getFullRemoteURI(String uri) {\n return REMOTE_NS_PREFIX + \":\" + uri;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"private String getFullLocalURI(String uri) {\n return LOCAL_NS_PREFIX + \":\" + uri;\n }",
"public String getUri()\r\n {\r\n return uri;\r\n }",
"public String getUri() {\n return uri;\n }",
"public byte[] uri() {\n return uri;\n }",
"public String getUri() {\r\n\t\treturn uri;\r\n\t}",
"java.lang.String getResourceUri();",
"public static String getURI(){\n\t\treturn uri;\n\t}",
"String getURI();",
"String getURI();",
"String getURI();",
"public String getUri() {\n\t\t\treturn uri;\n\t\t}",
"public String getUri() {\n\t\treturn uri;\n\t}",
"public URI getURI()\r\n/* 36: */ {\r\n/* 37:64 */ return this.httpRequest.getURI();\r\n/* 38: */ }",
"public String getBaseURI() {\n return node.get_BaseURI();\n }",
"public static String composePath(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\tFile file = new File(uri);\n\t\t\treturn file.toString();\n\t\t} else if (base != null) {\n\t\t\tFile file = new File(new File(base), uri.toString());\n\t\t\treturn file.toString();\n\t\t}\n\t\treturn relativePath;\n\t}",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"@NotNull URI getURI();",
"protected String uri(String path) {\n return baseURI + '/' + path;\n }",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public URI getUri()\n {\n return uri;\n }",
"public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }",
"private static URI toResourceURI( Class<?> baseClass, String baseDir) {\n try {\n return\n baseClass != null\n ? baseClass.getResource( baseDir==null? \".\" : baseDir).toURI()\n : new URI( \"file://\" + (baseDir==null? \"\" : baseDir));\n }\n catch( Exception e) {\n throw new IllegalArgumentException( \"Can't create URI\", e);\n }\n }",
"@Override\r\n public String getRootURI() {\r\n if (rootUri == null) {\r\n final StringBuilder buffer = new StringBuilder();\r\n appendRootUri(buffer, true);\r\n buffer.append(SEPARATOR_CHAR);\r\n rootUri = buffer.toString().intern();\r\n }\r\n return rootUri;\r\n }",
"public static URI uri(UriInfo uriInfo) {\n return uriInfo.getBaseUriBuilder().path(WebHomeResource.class).build();\n }",
"public URI getUri() {\r\n\t\treturn uri;\r\n\t}",
"@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }",
"public URI getURI()\r\n/* 49: */ {\r\n/* 50: */ try\r\n/* 51: */ {\r\n/* 52: 83 */ return new URI(this.servletRequest.getScheme(), null, this.servletRequest.getServerName(), \r\n/* 53: 84 */ this.servletRequest.getServerPort(), this.servletRequest.getRequestURI(), \r\n/* 54: 85 */ this.servletRequest.getQueryString(), null);\r\n/* 55: */ }\r\n/* 56: */ catch (URISyntaxException ex)\r\n/* 57: */ {\r\n/* 58: 88 */ throw new IllegalStateException(\"Could not get HttpServletRequest URI: \" + ex.getMessage(), ex);\r\n/* 59: */ }\r\n/* 60: */ }",
"public String getURI() {\n if (filePath == null) {\n return null;\n }\n int ind = filePath.lastIndexOf(\"/\");\n if (ind != -1) {\n //int ind2 = filePath.substring(0, ind-1).lastIndexOf(\"/\");\n //if (ind2 != -1)\n // return filePath.substring(ind2+1, filePath.length());\n return filePath.substring(ind+1, filePath.length());\n }\n\n return new File(filePath).getName();\n }",
"public GiftCardProductQuery relativeUrl() {\n startField(\"relative_url\");\n\n return this;\n }",
"public final Uri getInternalUri() {\n return this.mInternalUri;\n }",
"public static String getRelativePath(URI base, File file) {\n\t\treturn toString(getRelativeURI(base, file.toURI()));\n\t}",
"public static String getRelativeUrl() {\n return url;\n }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"public URI getUri() {\n\t\treturn uri;\n\t}",
"public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }",
"void setBaseUri(String baseUri);",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"public URI getUri() {\n return this.uri;\n }",
"public URL getBaseHref() {\n return baseHref;\n }",
"public String getUri() {\n\t\treturn Uri;\n\t}",
"private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }",
"public String getRequestURI ()\n {\n return uri;\n }",
"@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }",
"public static String getModuleBaseUrl(HttpServletRequest request) {\n\t String requestedUri = request.getRequestURI();\n\t int contextEnd = request.getContextPath().length();\n\t int folderEnd = requestedUri.lastIndexOf('/') + 1;\n\t return requestedUri.substring(contextEnd, folderEnd);\n\t }",
"public String getBaseUrl() {\n return builder.getBaseUrl();\n }",
"private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }",
"private URI getUri(final MMIContext context, final StartRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null && !href.isEmpty()) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }",
"public abstract String getBaseURL();",
"private Uri computeUri(Context param1) {\n }",
"public String getRequestURI() {\n return uri;\n }",
"URI createURI();",
"static public String getURI(HttpServletRequest request){\r\n\t\treturn request.getRequestURI();\r\n\t}",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}",
"public String getLocalUri() {\n return localUri;\n }",
"public Optional<String> getUri() {\n return Optional.ofNullable(uri);\n }",
"private URI getUri(final MMIContext context, final PrepareRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }",
"private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }",
"protected String getRequestURI(HttpServletRequest request) {\r\n\t\t\r\n\t\tString uri = request.getRequestURI();\r\n\t\tString ctxPath = request.getContextPath();\r\n\r\n\t\tif (contextAware == true && uri.startsWith(ctxPath))\r\n\t\t\turi = uri.substring(ctxPath.length());\r\n\r\n\t\treturn uri;\r\n\t}",
"public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}",
"public URI getRequestURI();",
"@Value.Default\n public String getUri() {\n\treturn \"\";\n }",
"public String getURI() {\n/* 95 */ return this.uri;\n/* */ }",
"public String getBaseUrl() {\n return (String) get(\"base_url\");\n }",
"private static URI determineDocBaseURI(URI docURI, Document doc) {\n\n // Note: The first base element with a href attribute is considered\n // valid in HTML. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base.\n var baseElem = doc.selectFirst(\"base[href]\");\n return baseElem != null ? docURI.resolve(baseElem.attr(\"href\")) : docURI;\n }"
]
| [
"0.768938",
"0.72977215",
"0.7267465",
"0.7255437",
"0.71149737",
"0.69693136",
"0.67202437",
"0.6671526",
"0.6662984",
"0.66514987",
"0.66514987",
"0.66391796",
"0.66002494",
"0.6588051",
"0.6557957",
"0.6544298",
"0.6499197",
"0.6497294",
"0.6395951",
"0.6370012",
"0.63183296",
"0.62781143",
"0.627171",
"0.62520814",
"0.62517405",
"0.62420225",
"0.62247205",
"0.6211899",
"0.61897093",
"0.6186718",
"0.6176746",
"0.6159456",
"0.6146634",
"0.614624",
"0.6112769",
"0.61101884",
"0.61082375",
"0.61073923",
"0.61048406",
"0.6099065",
"0.6093659",
"0.6082824",
"0.6082824",
"0.6082824",
"0.60821533",
"0.6069324",
"0.6065513",
"0.60578007",
"0.60352033",
"0.6013299",
"0.6010445",
"0.59876424",
"0.59783995",
"0.5972641",
"0.5969909",
"0.59653133",
"0.59546745",
"0.59521437",
"0.5945938",
"0.5933478",
"0.59288037",
"0.5915416",
"0.59137285",
"0.5912945",
"0.59124714",
"0.5903713",
"0.5900028",
"0.58993953",
"0.5894722",
"0.5894519",
"0.588784",
"0.588485",
"0.5884404",
"0.58660066",
"0.58653766",
"0.5861695",
"0.58487505",
"0.5845554",
"0.58323044",
"0.5824924",
"0.5814583",
"0.57995015",
"0.5756155",
"0.5752485",
"0.57503676",
"0.5735288",
"0.57204664",
"0.5705721",
"0.5647587",
"0.564648",
"0.56420016",
"0.5625284",
"0.56227136",
"0.56207585",
"0.56127274",
"0.5590923",
"0.55790144",
"0.55785346",
"0.55784774",
"0.5578051"
]
| 0.68429905 | 6 |
Return the path for the file relative to the base uri. | public static String getRelativePath(URI base, File file) {
return toString(getRelativeURI(base, file.toURI()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }",
"public String getURI() {\n if (filePath == null) {\n return null;\n }\n int ind = filePath.lastIndexOf(\"/\");\n if (ind != -1) {\n //int ind2 = filePath.substring(0, ind-1).lastIndexOf(\"/\");\n //if (ind2 != -1)\n // return filePath.substring(ind2+1, filePath.length());\n return filePath.substring(ind+1, filePath.length());\n }\n\n return new File(filePath).getName();\n }",
"@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }",
"public String getPath() {\n\t\treturn file.getPath();\n\t}",
"public abstract String getFullPath();",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static String composePath(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\tFile file = new File(uri);\n\t\t\treturn file.toString();\n\t\t} else if (base != null) {\n\t\t\tFile file = new File(new File(base), uri.toString());\n\t\t\treturn file.toString();\n\t\t}\n\t\treturn relativePath;\n\t}",
"public String getPath() {\n if (fileType == HTTP) {\n return fileName.substring(0, fileName.lastIndexOf(\"/\"));\n } else {\n return fileName.substring(0, fileName.lastIndexOf(File.separator));\n }\n }",
"public String getAbsPath();",
"public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}",
"FsPath baseDir();",
"public String getRelativePath();",
"String getBaseUri();",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"java.lang.String getFilePath();",
"public String getFullPath()\n {\n return( fullPath );\n }",
"public String formatFilePath(){\n StringBuilder returnResult = new StringBuilder();\n String temp;\n temp = StringUtil.removeHttpPrefix(uri);\n returnResult.append(DEFAULT_DIRECTORY).append(\"\\\\\").append(temp);\n return returnResult.toString();\n }",
"public String resolvePath();",
"public String getLocalFilePath() {\n return loadConn.getProperty(\"filePath\");\n }",
"private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}",
"public abstract String getFileLocation();",
"RaptureURI getBaseURI();",
"String getFilepath();",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}",
"public String getLocationPath();",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public static String getRelativeUrl() {\n return url;\n }",
"String getFilePath();",
"static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}",
"Path getFilePath();",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"java.io.File getBaseDir();",
"public abstract String getFullPath(final String resourcePath);",
"public String getRelativeFolderPath() {\r\n return relativeFolderPath;\r\n }",
"java.lang.String getResourceUri();",
"public abstract String getPath();",
"public abstract String getPath();",
"public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }",
"public static File composeFile(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\treturn new File(uri);\n\t\t} else if (base != null) {\n\t\t\treturn new File(new File(base), uri.toString());\n\t\t}\n\t\treturn null;\n\t}",
"File getTilePathBase();",
"public String getFilePath() {\n return getSourceLocation().getFilePath();\n }",
"FullUriTemplateString baseUri();",
"private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }",
"private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}",
"public File fileRelativeToSource(File f) {\n if (f.isAbsolute()) {\n return f;\n } else {\n return new File(_basedir, f.getPath());\n }\n }",
"public static String getAbsoluteFilePath(String relativePath) throws URISyntaxException {\n URL fileResource = BCompileUtil.class.getClassLoader().getResource(relativePath);\n String pathValue = \"\";\n if (null != fileResource) {\n Path path = Paths.get(fileResource.toURI());\n pathValue = path.toAbsolutePath().toString();\n }\n return pathValue;\n }",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"private File getFile(String relativePath) { \n StringBuffer path = new StringBuffer();\n path.append(rootDir.getAbsolutePath());\n path.append(File.separator);\n path.append(relativePath);\n return new File(path.toString());\n }",
"public String path() {\n return filesystem().pathString(path);\n }",
"public final String getPath() {\n\t\treturn this.path.toString();\n\t}",
"public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }",
"private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }",
"public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}",
"public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"public final String getPath()\n {\n return path;\n }",
"public String getPath() {\n\t\treturn mFileToPlay;\n\t}",
"java.lang.String getFileLoc();",
"@java.lang.Override\n public java.lang.String getFilePath() {\n return filePath_;\n }",
"public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}",
"public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }",
"public static String getFilePath(Resource resource) {\n\t\treturn getFilePath(resource.getResourceSet(), resource.getURI());\n\t}",
"public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }",
"@java.lang.Override\n public java.lang.String getFilePath() {\n return instance.getFilePath();\n }",
"public String getPath() {\n\t\treturn pfDir.getPath();\n\t}",
"public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }",
"public static String getPath(final Context context, final Uri uri) {\n\n if (DEBUG)\n Log.d(TAG + \" File -\",\n \"Authority: \" + uri.getAuthority() +\n \", Fragment: \" + uri.getFragment() +\n \", Port: \" + uri.getPort() +\n \", Query: \" + uri.getQuery() +\n \", Scheme: \" + uri.getScheme() +\n \", Host: \" + uri.getHost() +\n \", Segments: \" + uri.getPathSegments().toString()\n );\n\n final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;\n\n // DocumentProvider\n if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {\n // LocalStorageProvider\n if (isLocalStorageDocument(uri)) {\n // The path is the id\n return DocumentsContract.getDocumentId(uri);\n }\n // ExternalStorageProvider\n else if (isExternalStorageDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n if (\"primary\".equalsIgnoreCase(type)) {\n return Environment.getExternalStorageDirectory() + \"/\" + split[1];\n }\n\n // TODO handle non-primary volumes\n }\n // DownloadsProvider\n else if (isDownloadsDocument(uri)) {\n\n final String id = DocumentsContract.getDocumentId(uri);\n final Uri contentUri = ContentUris.withAppendedId(\n Uri.parse(\"content://downloads/public_downloads\"), Long.valueOf(id));\n\n return getDataColumn(context, contentUri, null, null);\n }\n // MediaProvider\n else if (isMediaDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n Uri contentUri = null;\n if (\"image\".equals(type)) {\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n } else if (\"video\".equals(type)) {\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n } else if (\"audio\".equals(type)) {\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n }\n\n final String selection = \"_id=?\";\n final String[] selectionArgs = new String[]{\n split[1]\n };\n\n return getDataColumn(context, contentUri, selection, selectionArgs);\n }\n }\n // MediaStore (and general)\n else if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n\n // Return the remote address\n if (isGooglePhotosUri(uri))\n return uri.getLastPathSegment();\n\n if (isGoogleVideosUri(uri))\n return uri.getLastPathSegment();\n\n return getDataColumn(context, uri, null, null);\n }\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }",
"@Override\n public String getBaseUri() {\n return null;\n }",
"protected String path() {\n return path(getName());\n }",
"public java.io.File getBaseDir() {\n return baseDir;\n }",
"String getAbsolutePathWithinSlingHome(String relativePath);",
"public static File getBaseDir()\n {\n return fBaseDir;\n }",
"public File getBasedir()\n {\n return basedir;\n }",
"protected abstract String getBaseEndpointPath();",
"public String getOpenFilePath() {\n\t\treturn filePath.getText();\n\t}",
"java.lang.String getSrcPath();",
"@Override\r\n public URI getAbsolutePath() {\n return null;\r\n }",
"public String getFilepath() {\n\t\treturn this.filepath;\n\t}",
"public static String getFullFilePath(String filePath) {\n\t\treturn getCurrentDir() + getJMEFilePath(filePath);\n\t}",
"public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public java.lang.String getFilepath()\n {\n return filepath;\n }",
"public abstract String getFotoPath();",
"public byte[] uri() {\n return uri;\n }",
"@Nullable\n public static String getRelativePath(String filepath) {\n return StringUtils.replace(StringUtils.substringAfter(filepath, StringUtils.substringBefore(\n filepath, \"\\\\\" + DEF_LOC_ARTIFACT)), \"\\\\\", \"/\");\n }",
"public static String getRealFilePath( final Context context, final Uri uri ) {\n\n if ( null == uri ) return null;\n\n final String scheme = uri.getScheme();\n String data = null;\n\n if ( scheme == null )\n data = uri.getPath();\n else if ( ContentResolver.SCHEME_FILE.equals( scheme ) ) {\n data = uri.getPath();\n } else if ( ContentResolver.SCHEME_CONTENT.equals( scheme ) ) {\n Cursor cursor = context.getContentResolver().query( uri, new String[] { Images.ImageColumns.DATA }, null, null, null );\n if ( null != cursor ) {\n if ( cursor.moveToFirst() ) {\n int index = cursor.getColumnIndex( Images.ImageColumns.DATA );\n if ( index > -1 ) {\n data = cursor.getString( index );\n }\n }\n cursor.close();\n }\n }\n return data;\n }",
"public String path(File f) {\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(0, sep);\r\n }",
"protected String getPath ()\n\t{\n\t\treturn path;\n\t}",
"@Override\n \tprotected File deriveLocalFileCodeBase(Class<?> baseClass)\n \t{\n \t\t// setup codeBase\n \t\tif (baseClass == null)\n \t\t\tbaseClass = this.getClass();\n \n \t\tPackage basePackage = baseClass.getPackage();\n \t\tString packageName = basePackage.getName();\n \t\tString packageNameAsPath = packageName.replace('.', Files.sep);\n \n \t\tString pathName = System.getProperty(\"user.dir\") + Files.sep;\n \t\tFile path = new File(pathName);\n \t\tString pathString = path.getAbsolutePath();\n \n \t\t// println(\"looking for \" + packageNameAsPath +\" in \" + pathString);\n \n \t\tint packageIndex = pathString.lastIndexOf(packageNameAsPath);\n \t\tif (packageIndex != -1)\n \t\t{\n \t\t\tpathString = pathString.substring(0, packageIndex);\n \t\t\tpath = new File(pathString + Files.sep);\n \t\t}\n \n \t\tcodeBase = new ParsedURL(path);\n \t\tprintln(\"codeBase=\" + codeBase);\n \t\treturn path;\n \t}",
"public String getResourceUri() {\n return resourceUri;\n }",
"String getRealPath(String path);",
"public String getPath()\n {\n return path;\n }"
]
| [
"0.7091692",
"0.6948855",
"0.6940015",
"0.68169",
"0.67948955",
"0.674483",
"0.674483",
"0.67390335",
"0.672673",
"0.66148317",
"0.66065806",
"0.656938",
"0.6551655",
"0.6530185",
"0.65207493",
"0.6497765",
"0.64388555",
"0.64105344",
"0.63948613",
"0.63839483",
"0.6374248",
"0.63729537",
"0.63556874",
"0.63205475",
"0.6309175",
"0.6309175",
"0.6309175",
"0.6285454",
"0.6282839",
"0.62610096",
"0.6256999",
"0.6256999",
"0.6256999",
"0.6256999",
"0.6256999",
"0.62433845",
"0.624248",
"0.6232744",
"0.621619",
"0.62000227",
"0.61915565",
"0.6174226",
"0.61728776",
"0.61723775",
"0.6162503",
"0.6162503",
"0.6154063",
"0.6146857",
"0.6139987",
"0.61295474",
"0.6127461",
"0.60930204",
"0.6075065",
"0.60728467",
"0.60623235",
"0.60519683",
"0.60466594",
"0.6025121",
"0.6000549",
"0.5994007",
"0.5993044",
"0.5981864",
"0.59620476",
"0.59488285",
"0.59330255",
"0.59311575",
"0.5922948",
"0.5916586",
"0.5915176",
"0.59099406",
"0.5908172",
"0.59072554",
"0.589908",
"0.5898337",
"0.5891388",
"0.5876564",
"0.5867643",
"0.5864428",
"0.58626187",
"0.58623606",
"0.58423436",
"0.5842146",
"0.58366203",
"0.58323973",
"0.5820511",
"0.58178174",
"0.5814779",
"0.5810004",
"0.58081824",
"0.5805501",
"0.5801805",
"0.57959414",
"0.57851946",
"0.57758063",
"0.5773782",
"0.5773568",
"0.5764358",
"0.5758327",
"0.57554984",
"0.5753581"
]
| 0.70181054 | 1 |
Return the absolute path, composed from a base URI and a relative path. | public static File composeFile(URI base, String relativePath) {
URI uri = composeURI(base, relativePath);
if (uri.isAbsolute()) {
return new File(uri);
} else if (base != null) {
return new File(new File(base), uri.toString());
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String composePath(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\tFile file = new File(uri);\n\t\t\treturn file.toString();\n\t\t} else if (base != null) {\n\t\t\tFile file = new File(new File(base), uri.toString());\n\t\t\treturn file.toString();\n\t\t}\n\t\treturn relativePath;\n\t}",
"FullUriTemplateString baseUri();",
"public static URI getRelativeURI(URI base, URI uri) {\n\t\tif (base != null && uri != null && (uri.getScheme() == null || uri.getScheme().equals(base.getScheme()))) {\n\t\t\tStringTokenizer baseParts = tokenizeBase(base);\n\t\t\tStringTokenizer uriParts = new StringTokenizer(uri.getSchemeSpecificPart(), \"/\");\n\t\t\tStringBuffer relativePath = new StringBuffer();\n\t\t\tString part = null;\n\t\t\tboolean first = true;\n\t\t\tif (!baseParts.hasMoreTokens()) {\n\t\t\t\treturn uri;\n\t\t\t}\n\t\t\twhile (baseParts.hasMoreTokens() && uriParts.hasMoreTokens()) {\n\t\t\t\tString baseDir = baseParts.nextToken();\n\t\t\t\tpart = uriParts.nextToken();\n\t\t\t\tif ((baseDir.equals(part) && baseDir.contains(\":\")) && first) {\n\t\t\t\t\tbaseDir = baseParts.nextToken();\n\t\t\t\t\tpart = uriParts.nextToken();\n\t\t\t\t}\n\t\t\t\tif (!baseDir.equals(part)) { // || (baseDir.equals(part) && baseDir.contains(\":\"))) {\n\t\t\t\t\tif (first) {\n\t\t\t\t\t\treturn uri;\n\t\t\t\t\t}\n\t\t\t\t\trelativePath.append(\"../\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tpart = null;\n\t\t\t\tfirst = false;\n\t\t\t}\n\t\t\twhile (baseParts.hasMoreTokens()) {\n\t\t\t\trelativePath.append(\"../\");\n\t\t\t\tbaseParts.nextToken();\n\t\t\t}\n\t\t\tif (part != null) {\n\t\t\t\trelativePath.append(part);\n\t\t\t\tif (uriParts.hasMoreTokens()) {\n\t\t\t\t\trelativePath.append(\"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (uriParts.hasMoreTokens()) {\n\t\t\t\trelativePath.append(uriParts.nextToken());\n\t\t\t\tif (uriParts.hasMoreTokens()) {\n\t\t\t\t\trelativePath.append(\"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn createURI(relativePath.toString());\n\t\t}\n\t\treturn uri;\n\t}",
"String getBaseUri();",
"private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"RaptureURI getBaseURI();",
"public static String getRelativePath(URI base, File file) {\n\t\treturn toString(getRelativeURI(base, file.toURI()));\n\t}",
"public static String getAbsoluteFilePath(String relativePath) throws URISyntaxException {\n URL fileResource = BCompileUtil.class.getClassLoader().getResource(relativePath);\n String pathValue = \"\";\n if (null != fileResource) {\n Path path = Paths.get(fileResource.toURI());\n pathValue = path.toAbsolutePath().toString();\n }\n return pathValue;\n }",
"public static String getBaseURI(NodeInfo node) {\n String xmlBase = node.getAttributeValue(StandardNames.XML_BASE);\n if (xmlBase != null) {\n String escaped = EscapeURI.escape(xmlBase,\"!#$%&'()*+,-./:;=?_[]~\").toString();\n URI escapedURI;\n try {\n escapedURI = new URI(escaped);\n if (!escapedURI.isAbsolute()) {\n NodeInfo parent = node.getParent();\n if (parent == null) {\n // We have a parentless element with a relative xml:base attribute. We need to ensure that\n // in such cases, the systemID of the element is always set to reflect the base URI\n // TODO: ignoring the above comment, in order to pass fn-base-uri-10 in XQTS...\n //return element.getSystemId();\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n // TODO: we are resolving a relative base URI against the base URI of the parent element.\n // This isn't what the RFC says we should do: we should resolve it against the base URI\n // of the containing entity. So xml:base on an ancestor element should have no effect (check this)\n URI base = new URI(node.getParent().getBaseURI());\n escapedURI = base.resolve(escapedURI);\n } else {\n URI base = new URI(startSystemId);\n escapedURI = base.resolve(escapedURI);\n }\n }\n } catch (URISyntaxException e) {\n // xml:base is an invalid URI. Just return it as is: the operation that needs the base URI\n // will probably fail as a result.\n return xmlBase;\n }\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n NodeInfo parent = node.getParent();\n if (parent == null) {\n return startSystemId;\n }\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n return parent.getBaseURI();\n } else {\n return startSystemId;\n }\n }",
"public String getAbsPath();",
"@Override\r\n public URI getAbsolutePath() {\n return null;\r\n }",
"@Test\n public void testRelativize_bothAbsolute() {\n assertRelativizedPathEquals(\"b/c\", pathService.parsePath(\"/a\"), \"/a/b/c\");\n assertRelativizedPathEquals(\"c/d\", pathService.parsePath(\"/a/b\"), \"/a/b/c/d\");\n }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"String absolutize(String baseURI, String systemId, boolean nice)\n throws MalformedURLException, SAXException\n {\n // FIXME normalize system IDs -- when?\n // - Convert to UTF-8\n // - Map reserved and non-ASCII characters to %HH\n \n try\n {\n if (baseURI == null && XmlParser.uriWarnings)\n {\n warn (\"No base URI; hope this SYSTEM id is absolute: \"\n + systemId);\n return new URL(systemId).toString();\n }\n else\n {\n return new URL(new URL(baseURI), systemId).toString();\n }\n }\n catch (MalformedURLException e)\n {\n // Let unknown URI schemes pass through unless we need\n // the JVM to map them to i/o streams for us...\n if (!nice)\n {\n throw e;\n }\n \n // sometimes sysids for notations or unparsed entities\n // aren't really URIs...\n warn(\"Can't absolutize SYSTEM id: \" + e.getMessage());\n return systemId;\n }\n }",
"@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }",
"public static String resolveImportURI(String baseURI, String importURI) {\r\n if (importURI == null) {\r\n throw new IllegalArgumentException(\"importURI is null.\");\r\n }\r\n // case 1: absolute URI of a remote file\r\n if (importURI.startsWith(HTTP_PREFIX) ||\r\n importURI.startsWith(HTTPS_PREFIX) ||\r\n importURI.startsWith(FTP_PREFIX)) {\r\n return importURI;\r\n }\r\n // case 2: absolute URI of a local file\r\n if (importURI.startsWith(FILE_PREFIX)) {\r\n return importURI.replaceFirst(FILE_PREFIX, \"\");\r\n }\r\n // case 3: absolute file path of a local file\r\n Path path = Paths.get(importURI);\r\n if (path.isAbsolute()) {\r\n return importURI;\r\n }\r\n if (baseURI == null) {\r\n throw new IllegalArgumentException(\"baseURI is null.\");\r\n }\r\n // case 4: relative URI of a remote file\r\n if (baseURI.startsWith(HTTP_PREFIX) ||\r\n baseURI.startsWith(HTTPS_PREFIX) ||\r\n baseURI.startsWith(FTP_PREFIX)) {\r\n return baseURI.endsWith(\"/\") ? baseURI + importURI : baseURI + \"/\" + importURI;\r\n }\r\n // case 5: relative URI of a local file\r\n if (baseURI.startsWith(FILE_PREFIX)) {\r\n baseURI = baseURI.replaceFirst(FILE_PREFIX, \"\");\r\n return baseURI.endsWith(\"/\") ? baseURI + importURI : baseURI + \"/\" + importURI;\r\n }\r\n // case 6: relative file path of a local file\r\n path = Paths.get(baseURI, importURI);\r\n return path.toString();\r\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }",
"private String makePathAbsolute(String pathString, IPath root) {\n IPath path = new Path(pathString.trim());\n if (!path.isEmpty() && !path.isAbsolute()) {\n IPath filePath = root.append(path);\n return filePath.toOSString();\n }\n return path.toOSString();\n }",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"public static String toRelativeURL(URL base, URL target) {\n\t\t// Precondition: If URL is a path to folder, then it must end with '/'\n\t\t// character.\n\t\tif ((base.getProtocol().equals(target.getProtocol()))\n\t\t\t\t|| (base.getHost().equals(target.getHost()))) { // changed this logic symbol\n\n\t\t\tString baseString = base.getFile();\n\t\t\tString targetString = target.getFile();\n\t\t\tString result = \"\";\n\n\t\t\t// remove filename from URL\n\t\t\tbaseString = baseString.substring(0,\n\t\t\t\t\tbaseString.lastIndexOf(\"/\") + 1);\n\n\t\t\t// remove filename from URL\n\t\t\ttargetString = targetString.substring(0,\n\t\t\t\t\ttargetString.lastIndexOf(\"/\") + 1);\n\n\t\t\tStringTokenizer baseTokens = new StringTokenizer(baseString, \"/\");// Maybe\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// causes\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// problems\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// under\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// windows\n\t\t\tStringTokenizer targetTokens = new StringTokenizer(targetString,\n\t\t\t\t\t\"/\");// Maybe this causes problems under windows\n\n\t\t\tString nextBaseToken = \"\", nextTargetToken = \"\";\n\n\t\t\t// Algorithm\n\n\t\t\twhile (baseTokens.hasMoreTokens() && targetTokens.hasMoreTokens()) {\n\t\t\t\tnextBaseToken = baseTokens.nextToken();\n\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\tif (!(nextBaseToken.equals(nextTargetToken))) {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tresult = result.concat(\"../\");\n\t\t\t\t\t\tif (!baseTokens.hasMoreTokens()) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextBaseToken = baseTokens.nextToken();\n\t\t\t\t\t}\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tresult = result.concat(nextTargetToken + \"/\");\n\t\t\t\t\t\tif (!targetTokens.hasMoreTokens()) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\t\t}\n\t\t\t\t\tString temp = target.getFile(); // to string\n\t\t\t\t\tresult = result.concat(temp.substring(\n\t\t\t\t\t\t\ttemp.lastIndexOf(\"/\") + 1, temp.length()));\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile (baseTokens.hasMoreTokens()) {\n\t\t\t\tresult = result.concat(\"../\");\n\t\t\t\tbaseTokens.nextToken();\n\t\t\t}\n\n\t\t\twhile (targetTokens.hasMoreTokens()) {\n\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\tresult = result.concat(nextTargetToken + \"/\");\n\t\t\t}\n\n\t\t\tString temp = target.getFile(); // to string\n\t\t\tresult = result.concat(temp.substring(temp.lastIndexOf(\"/\") + 1,\n\t\t\t\t\ttemp.length()));\n\t\t\treturn result;\n\t\t}\n\t\treturn target.toString();\n\t}",
"@Test\n public void testToAbsolute_String_String() throws Exception {\n System.out.println(\"toAbsolute\");\n String base = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String relative = \"../path2/doc2?a=1&b=2#part2\";\n String expResult = \"http://user:[email protected]:8080/to/path2/doc2?a=1&b=2#part2\";\n String result = URLParser.toAbsolute(base, relative);\n assertEquals(expResult, result);\n }",
"private static String translateToAssetPath(URI assetRefURI, URI docBaseURI) {\n String assetPath;\n\n if (isDocumentRelativeURI(assetRefURI)) {\n assetPath = docBaseURI.resolve(assetRefURI).normalize().getPath();\n\n // Note: A leading slash is prepended, when Path.getPath() does not return a String with\n // a leading slash. This could be the case if the document's base URI does not have a path portion.\n // The leading slash is required to adhere to the pattern of a normalized asset path.\n assetPath = assetPath.startsWith(\"/\") ? assetPath : \"/\" + assetPath;\n } else if (isProtocolRelativeURI(assetRefURI)) {\n assetPath = assetRefURI.normalize().getPath();\n } else if (isRootRelativeURI(assetRefURI)) {\n assetPath = assetRefURI.normalize().toString();\n } else if (assetRefURI.isAbsolute()) {\n assetPath = assetRefURI.normalize().getPath();\n } else {\n\n // Note: This could be an error as well, but in auto-build mode, there can\n // easy be a situation, that would raise and thus kill the process. One could\n // think about differentiating behavior based on one-time and auto-build mode\n // but there's not the necessary infrastructure (e.g. a generation context object)\n // for that right now.\n LOG.warn(String.format(\"Failed to discern URL type of '%s' when trying to map it to the corresponding \" +\n \"site asset path. Leaving it unprocessed.\", assetRefURI));\n assetPath = assetRefURI.toString();\n }\n\n return cutOptionalFingerprint(assetPath);\n }",
"public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}",
"static Path absolute(final Path path) {\n return path.toAbsolutePath().normalize();\n }",
"public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}",
"@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }",
"public static String resolveBaseURI(String fileURI) throws CWLException {\r\n if (fileURI == null) {\r\n throw new IllegalArgumentException(\"fileURI is null.\");\r\n }\r\n if (fileURI.startsWith(HTTP_PREFIX) ||\r\n fileURI.startsWith(HTTPS_PREFIX) ||\r\n fileURI.startsWith(FTP_PREFIX) ||\r\n fileURI.startsWith(FILE_PREFIX)) {\r\n int index = fileURI.lastIndexOf('/');\r\n if (index > fileURI.indexOf(\"//\") + 1) {\r\n return fileURI.substring(0, index);\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(CWL_IO_FILE_INVALID_PATH, fileURI), 255);\r\n }\r\n } else {\r\n return Paths.get(fileURI).getParent().toString();\r\n }\r\n }",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"URI getBaseURI() {\n return _baseURI;\n }",
"URI uri();",
"@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public static boolean BaseURIDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"BaseURIDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, BASE_URI_DECL, null);\n r = consumeTokens(b, 2, K_DECLARE, K_BASE_URI);\n p = r; // pin = 2\n r = r && report_error_(b, URILiteral(b, l + 1));\n r = p && Separator(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public String getProjectRelativeFileName(URI resourceURI, IFileSystemAccess fsa) {\r\n\t\t// @see http://www.eclipse.org/forums/index.php/m/1230878/#msg_1230878\r\n\t\tif (!resourceURI.isPlatformResource())\r\n\t\t\tthrow new IllegalArgumentException(\"Not a Platform Resource URI: \" + resourceURI.toString());\r\n\t\t// This is bit of a hack, but it works...\r\n\t\tString sURI = resourceURI.toPlatformString(true);\r\n\t\tString withoutProject = sURI.substring(sURI.indexOf('/', 1) + 1);\r\n\t\treturn withoutProject;\r\n\t\t// Something like this may be a better use of the API, but is much more difficult to unit test in EFactoryJSONGeneratorTest, so not pursued: \r\n\t\t// URI projectRootURI = ((IFileSystemAccessExtension2)fsa).getURI(\".\");\r\n\t\t// URI resourceWithoutProjectURI = resourceURI.deresolve(projectRootURI);\r\n\t\t// return resourceWithoutProjectURI.toString();\r\n\t}",
"protected String uri(String path) {\n return baseURI + '/' + path;\n }",
"public abstract String getFullPath();",
"abstract String getUri();",
"String getAbsolutePathWithinSlingHome(String relativePath);",
"public String getURI() {\n if (filePath == null) {\n return null;\n }\n int ind = filePath.lastIndexOf(\"/\");\n if (ind != -1) {\n //int ind2 = filePath.substring(0, ind-1).lastIndexOf(\"/\");\n //if (ind2 != -1)\n // return filePath.substring(ind2+1, filePath.length());\n return filePath.substring(ind+1, filePath.length());\n }\n\n return new File(filePath).getName();\n }",
"@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}",
"URI getUri();",
"@Override\n public String getBaseUri() {\n return null;\n }",
"private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }",
"public void testAbsolutize() throws Exception {\n\n Object[] test_values = {\n new String[]{\"/base/path\", \"foo.bar\", \"/base/path/foo.bar\"},\n new String[]{\"/base/path/\", \"foo.bar\", \"/base/path/foo.bar\"},\n new String[]{\"/base/path\", \"/foo.bar\", \"/foo.bar\"},\n \n new String[]{\"/base/path\", \"\", \"/base/path\"},\n new String[]{\"/base/path\", null, \"/base/path\"},\n \n new String[]{\"\", \"foo.bar\", \"foo.bar\"},\n new String[]{null, \"foo.bar\", \"foo.bar\"},\n };\n \n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String test_path = tests[0];\n String test_rel_resource = tests[1];\n String expected = tests[2];\n\n String result = NetUtils.absolutize(test_path, test_rel_resource);\n String message = \"Test \" +\n \" path \" + \"'\" + test_path + \"'\" +\n \" relativeResource \" + \"'\" + test_rel_resource;\n assertEquals(message, expected, result);\n }\n }",
"public URL makeBase(URL startingURL);",
"public Result resolve(String href, String base) throws XPathException {\n\n // System.err.println(\"Output URI Resolver (href='\" + href + \"', base='\" + base + \"')\");\n\n try {\n URI absoluteURI;\n if (href.length() == 0) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n absoluteURI= new URI(base);\n } else {\n absoluteURI= new URI(href);\n }\n if (!absoluteURI.isAbsolute()) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n URI baseURI = new URI(base);\n absoluteURI = baseURI.resolve(href);\n }\n\n if (\"file\".equals(absoluteURI.getScheme())) {\n return makeOutputFile(absoluteURI);\n\n } else {\n\n // See if the Java VM can conjure up a writable URL connection for us.\n // This is optimistic: I have yet to discover a URL scheme that it can handle \"out of the box\".\n // But it can apparently be achieved using custom-written protocol handlers.\n\n URLConnection connection = absoluteURI.toURL().openConnection();\n connection.setDoInput(false);\n connection.setDoOutput(true);\n connection.connect();\n OutputStream stream = connection.getOutputStream();\n StreamResult result = new StreamResult(stream);\n result.setSystemId(absoluteURI.toASCIIString());\n return result;\n }\n } catch (URISyntaxException err) {\n throw new XPathException(\"Invalid syntax for base URI\", err);\n } catch (IllegalArgumentException err2) {\n throw new XPathException(\"Invalid URI syntax\", err2);\n } catch (MalformedURLException err3) {\n throw new XPathException(\"Resolved URL is malformed\", err3);\n } catch (UnknownServiceException err5) {\n throw new XPathException(\"Specified protocol does not allow output\", err5);\n } catch (IOException err4) {\n throw new XPathException(\"Cannot open connection to specified URL\", err4);\n }\n }",
"String basePath();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"private String getFullLocalURI(String uri) {\n return LOCAL_NS_PREFIX + \":\" + uri;\n }",
"private String getRelativePath(Path reference, Path child) {\n String output;\n String sval = child.toString(); \n final int index = sval.indexOf(reference.toString());\n if(index != -1) {\n output = sval.substring(index);\n }else{\n output = null;\n }\nLog.getInstance().log(Level.FINER, \"Path: {0}, relative: {1}\", this.getClass(), child, output); \n return output;\n }",
"@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static Path makeAbsolute( Path path, final Configuration conf) throws IOException\r\n\t{\r\n\t\tFileSystem fs = path.getFileSystem(conf);\r\n\t\tif (!path.isAbsolute()) {\r\n\t\t\tpath = new Path(fs.getWorkingDirectory(), path);\r\n\t\t}\r\n\t\t\r\n\t\tURI pathURI = path.makeQualified(fs).toUri();\r\n\t\treturn new Path(pathURI.getPath());\r\n\t\t\r\n\t}",
"public URL getBaseHref() {\n return baseHref;\n }",
"public abstract String getFullPath(final String resourcePath);",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"private static URI determineDocBaseURI(URI docURI, Document doc) {\n\n // Note: The first base element with a href attribute is considered\n // valid in HTML. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base.\n var baseElem = doc.selectFirst(\"base[href]\");\n return baseElem != null ? docURI.resolve(baseElem.attr(\"href\")) : docURI;\n }",
"@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }",
"String getRealPath(String path);",
"private String getFullRemoteURI(String uri) {\n return REMOTE_NS_PREFIX + \":\" + uri;\n }",
"private static URI toResourceURI( Class<?> baseClass, String baseDir) {\n try {\n return\n baseClass != null\n ? baseClass.getResource( baseDir==null? \".\" : baseDir).toURI()\n : new URI( \"file://\" + (baseDir==null? \"\" : baseDir));\n }\n catch( Exception e) {\n throw new IllegalArgumentException( \"Can't create URI\", e);\n }\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"protected abstract String getBaseEndpointPath();",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"@Override\r\n public String getPathDecoded() throws FileSystemException {\r\n if (decodedAbsPath == null) {\r\n decodedAbsPath = UriParser.decode(getPath());\r\n }\r\n\r\n return decodedAbsPath;\r\n }",
"java.lang.String getResourceUri();",
"public URI getAbsoluteLobFolder();",
"String getUri( );",
"private String resolveAbsoluteURL(String defaultUrlContext, String urlFromConfig, String tenantDomain) throws IdentityProviderManagementServerException {\n\n if (!IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && StringUtils.isNotBlank(urlFromConfig)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved URL:\" + urlFromConfig + \" from file configuration for default url context: \" +\n defaultUrlContext);\n }\n return urlFromConfig;\n }\n\n try {\n ServiceURLBuilder serviceURLBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);\n return serviceURLBuilder.addPath(defaultUrlContext).build().getAbsolutePublicURL();\n } catch (URLBuilderException e) {\n throw IdentityProviderManagementException.error(IdentityProviderManagementServerException.class,\n \"Error while building URL: \" + defaultUrlContext, e);\n }\n }",
"private String defineAbsoluteFilePath() throws IOException {\n\n\t\tString absoluteFilePath = \"\";\n\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tString OS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (OS.indexOf(\"win\") >= 0) {\n\t\t\tabsoluteFilePath = workingDir + \"\\\\\" + PATH + \"\\\\\" + FILE_NAME;\n\t\t} else {\n\t\t\tabsoluteFilePath = workingDir + \"/\" + PATH + \"/\" + FILE_NAME;\n\t\t}\n\n\t\tFile file = new File(absoluteFilePath);\n\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"File found!\");\n\t\t\tSystem.out.println(absoluteFilePath);\n\t\t} else {\n\t\t\tSystem.err.println(\"File not found...\");\n\t\t}\n\n\t\treturn absoluteFilePath;\n\n\t}",
"public static String getAbsoluteBillingURL (String path)\n {\n return BASE + path + ((path.indexOf(\"?\") == -1) ? \"?\" : \"&\") +\n \"initUsername=\" + URL.encodeComponent(CShell.creds.accountName);\n }",
"public String resolvePath();",
"String getUri();",
"public static String getWorkRelativePath(String baseURL, String testId) {\n StringBuilder sb = new StringBuilder(baseURL);\n\n // strip off extension\n stripExtn:\n for (int i = sb.length() - 1; i >= 0; i--) {\n switch (sb.charAt(i)) {\n case '.':\n sb.setLength(i);\n break stripExtn;\n case '/':\n break stripExtn;\n }\n }\n\n // add in uniquifying id if\n if (testId != null) {\n sb.append('_');\n sb.append(testId);\n }\n\n sb.append(EXTN);\n\n return sb.toString();\n }",
"protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}",
"public String getRelativePath();",
"private static String translateOriginExpressionRelativeToAbsolute(String originExpRelative, ReferenceSymbolic origin) {\n\t\tfinal String originString = origin.asOriginString();\n\t\t\n\t\t//replaces {$REF} with ref.origin\n\t\tString retVal = originExpRelative.replace(REF, originString);\n\t\t\n\t\t//eats all /whatever/UP pairs \n\t\tString retValOld;\n\t\tdo {\n\t\t\tretValOld = retVal;\n\t\t\tretVal = retVal.replaceFirst(\"\\\\.[^\\\\.]+\\\\.\\\\Q\" + UP + \"\\\\E\", \"\");\n\t\t} while (!retVal.equals(retValOld));\n\t\treturn retVal;\n\t}",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public static String getAbsolutePath(final String fileName) {\n\n return FileSystem.getInstance(fileName).getAbsolutePath(fileName);\n }",
"public static String assertHrefBase(final Node node, final String xPath, final String expectedBase)\r\n throws Exception {\r\n\r\n final String value = selectSingleNode(node, xPath).getTextContent();\r\n assertTrue(\"href does not start with \" + expectedBase, value.startsWith(expectedBase));\r\n\r\n return value;\r\n }",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"private String appendToPath(String aBase, String aTail) {\n \t\t//initialise with most likely layout\n \t\tString dBase = aBase;\n \t\tString dTail = aTail;\n \n \t\tif (!aBase.endsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdBase = aBase + \"/\"; //$NON-NLS-1$\n \t\t}\n \n \t\tif (aTail.startsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdTail = aTail.substring(1);\n \t\t}\n \n \t\treturn dBase + dTail;\n \t}",
"public FilePath resolve(String relPath) {\n if (path.isEmpty()) {\n return FilePath.of(relPath);\n }\n return FilePath.of(path + \"/\" + relPath);\n }",
"String getURI();",
"String getURI();",
"String getURI();",
"URI createURI();",
"static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}",
"FsPath baseDir();",
"public static String getAbsoluteWorkspacePath(\r\n \t\t\tString resourcePathInWorkspace, VpePageContext pageContext) {\r\n \r\n \t\tString resolvedValue = resourcePathInWorkspace\r\n \t\t\t\t.replaceFirst(\r\n \t\t\t\t\t\t\"^\\\\s*(\\\\#|\\\\$)\\\\{facesContext.externalContext.requestContextPath\\\\}\", Constants.EMPTY); //$NON-NLS-1$\r\n \r\n\t\tIFile baseFile = null;\r\n \t\tif (pageContext.getVisualBuilder().getCurrentIncludeInfo() != null\r\n \t\t\t\t&&(pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage() instanceof IFile)) {\r\n\t\t\tbaseFile = (IFile) pageContext.getVisualBuilder().getCurrentIncludeInfo()\r\n \t\t\t\t\t.getStorage();\r\n \t\t}\r\n\t\tif (baseFile == null)\r\n \t\t\treturn resolvedValue;\r\n \r\n\t\tresolvedValue = ElServiceUtil.replaceEl(baseFile, resolvedValue);\r\n \r\n \t\tURI uri = null;\r\n \t\ttry {\r\n \t\t\turi = new URI(resolvedValue);\r\n \t\t} catch (URISyntaxException e) {\r\n \t\t}\r\n \r\n \t\tif ((uri != null)\r\n \t\t\t\t&& (uri.isAbsolute() || (new File(resolvedValue)).exists()))\r\n \t\t\treturn resolvedValue;\r\n \r\n\t\t\r\n\t\t\r\n\t\tIFile resolvedFile = FileUtil.getFile(resolvedValue, baseFile);\r\n\t\tif (resolvedFile != null ) {\r\n\t\t\treturn Constants.FILE_PREFIX + resolvedFile.getLocation().toPortableString();\r\n\t\t} else {\r\n\t\t\treturn resolvedValue;\r\n\t\t}\r\n \t}",
"public static String getRelativePath(Path basePath,\n Path fullPath) {\n URI relative = URI.create(basePath.toString())\n .relativize(URI.create(fullPath.toString()));\n return relative.getPath();\n }",
"private String getHref(HttpServletRequest request)\n {\n String respath = request.getRequestURI();\n if (respath == null)\n \trespath = \"\";\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n int idx = respath.lastIndexOf('/');\n if (codebaseParam != null)\n if (respath.indexOf(codebaseParam) != -1)\n idx = respath.indexOf(codebaseParam) + codebaseParam.length() - 1;\n String href = respath.substring(idx + 1); // Exclude /\n href = href + '?' + request.getQueryString();\n return href;\n }",
"public String getAbsoluteUrl() throws MalformedURLException {\r\n URL webUrl = new URL(webAbsluteUrl);\r\n URL urlRequest = new URL(webUrl.toString() + url);\r\n return urlRequest.toString();\r\n }",
"public Path concat(Path relativePath) {\n\t\t\n\t\tPath result;\n\t\t\n\t\tif(relativePath.isAbsolute())\n\t\t{\n\t\t\tresult = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString resultPath = null;\n\t\t\t\n\t\t\tif(!this.path.endsWith(\"/\"))\n\t\t\t\tthis.path += \"/\";\n\t\t\t\n\t\t\tresultPath = this.path + relativePath.toString();\n\t\t\t\n\t\t\tresult = new Path(resultPath);\n\t\t}\n\t\treturn result;\n\t}",
"public static String getAbsolutePath(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.getAbsolutePath();\n\t}",
"protected String getAbsoluteURL(HttpServletRequest httpRequest, String url) {\r\n\t\t\r\n\t\tif (url == null)\r\n\t\t\treturn null;\r\n\t\tif (url.indexOf(\"://\") != -1)\t\t\t\r\n\t\t\treturn url;\r\n\r\n\t\tString scheme = httpRequest.getScheme();\r\n\t\tString serverName = httpRequest.getServerName();\r\n\t\tint port = httpRequest.getServerPort();\r\n\t\tboolean slashLeads = url.startsWith(\"/\");\r\n\r\n\t\tString absoluteURL = scheme + \"://\" + serverName;\r\n\t\t\r\n\t\tif ((scheme.equals(\"http\") && port != 80) || \r\n\t\t\t\t(scheme.equals(\"https\") && port != 443))\r\n\t\t\tabsoluteURL += \":\" + port;\r\n\t\tif (!slashLeads)\r\n\t\t\tabsoluteURL += \"/\";\r\n\r\n\t\tabsoluteURL += url;\r\n\t\t\r\n\t\treturn absoluteURL;\r\n\t}"
]
| [
"0.74793077",
"0.68975806",
"0.6895879",
"0.68511766",
"0.66588724",
"0.6653762",
"0.66058165",
"0.64026994",
"0.6364364",
"0.6205673",
"0.6197813",
"0.618197",
"0.61760545",
"0.6131825",
"0.6131308",
"0.6119563",
"0.611407",
"0.6096476",
"0.60644525",
"0.6064061",
"0.60105294",
"0.5990148",
"0.58423",
"0.5825988",
"0.58214265",
"0.57582575",
"0.57307464",
"0.57171416",
"0.5702053",
"0.5696699",
"0.569605",
"0.5679537",
"0.56596625",
"0.563304",
"0.56204385",
"0.5617858",
"0.5583469",
"0.55464673",
"0.5544191",
"0.55423534",
"0.553945",
"0.55313414",
"0.5526614",
"0.5515578",
"0.55146235",
"0.5493917",
"0.54824764",
"0.54761314",
"0.54737854",
"0.5460649",
"0.5460649",
"0.5459539",
"0.54565847",
"0.5451631",
"0.54481506",
"0.54481506",
"0.5443254",
"0.5441408",
"0.5429586",
"0.5428845",
"0.5407276",
"0.537769",
"0.5374388",
"0.5372265",
"0.5364941",
"0.5363124",
"0.5360202",
"0.5355779",
"0.5341737",
"0.53349715",
"0.5332592",
"0.53126",
"0.52864873",
"0.527483",
"0.52673966",
"0.5257911",
"0.525274",
"0.5251215",
"0.5250941",
"0.52496374",
"0.52476865",
"0.5244654",
"0.52424854",
"0.52418303",
"0.5233719",
"0.52327645",
"0.52228177",
"0.5214647",
"0.5214647",
"0.5214647",
"0.5213594",
"0.520403",
"0.5200134",
"0.5184703",
"0.5182486",
"0.5180032",
"0.5172128",
"0.5166974",
"0.51645064",
"0.51560205"
]
| 0.65761715 | 7 |
Return the absolute path, composed from a base URI and a relative path. | public static String composePath(URI base, String relativePath) {
URI uri = composeURI(base, relativePath);
if (uri.isAbsolute()) {
File file = new File(uri);
return file.toString();
} else if (base != null) {
File file = new File(new File(base), uri.toString());
return file.toString();
}
return relativePath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FullUriTemplateString baseUri();",
"public static URI getRelativeURI(URI base, URI uri) {\n\t\tif (base != null && uri != null && (uri.getScheme() == null || uri.getScheme().equals(base.getScheme()))) {\n\t\t\tStringTokenizer baseParts = tokenizeBase(base);\n\t\t\tStringTokenizer uriParts = new StringTokenizer(uri.getSchemeSpecificPart(), \"/\");\n\t\t\tStringBuffer relativePath = new StringBuffer();\n\t\t\tString part = null;\n\t\t\tboolean first = true;\n\t\t\tif (!baseParts.hasMoreTokens()) {\n\t\t\t\treturn uri;\n\t\t\t}\n\t\t\twhile (baseParts.hasMoreTokens() && uriParts.hasMoreTokens()) {\n\t\t\t\tString baseDir = baseParts.nextToken();\n\t\t\t\tpart = uriParts.nextToken();\n\t\t\t\tif ((baseDir.equals(part) && baseDir.contains(\":\")) && first) {\n\t\t\t\t\tbaseDir = baseParts.nextToken();\n\t\t\t\t\tpart = uriParts.nextToken();\n\t\t\t\t}\n\t\t\t\tif (!baseDir.equals(part)) { // || (baseDir.equals(part) && baseDir.contains(\":\"))) {\n\t\t\t\t\tif (first) {\n\t\t\t\t\t\treturn uri;\n\t\t\t\t\t}\n\t\t\t\t\trelativePath.append(\"../\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tpart = null;\n\t\t\t\tfirst = false;\n\t\t\t}\n\t\t\twhile (baseParts.hasMoreTokens()) {\n\t\t\t\trelativePath.append(\"../\");\n\t\t\t\tbaseParts.nextToken();\n\t\t\t}\n\t\t\tif (part != null) {\n\t\t\t\trelativePath.append(part);\n\t\t\t\tif (uriParts.hasMoreTokens()) {\n\t\t\t\t\trelativePath.append(\"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (uriParts.hasMoreTokens()) {\n\t\t\t\trelativePath.append(uriParts.nextToken());\n\t\t\t\tif (uriParts.hasMoreTokens()) {\n\t\t\t\t\trelativePath.append(\"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn createURI(relativePath.toString());\n\t\t}\n\t\treturn uri;\n\t}",
"String getBaseUri();",
"private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"RaptureURI getBaseURI();",
"public static File composeFile(URI base, String relativePath) {\n\t\tURI uri = composeURI(base, relativePath);\n\t\tif (uri.isAbsolute()) {\n\t\t\treturn new File(uri);\n\t\t} else if (base != null) {\n\t\t\treturn new File(new File(base), uri.toString());\n\t\t}\n\t\treturn null;\n\t}",
"public static String getRelativePath(URI base, File file) {\n\t\treturn toString(getRelativeURI(base, file.toURI()));\n\t}",
"public static String getAbsoluteFilePath(String relativePath) throws URISyntaxException {\n URL fileResource = BCompileUtil.class.getClassLoader().getResource(relativePath);\n String pathValue = \"\";\n if (null != fileResource) {\n Path path = Paths.get(fileResource.toURI());\n pathValue = path.toAbsolutePath().toString();\n }\n return pathValue;\n }",
"public static String getBaseURI(NodeInfo node) {\n String xmlBase = node.getAttributeValue(StandardNames.XML_BASE);\n if (xmlBase != null) {\n String escaped = EscapeURI.escape(xmlBase,\"!#$%&'()*+,-./:;=?_[]~\").toString();\n URI escapedURI;\n try {\n escapedURI = new URI(escaped);\n if (!escapedURI.isAbsolute()) {\n NodeInfo parent = node.getParent();\n if (parent == null) {\n // We have a parentless element with a relative xml:base attribute. We need to ensure that\n // in such cases, the systemID of the element is always set to reflect the base URI\n // TODO: ignoring the above comment, in order to pass fn-base-uri-10 in XQTS...\n //return element.getSystemId();\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n // TODO: we are resolving a relative base URI against the base URI of the parent element.\n // This isn't what the RFC says we should do: we should resolve it against the base URI\n // of the containing entity. So xml:base on an ancestor element should have no effect (check this)\n URI base = new URI(node.getParent().getBaseURI());\n escapedURI = base.resolve(escapedURI);\n } else {\n URI base = new URI(startSystemId);\n escapedURI = base.resolve(escapedURI);\n }\n }\n } catch (URISyntaxException e) {\n // xml:base is an invalid URI. Just return it as is: the operation that needs the base URI\n // will probably fail as a result.\n return xmlBase;\n }\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n NodeInfo parent = node.getParent();\n if (parent == null) {\n return startSystemId;\n }\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n return parent.getBaseURI();\n } else {\n return startSystemId;\n }\n }",
"public String getAbsPath();",
"@Override\r\n public URI getAbsolutePath() {\n return null;\r\n }",
"@Test\n public void testRelativize_bothAbsolute() {\n assertRelativizedPathEquals(\"b/c\", pathService.parsePath(\"/a\"), \"/a/b/c\");\n assertRelativizedPathEquals(\"c/d\", pathService.parsePath(\"/a/b\"), \"/a/b/c/d\");\n }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"String absolutize(String baseURI, String systemId, boolean nice)\n throws MalformedURLException, SAXException\n {\n // FIXME normalize system IDs -- when?\n // - Convert to UTF-8\n // - Map reserved and non-ASCII characters to %HH\n \n try\n {\n if (baseURI == null && XmlParser.uriWarnings)\n {\n warn (\"No base URI; hope this SYSTEM id is absolute: \"\n + systemId);\n return new URL(systemId).toString();\n }\n else\n {\n return new URL(new URL(baseURI), systemId).toString();\n }\n }\n catch (MalformedURLException e)\n {\n // Let unknown URI schemes pass through unless we need\n // the JVM to map them to i/o streams for us...\n if (!nice)\n {\n throw e;\n }\n \n // sometimes sysids for notations or unparsed entities\n // aren't really URIs...\n warn(\"Can't absolutize SYSTEM id: \" + e.getMessage());\n return systemId;\n }\n }",
"@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }",
"public static String resolveImportURI(String baseURI, String importURI) {\r\n if (importURI == null) {\r\n throw new IllegalArgumentException(\"importURI is null.\");\r\n }\r\n // case 1: absolute URI of a remote file\r\n if (importURI.startsWith(HTTP_PREFIX) ||\r\n importURI.startsWith(HTTPS_PREFIX) ||\r\n importURI.startsWith(FTP_PREFIX)) {\r\n return importURI;\r\n }\r\n // case 2: absolute URI of a local file\r\n if (importURI.startsWith(FILE_PREFIX)) {\r\n return importURI.replaceFirst(FILE_PREFIX, \"\");\r\n }\r\n // case 3: absolute file path of a local file\r\n Path path = Paths.get(importURI);\r\n if (path.isAbsolute()) {\r\n return importURI;\r\n }\r\n if (baseURI == null) {\r\n throw new IllegalArgumentException(\"baseURI is null.\");\r\n }\r\n // case 4: relative URI of a remote file\r\n if (baseURI.startsWith(HTTP_PREFIX) ||\r\n baseURI.startsWith(HTTPS_PREFIX) ||\r\n baseURI.startsWith(FTP_PREFIX)) {\r\n return baseURI.endsWith(\"/\") ? baseURI + importURI : baseURI + \"/\" + importURI;\r\n }\r\n // case 5: relative URI of a local file\r\n if (baseURI.startsWith(FILE_PREFIX)) {\r\n baseURI = baseURI.replaceFirst(FILE_PREFIX, \"\");\r\n return baseURI.endsWith(\"/\") ? baseURI + importURI : baseURI + \"/\" + importURI;\r\n }\r\n // case 6: relative file path of a local file\r\n path = Paths.get(baseURI, importURI);\r\n return path.toString();\r\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"private String makePathAbsolute(String pathString, IPath root) {\n IPath path = new Path(pathString.trim());\n if (!path.isEmpty() && !path.isAbsolute()) {\n IPath filePath = root.append(path);\n return filePath.toOSString();\n }\n return path.toOSString();\n }",
"public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"public static String toRelativeURL(URL base, URL target) {\n\t\t// Precondition: If URL is a path to folder, then it must end with '/'\n\t\t// character.\n\t\tif ((base.getProtocol().equals(target.getProtocol()))\n\t\t\t\t|| (base.getHost().equals(target.getHost()))) { // changed this logic symbol\n\n\t\t\tString baseString = base.getFile();\n\t\t\tString targetString = target.getFile();\n\t\t\tString result = \"\";\n\n\t\t\t// remove filename from URL\n\t\t\tbaseString = baseString.substring(0,\n\t\t\t\t\tbaseString.lastIndexOf(\"/\") + 1);\n\n\t\t\t// remove filename from URL\n\t\t\ttargetString = targetString.substring(0,\n\t\t\t\t\ttargetString.lastIndexOf(\"/\") + 1);\n\n\t\t\tStringTokenizer baseTokens = new StringTokenizer(baseString, \"/\");// Maybe\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// causes\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// problems\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// under\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// windows\n\t\t\tStringTokenizer targetTokens = new StringTokenizer(targetString,\n\t\t\t\t\t\"/\");// Maybe this causes problems under windows\n\n\t\t\tString nextBaseToken = \"\", nextTargetToken = \"\";\n\n\t\t\t// Algorithm\n\n\t\t\twhile (baseTokens.hasMoreTokens() && targetTokens.hasMoreTokens()) {\n\t\t\t\tnextBaseToken = baseTokens.nextToken();\n\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\tif (!(nextBaseToken.equals(nextTargetToken))) {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tresult = result.concat(\"../\");\n\t\t\t\t\t\tif (!baseTokens.hasMoreTokens()) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextBaseToken = baseTokens.nextToken();\n\t\t\t\t\t}\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tresult = result.concat(nextTargetToken + \"/\");\n\t\t\t\t\t\tif (!targetTokens.hasMoreTokens()) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\t\t}\n\t\t\t\t\tString temp = target.getFile(); // to string\n\t\t\t\t\tresult = result.concat(temp.substring(\n\t\t\t\t\t\t\ttemp.lastIndexOf(\"/\") + 1, temp.length()));\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile (baseTokens.hasMoreTokens()) {\n\t\t\t\tresult = result.concat(\"../\");\n\t\t\t\tbaseTokens.nextToken();\n\t\t\t}\n\n\t\t\twhile (targetTokens.hasMoreTokens()) {\n\t\t\t\tnextTargetToken = targetTokens.nextToken();\n\t\t\t\tresult = result.concat(nextTargetToken + \"/\");\n\t\t\t}\n\n\t\t\tString temp = target.getFile(); // to string\n\t\t\tresult = result.concat(temp.substring(temp.lastIndexOf(\"/\") + 1,\n\t\t\t\t\ttemp.length()));\n\t\t\treturn result;\n\t\t}\n\t\treturn target.toString();\n\t}",
"@Test\n public void testToAbsolute_String_String() throws Exception {\n System.out.println(\"toAbsolute\");\n String base = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String relative = \"../path2/doc2?a=1&b=2#part2\";\n String expResult = \"http://user:[email protected]:8080/to/path2/doc2?a=1&b=2#part2\";\n String result = URLParser.toAbsolute(base, relative);\n assertEquals(expResult, result);\n }",
"private static String translateToAssetPath(URI assetRefURI, URI docBaseURI) {\n String assetPath;\n\n if (isDocumentRelativeURI(assetRefURI)) {\n assetPath = docBaseURI.resolve(assetRefURI).normalize().getPath();\n\n // Note: A leading slash is prepended, when Path.getPath() does not return a String with\n // a leading slash. This could be the case if the document's base URI does not have a path portion.\n // The leading slash is required to adhere to the pattern of a normalized asset path.\n assetPath = assetPath.startsWith(\"/\") ? assetPath : \"/\" + assetPath;\n } else if (isProtocolRelativeURI(assetRefURI)) {\n assetPath = assetRefURI.normalize().getPath();\n } else if (isRootRelativeURI(assetRefURI)) {\n assetPath = assetRefURI.normalize().toString();\n } else if (assetRefURI.isAbsolute()) {\n assetPath = assetRefURI.normalize().getPath();\n } else {\n\n // Note: This could be an error as well, but in auto-build mode, there can\n // easy be a situation, that would raise and thus kill the process. One could\n // think about differentiating behavior based on one-time and auto-build mode\n // but there's not the necessary infrastructure (e.g. a generation context object)\n // for that right now.\n LOG.warn(String.format(\"Failed to discern URL type of '%s' when trying to map it to the corresponding \" +\n \"site asset path. Leaving it unprocessed.\", assetRefURI));\n assetPath = assetRefURI.toString();\n }\n\n return cutOptionalFingerprint(assetPath);\n }",
"public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}",
"static Path absolute(final Path path) {\n return path.toAbsolutePath().normalize();\n }",
"public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}",
"@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }",
"public static String resolveBaseURI(String fileURI) throws CWLException {\r\n if (fileURI == null) {\r\n throw new IllegalArgumentException(\"fileURI is null.\");\r\n }\r\n if (fileURI.startsWith(HTTP_PREFIX) ||\r\n fileURI.startsWith(HTTPS_PREFIX) ||\r\n fileURI.startsWith(FTP_PREFIX) ||\r\n fileURI.startsWith(FILE_PREFIX)) {\r\n int index = fileURI.lastIndexOf('/');\r\n if (index > fileURI.indexOf(\"//\") + 1) {\r\n return fileURI.substring(0, index);\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(CWL_IO_FILE_INVALID_PATH, fileURI), 255);\r\n }\r\n } else {\r\n return Paths.get(fileURI).getParent().toString();\r\n }\r\n }",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"URI getBaseURI() {\n return _baseURI;\n }",
"URI uri();",
"@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public static boolean BaseURIDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"BaseURIDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, BASE_URI_DECL, null);\n r = consumeTokens(b, 2, K_DECLARE, K_BASE_URI);\n p = r; // pin = 2\n r = r && report_error_(b, URILiteral(b, l + 1));\n r = p && Separator(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public String getProjectRelativeFileName(URI resourceURI, IFileSystemAccess fsa) {\r\n\t\t// @see http://www.eclipse.org/forums/index.php/m/1230878/#msg_1230878\r\n\t\tif (!resourceURI.isPlatformResource())\r\n\t\t\tthrow new IllegalArgumentException(\"Not a Platform Resource URI: \" + resourceURI.toString());\r\n\t\t// This is bit of a hack, but it works...\r\n\t\tString sURI = resourceURI.toPlatformString(true);\r\n\t\tString withoutProject = sURI.substring(sURI.indexOf('/', 1) + 1);\r\n\t\treturn withoutProject;\r\n\t\t// Something like this may be a better use of the API, but is much more difficult to unit test in EFactoryJSONGeneratorTest, so not pursued: \r\n\t\t// URI projectRootURI = ((IFileSystemAccessExtension2)fsa).getURI(\".\");\r\n\t\t// URI resourceWithoutProjectURI = resourceURI.deresolve(projectRootURI);\r\n\t\t// return resourceWithoutProjectURI.toString();\r\n\t}",
"protected String uri(String path) {\n return baseURI + '/' + path;\n }",
"public abstract String getFullPath();",
"abstract String getUri();",
"String getAbsolutePathWithinSlingHome(String relativePath);",
"public String getURI() {\n if (filePath == null) {\n return null;\n }\n int ind = filePath.lastIndexOf(\"/\");\n if (ind != -1) {\n //int ind2 = filePath.substring(0, ind-1).lastIndexOf(\"/\");\n //if (ind2 != -1)\n // return filePath.substring(ind2+1, filePath.length());\n return filePath.substring(ind+1, filePath.length());\n }\n\n return new File(filePath).getName();\n }",
"@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}",
"URI getUri();",
"private static String toAbsPathStr(String relPath, FileSystem fs) {\n String retPath = \"\";\n Directory tmpDir = (Directory) fs.checkPath(relPath, \"directory\");\n while (!tmpDir.equals(fs.getRoot())) {\n retPath = \"/\" + tmpDir.getName() + retPath;\n tmpDir = tmpDir.getParentDirectory();\n }\n return retPath;\n }",
"@Override\n public String getBaseUri() {\n return null;\n }",
"public void testAbsolutize() throws Exception {\n\n Object[] test_values = {\n new String[]{\"/base/path\", \"foo.bar\", \"/base/path/foo.bar\"},\n new String[]{\"/base/path/\", \"foo.bar\", \"/base/path/foo.bar\"},\n new String[]{\"/base/path\", \"/foo.bar\", \"/foo.bar\"},\n \n new String[]{\"/base/path\", \"\", \"/base/path\"},\n new String[]{\"/base/path\", null, \"/base/path\"},\n \n new String[]{\"\", \"foo.bar\", \"foo.bar\"},\n new String[]{null, \"foo.bar\", \"foo.bar\"},\n };\n \n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String test_path = tests[0];\n String test_rel_resource = tests[1];\n String expected = tests[2];\n\n String result = NetUtils.absolutize(test_path, test_rel_resource);\n String message = \"Test \" +\n \" path \" + \"'\" + test_path + \"'\" +\n \" relativeResource \" + \"'\" + test_rel_resource;\n assertEquals(message, expected, result);\n }\n }",
"public URL makeBase(URL startingURL);",
"public Result resolve(String href, String base) throws XPathException {\n\n // System.err.println(\"Output URI Resolver (href='\" + href + \"', base='\" + base + \"')\");\n\n try {\n URI absoluteURI;\n if (href.length() == 0) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n absoluteURI= new URI(base);\n } else {\n absoluteURI= new URI(href);\n }\n if (!absoluteURI.isAbsolute()) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n URI baseURI = new URI(base);\n absoluteURI = baseURI.resolve(href);\n }\n\n if (\"file\".equals(absoluteURI.getScheme())) {\n return makeOutputFile(absoluteURI);\n\n } else {\n\n // See if the Java VM can conjure up a writable URL connection for us.\n // This is optimistic: I have yet to discover a URL scheme that it can handle \"out of the box\".\n // But it can apparently be achieved using custom-written protocol handlers.\n\n URLConnection connection = absoluteURI.toURL().openConnection();\n connection.setDoInput(false);\n connection.setDoOutput(true);\n connection.connect();\n OutputStream stream = connection.getOutputStream();\n StreamResult result = new StreamResult(stream);\n result.setSystemId(absoluteURI.toASCIIString());\n return result;\n }\n } catch (URISyntaxException err) {\n throw new XPathException(\"Invalid syntax for base URI\", err);\n } catch (IllegalArgumentException err2) {\n throw new XPathException(\"Invalid URI syntax\", err2);\n } catch (MalformedURLException err3) {\n throw new XPathException(\"Resolved URL is malformed\", err3);\n } catch (UnknownServiceException err5) {\n throw new XPathException(\"Specified protocol does not allow output\", err5);\n } catch (IOException err4) {\n throw new XPathException(\"Cannot open connection to specified URL\", err4);\n }\n }",
"String basePath();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"private String getFullLocalURI(String uri) {\n return LOCAL_NS_PREFIX + \":\" + uri;\n }",
"private String getRelativePath(Path reference, Path child) {\n String output;\n String sval = child.toString(); \n final int index = sval.indexOf(reference.toString());\n if(index != -1) {\n output = sval.substring(index);\n }else{\n output = null;\n }\nLog.getInstance().log(Level.FINER, \"Path: {0}, relative: {1}\", this.getClass(), child, output); \n return output;\n }",
"@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public static Path makeAbsolute( Path path, final Configuration conf) throws IOException\r\n\t{\r\n\t\tFileSystem fs = path.getFileSystem(conf);\r\n\t\tif (!path.isAbsolute()) {\r\n\t\t\tpath = new Path(fs.getWorkingDirectory(), path);\r\n\t\t}\r\n\t\t\r\n\t\tURI pathURI = path.makeQualified(fs).toUri();\r\n\t\treturn new Path(pathURI.getPath());\r\n\t\t\r\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public static String getBasepath() {\n\t\treturn basepath;\n\t}",
"public URL getBaseHref() {\n return baseHref;\n }",
"public abstract String getFullPath(final String resourcePath);",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"private static URI determineDocBaseURI(URI docURI, Document doc) {\n\n // Note: The first base element with a href attribute is considered\n // valid in HTML. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base.\n var baseElem = doc.selectFirst(\"base[href]\");\n return baseElem != null ? docURI.resolve(baseElem.attr(\"href\")) : docURI;\n }",
"@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }",
"String getRealPath(String path);",
"private String getFullRemoteURI(String uri) {\n return REMOTE_NS_PREFIX + \":\" + uri;\n }",
"private static URI toResourceURI( Class<?> baseClass, String baseDir) {\n try {\n return\n baseClass != null\n ? baseClass.getResource( baseDir==null? \".\" : baseDir).toURI()\n : new URI( \"file://\" + (baseDir==null? \"\" : baseDir));\n }\n catch( Exception e) {\n throw new IllegalArgumentException( \"Can't create URI\", e);\n }\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"protected abstract String getBaseEndpointPath();",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"@Override\r\n public String getPathDecoded() throws FileSystemException {\r\n if (decodedAbsPath == null) {\r\n decodedAbsPath = UriParser.decode(getPath());\r\n }\r\n\r\n return decodedAbsPath;\r\n }",
"public URI getAbsoluteLobFolder();",
"java.lang.String getResourceUri();",
"String getUri( );",
"private String resolveAbsoluteURL(String defaultUrlContext, String urlFromConfig, String tenantDomain) throws IdentityProviderManagementServerException {\n\n if (!IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && StringUtils.isNotBlank(urlFromConfig)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved URL:\" + urlFromConfig + \" from file configuration for default url context: \" +\n defaultUrlContext);\n }\n return urlFromConfig;\n }\n\n try {\n ServiceURLBuilder serviceURLBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);\n return serviceURLBuilder.addPath(defaultUrlContext).build().getAbsolutePublicURL();\n } catch (URLBuilderException e) {\n throw IdentityProviderManagementException.error(IdentityProviderManagementServerException.class,\n \"Error while building URL: \" + defaultUrlContext, e);\n }\n }",
"private String defineAbsoluteFilePath() throws IOException {\n\n\t\tString absoluteFilePath = \"\";\n\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tString OS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (OS.indexOf(\"win\") >= 0) {\n\t\t\tabsoluteFilePath = workingDir + \"\\\\\" + PATH + \"\\\\\" + FILE_NAME;\n\t\t} else {\n\t\t\tabsoluteFilePath = workingDir + \"/\" + PATH + \"/\" + FILE_NAME;\n\t\t}\n\n\t\tFile file = new File(absoluteFilePath);\n\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"File found!\");\n\t\t\tSystem.out.println(absoluteFilePath);\n\t\t} else {\n\t\t\tSystem.err.println(\"File not found...\");\n\t\t}\n\n\t\treturn absoluteFilePath;\n\n\t}",
"public static String getAbsoluteBillingURL (String path)\n {\n return BASE + path + ((path.indexOf(\"?\") == -1) ? \"?\" : \"&\") +\n \"initUsername=\" + URL.encodeComponent(CShell.creds.accountName);\n }",
"public String resolvePath();",
"String getUri();",
"public static String getWorkRelativePath(String baseURL, String testId) {\n StringBuilder sb = new StringBuilder(baseURL);\n\n // strip off extension\n stripExtn:\n for (int i = sb.length() - 1; i >= 0; i--) {\n switch (sb.charAt(i)) {\n case '.':\n sb.setLength(i);\n break stripExtn;\n case '/':\n break stripExtn;\n }\n }\n\n // add in uniquifying id if\n if (testId != null) {\n sb.append('_');\n sb.append(testId);\n }\n\n sb.append(EXTN);\n\n return sb.toString();\n }",
"protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}",
"private static String translateOriginExpressionRelativeToAbsolute(String originExpRelative, ReferenceSymbolic origin) {\n\t\tfinal String originString = origin.asOriginString();\n\t\t\n\t\t//replaces {$REF} with ref.origin\n\t\tString retVal = originExpRelative.replace(REF, originString);\n\t\t\n\t\t//eats all /whatever/UP pairs \n\t\tString retValOld;\n\t\tdo {\n\t\t\tretValOld = retVal;\n\t\t\tretVal = retVal.replaceFirst(\"\\\\.[^\\\\.]+\\\\.\\\\Q\" + UP + \"\\\\E\", \"\");\n\t\t} while (!retVal.equals(retValOld));\n\t\treturn retVal;\n\t}",
"public String getRelativePath();",
"public static String getAbsolutePath(final String fileName) {\n\n return FileSystem.getInstance(fileName).getAbsolutePath(fileName);\n }",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public static String assertHrefBase(final Node node, final String xPath, final String expectedBase)\r\n throws Exception {\r\n\r\n final String value = selectSingleNode(node, xPath).getTextContent();\r\n assertTrue(\"href does not start with \" + expectedBase, value.startsWith(expectedBase));\r\n\r\n return value;\r\n }",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"private String appendToPath(String aBase, String aTail) {\n \t\t//initialise with most likely layout\n \t\tString dBase = aBase;\n \t\tString dTail = aTail;\n \n \t\tif (!aBase.endsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdBase = aBase + \"/\"; //$NON-NLS-1$\n \t\t}\n \n \t\tif (aTail.startsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdTail = aTail.substring(1);\n \t\t}\n \n \t\treturn dBase + dTail;\n \t}",
"public FilePath resolve(String relPath) {\n if (path.isEmpty()) {\n return FilePath.of(relPath);\n }\n return FilePath.of(path + \"/\" + relPath);\n }",
"String getURI();",
"String getURI();",
"String getURI();",
"URI createURI();",
"static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}",
"FsPath baseDir();",
"public static String getAbsoluteWorkspacePath(\r\n \t\t\tString resourcePathInWorkspace, VpePageContext pageContext) {\r\n \r\n \t\tString resolvedValue = resourcePathInWorkspace\r\n \t\t\t\t.replaceFirst(\r\n \t\t\t\t\t\t\"^\\\\s*(\\\\#|\\\\$)\\\\{facesContext.externalContext.requestContextPath\\\\}\", Constants.EMPTY); //$NON-NLS-1$\r\n \r\n\t\tIFile baseFile = null;\r\n \t\tif (pageContext.getVisualBuilder().getCurrentIncludeInfo() != null\r\n \t\t\t\t&&(pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage() instanceof IFile)) {\r\n\t\t\tbaseFile = (IFile) pageContext.getVisualBuilder().getCurrentIncludeInfo()\r\n \t\t\t\t\t.getStorage();\r\n \t\t}\r\n\t\tif (baseFile == null)\r\n \t\t\treturn resolvedValue;\r\n \r\n\t\tresolvedValue = ElServiceUtil.replaceEl(baseFile, resolvedValue);\r\n \r\n \t\tURI uri = null;\r\n \t\ttry {\r\n \t\t\turi = new URI(resolvedValue);\r\n \t\t} catch (URISyntaxException e) {\r\n \t\t}\r\n \r\n \t\tif ((uri != null)\r\n \t\t\t\t&& (uri.isAbsolute() || (new File(resolvedValue)).exists()))\r\n \t\t\treturn resolvedValue;\r\n \r\n\t\t\r\n\t\t\r\n\t\tIFile resolvedFile = FileUtil.getFile(resolvedValue, baseFile);\r\n\t\tif (resolvedFile != null ) {\r\n\t\t\treturn Constants.FILE_PREFIX + resolvedFile.getLocation().toPortableString();\r\n\t\t} else {\r\n\t\t\treturn resolvedValue;\r\n\t\t}\r\n \t}",
"public static String getRelativePath(Path basePath,\n Path fullPath) {\n URI relative = URI.create(basePath.toString())\n .relativize(URI.create(fullPath.toString()));\n return relative.getPath();\n }",
"private String getHref(HttpServletRequest request)\n {\n String respath = request.getRequestURI();\n if (respath == null)\n \trespath = \"\";\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n int idx = respath.lastIndexOf('/');\n if (codebaseParam != null)\n if (respath.indexOf(codebaseParam) != -1)\n idx = respath.indexOf(codebaseParam) + codebaseParam.length() - 1;\n String href = respath.substring(idx + 1); // Exclude /\n href = href + '?' + request.getQueryString();\n return href;\n }",
"public String getAbsoluteUrl() throws MalformedURLException {\r\n URL webUrl = new URL(webAbsluteUrl);\r\n URL urlRequest = new URL(webUrl.toString() + url);\r\n return urlRequest.toString();\r\n }",
"public Path concat(Path relativePath) {\n\t\t\n\t\tPath result;\n\t\t\n\t\tif(relativePath.isAbsolute())\n\t\t{\n\t\t\tresult = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString resultPath = null;\n\t\t\t\n\t\t\tif(!this.path.endsWith(\"/\"))\n\t\t\t\tthis.path += \"/\";\n\t\t\t\n\t\t\tresultPath = this.path + relativePath.toString();\n\t\t\t\n\t\t\tresult = new Path(resultPath);\n\t\t}\n\t\treturn result;\n\t}",
"public static String getAbsolutePath(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.getAbsolutePath();\n\t}",
"protected String getAbsoluteURL(HttpServletRequest httpRequest, String url) {\r\n\t\t\r\n\t\tif (url == null)\r\n\t\t\treturn null;\r\n\t\tif (url.indexOf(\"://\") != -1)\t\t\t\r\n\t\t\treturn url;\r\n\r\n\t\tString scheme = httpRequest.getScheme();\r\n\t\tString serverName = httpRequest.getServerName();\r\n\t\tint port = httpRequest.getServerPort();\r\n\t\tboolean slashLeads = url.startsWith(\"/\");\r\n\r\n\t\tString absoluteURL = scheme + \"://\" + serverName;\r\n\t\t\r\n\t\tif ((scheme.equals(\"http\") && port != 80) || \r\n\t\t\t\t(scheme.equals(\"https\") && port != 443))\r\n\t\t\tabsoluteURL += \":\" + port;\r\n\t\tif (!slashLeads)\r\n\t\t\tabsoluteURL += \"/\";\r\n\r\n\t\tabsoluteURL += url;\r\n\t\t\r\n\t\treturn absoluteURL;\r\n\t}"
]
| [
"0.6897237",
"0.6893437",
"0.68507475",
"0.6659701",
"0.6656269",
"0.66057616",
"0.6574046",
"0.64007956",
"0.63652056",
"0.6204146",
"0.62004167",
"0.6183918",
"0.6178946",
"0.61319536",
"0.6131554",
"0.61215585",
"0.6113266",
"0.6095264",
"0.6066717",
"0.60663193",
"0.6009059",
"0.59895205",
"0.58414525",
"0.5829425",
"0.5821365",
"0.57601565",
"0.57346845",
"0.57164806",
"0.57023937",
"0.56978774",
"0.56940305",
"0.56787455",
"0.566037",
"0.56329435",
"0.56198895",
"0.56167024",
"0.5583317",
"0.5546182",
"0.55445915",
"0.55426264",
"0.55394423",
"0.55305755",
"0.5527604",
"0.5515392",
"0.5514507",
"0.54962593",
"0.54816604",
"0.54760885",
"0.5472735",
"0.5461393",
"0.5461393",
"0.5459384",
"0.5455407",
"0.54514885",
"0.5447366",
"0.5446508",
"0.5446508",
"0.54415274",
"0.5428814",
"0.5428001",
"0.54068387",
"0.5378885",
"0.53749853",
"0.53726065",
"0.5364371",
"0.5362032",
"0.5359893",
"0.53558207",
"0.5343352",
"0.53349",
"0.53343576",
"0.5313773",
"0.5288471",
"0.52761185",
"0.5270619",
"0.5258144",
"0.5253697",
"0.52500135",
"0.52497226",
"0.5249575",
"0.5249019",
"0.5245339",
"0.5243576",
"0.5241879",
"0.523286",
"0.5231469",
"0.5223253",
"0.52154285",
"0.52154285",
"0.52154285",
"0.5214769",
"0.5203475",
"0.519883",
"0.5185184",
"0.51823264",
"0.5180846",
"0.5175408",
"0.5167249",
"0.5167158",
"0.5158675"
]
| 0.7477029 | 0 |
This function will create a random individual represented by an array of integers. | public ArrayList<Integer> makeIndividual(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int[] singleArrayGenerator(int num){\n int[] arr = new int[num];\n for(int i = 0; i < num; i++)\n arr[i] = new Random().nextInt(100);\n return arr;\n }",
"private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}",
"public void generateIDs() {\n Random randomGenerator = new Random();\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n identificationNumbers[i][j] = randomGenerator.nextInt(2);\n }\n }",
"public void generateRandomArray() {\n for (int i = 0; i < arraySize; i++) {\n theArray[i] = (int) (Math.random() * 10) + 10;\n }\n }",
"void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }",
"private static int [] getRandomNumbers (int sizearray) {\n // create the array of the specified size\n int [] numberarray = new int[sizearray];\n // create the Java random number generator \n Random randomGenerator = new Random();\n \n // for each element of the array, get the next random number \n for (int index = 0; index < sizearray; index++)\n {\n numberarray[index] = randomGenerator.nextInt(100); \n }\n \n return numberarray; \n }",
"public static void randomArray(int array[]){\n DecimalFormat twoDig = new DecimalFormat(\"00\");\n System.out.print(\"\\nSample Random Numbers Generated: \");\n for (int i = 0; i < array.length; i++){\n array[i] = (int)(Math.random() * 100);\n System.out.print(twoDig.format(array[i]) + \" \");\n }\n }",
"@Override\n public <T> T getRandomElement(T[] array) {\n return super.getRandomElement(array);\n }",
"public static void initOneD(int[] array) {\n for (int i = 0; i < array.length; i++) {\n array[i] = (int) (Math.random() * 100);\n }\n }",
"@SafeVarargs\n public final <T> T of(T... array) {\n return array[random.nextInt(array.length - 1)];\n }",
"public int[] makeMove(ArrayList < String > movesArray) {\n movesArray.get(0);\n Random rand = new Random();\n int ri = rand.nextInt(3);\n int rj = rand.nextInt(3);\n return new int[] {ri,rj};\n }",
"private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}",
"private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}",
"static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }",
"public final <T> T random(T[] array) {\n return array[random(0, array.length)];\n }",
"@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}",
"public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }",
"public int getRandom() {\n int index = (int) Math.floor(Math.random() * size);\n return nums[index];\n }",
"public int getRandom() {\n return arr.get(r.nextInt(arr.size()))[0];\n }",
"public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }",
"public static void rand_generator(int[] ran,int n,int min, int max){\r\n Random r1 = new Random(); // rand function\r\n for(int i=0;i<n;i++)\r\n {\r\n ran[i] = r1.nextInt((max - min) + 1) + min; // saving the random values in the corresponding arrays\r\n }\r\n }",
"public static void storeRandomNumbers(int [] num){\n\t\tRandom rand = new Random();\n\t\tfor(int i=0; i<num.length; i++){\n\t\t\tnum[i] = rand.nextInt(1000000);\n\t\t}\n\t}",
"public int[] rndArray(int[] anArray,int rndRange) \n\t{\n\t\tRandom rand = new Random();\n\t\tint n;\n\t\tfor(int i=0;i<anArray.length;i++)\n\t\t{\n\t\t n = rand.nextInt(rndRange) + 1;\n\t\t anArray[i] = n;\n\t\t}\n\t\treturn anArray;\n\t\n\t}",
"public static void main(String[] args) {\n Random r=new Random();\n int values[] = new int [50];\n\n\n for(int i=0;i< values.length;i++) {\n values[i] = r.nextInt(400);\n\n System.out.println(values[i]);\n }\n\n }",
"public static int[] f_fill_vector_age_people(int N){\n int[] v_vector_age= new int[N];\n for(int i=0; i<N; i++){\n\n v_vector_age[i]= (int) (Math.random()*100)+1;\n\n }\n return v_vector_age;\n }",
"public static void initIntegerArray(int[] arr) {\r\n\t\tRandom ra = new Random();\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = ra.nextInt(arr.length); \r\n\t\t}\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif (arr[i] - ra.nextInt(arr.length) <5) {\r\n\t\t\t\tarr[i] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void randomArray(int n) \r\n\t{\r\n\t\tnum = new int[n];\r\n\t\tRandom r = new Random();\r\n\t\tint Low = 1;\r\n\t\tint High = 10;\r\n\t\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tnum[i] = r.nextInt(High - Low) + Low;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void populateArray()\n { \n Random rand = new Random(); // calling random class to generate random numbers\n randInt = new int[this.getWidth()]; // initializing array to its panel width\n rand.setSeed(System.currentTimeMillis());\n for(int i = 0; i < this.getWidth();i++) // assigning the random values to array \n {\n randInt[i] = rand.nextInt(this.getHeight() -1) + 1;\n }\n this.repaint(); // calling paint method\n }",
"static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}",
"private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }",
"public static int[] randomNum() {\n int[] randomArr = new int[10];\n Random r = new Random();\n for(int i = 0; i < randomArr.length; i++) {\n randomArr[i] = r.nextInt(45)+55;\n }\n \n return randomArr;\n }",
"static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }",
"static int [] rand (int [] m) {\r\n\t\tint [] massive = new int [m.length];\r\n\t\tfor (int i = 0; i < (m.length-1); i++) {\r\n\t\t\tmassive [i] = (int) Math.round( (Math.random() * 100));\r\n\t\t\tSystem.out.print(massive [i] + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\treturn massive;\r\n\t}",
"private short[] makeRandomArray(Random r) {\n short[] array = new short[r.nextInt(100)];\n for (int j = 0; j < array.length; j++) {\n array[j] = (short) r.nextInt();\n }\n return array;\n }",
"public IntegerGenotype create() \r\n\t{\n\t\tIntegerGenotype genotype = new IntegerGenotype(1,3);\r\n\t\tgenotype.init(new Random(), Data.numeroCuardillas); \r\n\t\t\r\n\t\treturn genotype;\r\n\t}",
"public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }",
"public Integer[] randomizeObject(int inputSize){\n Integer[] list = new Integer[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(-inputSize, inputSize + 1);\n }\n // System.out.println(Arrays.toString(list));\n return list;\n }",
"static void populateArray(int[] array) {\n\n Random r = new Random();\n\n for (int i = 0; i < array.length; i++) {\n\n array[i] = r.nextInt() % 100;\n\n if (array[i] < 0) array[i] = array[i] * -1;\n\n }\n\n }",
"public static Integer[] prepareRandomIntegerArray(int size) {\n\t\tInteger[] array = new Integer[size];\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarray[j] = (int) ((Math.random() * 1000000));\n\t\t}\n\t\treturn array;\n\t}",
"public static void fill(int[] array,int start,int ende){\n\tfor (int c=0; c<array.length; c++){\r\n\t\tRandom rand = new Random(); \r\n\t\tarray[c] = rand.nextInt(ende+1-start) + start;\r\n\t}\r\n\tSystem.out.print(\"\\n\");\r\n}",
"private static int[] generateRandom(int n) {\n\t\tint[] arr = new int[n];\n\t\tRandom r = new Random();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarr[i] = r.nextInt(n);\n\t\t\t\t\t\n\t\treturn arr;\n\t}",
"public static int[] randomNumber (int n) {\n\t\tint []num = new int[n];\n\t\tfor (int i = 0; i < num.length; i++) {\n\t\t\tnum[i] = (int) (rGen.nextDouble()*10);\n\t\t}\n\t\treturn num;\n\t}",
"public static int[] randomArray(int size){\n\t\tRandom array = new Random();\n\t\tint[] input = new int[size];\n\t for (int i = 0; i < input.length; i++) {\n\t input[i] = array.nextInt()/2; \n\t }\n\t\treturn input;\n\t}",
"public pair[] genARandomTuple(int[] values, int t){\n pair[] res = new pair[t];\n ArrayList<Integer> loc = new ArrayList<>();\n int index = 0;\n while(index < t){\n int tmp = random.nextInt(values.length);\n if(!loc.contains(tmp)){\n loc.add(tmp);\n index++;\n\t }\n\t}\n\tfor(int i = 0; i < t; i++)\n res[i] = new pair(loc.get(i), random.nextInt(values[loc.get(i)]));\n\treturn res;\n }",
"private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = data.clone();\n\t\tquickData = data.clone();\n\n\t}",
"RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }",
"public static int [] createRandomIntArray( int Size , int Range ) {\n\tint [] A = new int[Size];\n\tRandom rand = new Random();\n\tfor( int i = 0; i < A.length ; i++ ) A[i]=rand.nextInt(Range);\n\treturn A;\n }",
"public void randomArray(int size){\n paintIntegers[] arrayNew = new paintIntegers[size];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = size;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n origArray = arrayNew.clone();\n }",
"public static CreateUser[] createArrayOfEmployeeNames(){\n\n CreateUser[] arr1 = new CreateUser[5];\n\n for (int i=0; i < arr1.length; i++){\n int age = (int) Math.random()* 100;\n String name = \"John\"+i;\n arr1[i] = new CreateUser(age, name); // create random peop;e w/ ages\n\n }\n\n return arr1;\n }",
"protected String random(String array[]) {\n\t\tRandom generator = new Random();\n\t\tint randomIndex = generator.nextInt(array.length);\n\t\treturn array[randomIndex];\n\t}",
"public int getRandom() {\n return A.get(r.nextInt(A.size()));\n }",
"public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }",
"public static void randomNumber (int[] num, int n) {\n\t\tfor (int j = 0;j < n; j++) {\n\t\t\tnum[j] = (int) (Math.random()*10);\n\t\t}\n\t}",
"public static int[] genArray(int n){\r\n\r\n Random rand = new Random();\r\n int arr[] = new int[n];\r\n for(int i=0; i<n;i++){\r\n arr[i] = rand.nextInt(n);\r\n }\r\n\r\n return arr;\r\n\r\n }",
"static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}",
"private static int[] genValues(int[] original) {\n Random rand = new Random();\n int max = original.length - 1;\n\n while (max > 0) {\n swap(original, max, rand.nextInt(max));\n max--;\n }\n return original;\n }",
"public static int[] createRandomIntArray(int length) {\n\n int[] arr = new int[length];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = (int)(Math.random() * 1000 + 1);\n }\n return arr;\n }",
"public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }",
"public int getRandom() {\n return nums.get(rand.nextInt(nums.size()));\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the size of an array: \");\n\t\tint size = sc.nextInt();\n\t\t\n\t\tint [] numbers = new int[size];\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\n\t\t\tnumbers [i] = 1 + (int)(Math.random() * size);\n\t\t\t\n\t\t}\n\t\t\n\n\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\tSystem.out.print(numbers[i] + \" \");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public int[] generateArray() {\n return generateArray(5);\n }",
"public static void randFillArray(int[] array) {\r\n\t\tRandom random = new Random();\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY; i++)\r\n\t\t\tarray[i] = random.nextInt(100);\r\n\t}",
"public int getRandom() {\n return nums.get((int) (Math.random() * nums.size()));\n }",
"public static void generator(){\n int vector[]= new int[5];\r\n vector[10]=20;\r\n }",
"private static int[] generateArray(int size, int startRange, int endRange) {\n\t\tint[] array = new int[size];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = (int)((Math.random()*(endRange - startRange + 1)) + startRange);\n\t\t}\n\t\treturn array;\n\t}",
"private static int[] generate_random_array(int max) {\n int size = ThreadLocalRandom.current().nextInt(2, max + 1);\n int[] array = new int[size];\n for (int i = 0; i < size - 1; i++) {\n int distance = size - i > i ? size - i : i;\n array[i] = ThreadLocalRandom.current().nextInt(1, distance);\n }\n array[size - 1] = 0;\n return array;\n }",
"public static int[] generateCords(int size){\r\n int[] cords = new int[2];\r\n Random r = new Random();\r\n cords[0] = r.nextInt(size);\r\n Random s = new Random();\r\n cords[1] = s.nextInt(size);\r\n return cords;\r\n }",
"private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }",
"public Generator() {\n identificationNumbers = new int[100][31];\n }",
"private static int[] getMeRandomArray(int length) {\n\t\tint array[] = new int[length];\n\t\tint min = -1000;\n\t\tint max = 1000;\n\t\tfor(int i = 0; i < length; i++) {\n\t\t\tarray[i] = (int)(Math.random() * ((max - min) + 1)) + min;\n\t\t}\n\t\treturn array;\n\t}",
"public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }",
"@Override\n public int attack(){\n //create an int list to store the numbers\n int[] arr = {zero, six, ten};\n //get a random index of the list\n int index = getRandom().nextInt(arr.length);\n //return the number on that random index\n int damageVal = arr[index];\n return damageVal;\n }",
"public int[] initializingArray(int size) {\n\t\tint [] array = createArrays(size);\n\t\tfor(int i = 0;i < array.length; i++) {\n\t\t\tarray[i] = rand.nextInt(10);\n\t\t}\n\t\treturn array;\n\t}",
"public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }",
"public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }",
"public Item sample() {\n if (n == 0) throw new NoSuchElementException();\n return arr[StdRandom.uniform(n)];\n }",
"private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }",
"public abstract Animal[] createGeneration (int count, Animal[] lastGeneration);",
"private double[] generateRandomCoordinates() {\n return generateRandomCoordinates(CoordinateDomain.GEOGRAPHIC, 0.05f);\n }",
"public int[] randomize(int inputSize){\n int[] list = new int[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(0, inputSize + 1);\n }\n// System.out.println(Arrays.toString(list));\n return list;\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }",
"public int getRandom() {\n int n = set.size();\n if (n == 0) return 0;\n Object[] res = set.toArray();\n Random rand = new Random();\n int result = rand.nextInt(n);\n return (Integer)res[result];\n }",
"public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }",
"public int getRandom() {\n \n return this.nums.get(this.rand.nextInt(this.nums.size()));\n \n }",
"public Item sample() {\n\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\n\t\tint random = (int)(StdRandom.uniform() * N);\n\t\treturn arr[random];\n\t}",
"public int getRandom() {\n Random random = new Random();\n return nums.get(random.nextInt(nums.size()));\n }",
"public static ArrayList<Integer> genRandomArray(int s) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint i = 0;\n\t\tRandom randNum = new Random();\n\t\tfor (i = 0; i < s; i++) {\n\t\t\tint randNumber = MurmurHash.hashLong(i);\n\t\t\tR.add(randNumber);\n\n\t\t}\n\n\t\treturn R;\n\t}",
"public static int[] generateArray(int min, int max, int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = min + (int) (Math.random() * (max - min));\n }\n return arr;\n }",
"private int randomIndex(int size) {\n\t\treturn (int) (Math.random() * size);\n\t}",
"private static int[] buildArray(int num) {\n\t\t// TODO build an array with num elements\n\t\tif(num ==0) return null;\n\t\t\n\t\tint[] array = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\t\n\t\t\tarray[i] = (int)(Math.random()*15);\n\t\t}\n\t\t\n\t\treturn array;\n\t}",
"private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }",
"Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }",
"int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }",
"private static Integer[] getRandomArray(int N, int max) {\n Integer[] a = new Integer[N];\n java.util.Random rng = new java.util.Random();\n for (int i = 0; i < N; i++) {\n a[i] = rng.nextInt(max);\n }\n return a;\n }"
]
| [
"0.68611425",
"0.67538685",
"0.67323637",
"0.6606705",
"0.65345216",
"0.65225226",
"0.6400426",
"0.6390958",
"0.63857955",
"0.6368126",
"0.6297846",
"0.62422913",
"0.6237032",
"0.62137645",
"0.62072897",
"0.61779517",
"0.61507833",
"0.61226636",
"0.6104783",
"0.6102684",
"0.6073323",
"0.6032763",
"0.6029232",
"0.60238206",
"0.60130143",
"0.60129094",
"0.6003059",
"0.59861374",
"0.5969908",
"0.5969454",
"0.59674525",
"0.5961911",
"0.5956266",
"0.59531397",
"0.59518224",
"0.59503025",
"0.59472364",
"0.5940552",
"0.5932024",
"0.59285724",
"0.5913903",
"0.59057385",
"0.59022075",
"0.5898383",
"0.587932",
"0.5868968",
"0.58588713",
"0.5853841",
"0.5852763",
"0.585046",
"0.58287185",
"0.5823787",
"0.58168554",
"0.5809055",
"0.58054227",
"0.5784724",
"0.57768357",
"0.57754874",
"0.5772223",
"0.57638425",
"0.5761809",
"0.57359374",
"0.5721699",
"0.5710842",
"0.5708653",
"0.569918",
"0.56916094",
"0.56744957",
"0.56731683",
"0.5672733",
"0.56726915",
"0.5672173",
"0.56636125",
"0.56553835",
"0.56551796",
"0.56551653",
"0.565501",
"0.5653942",
"0.56534857",
"0.5651777",
"0.5650866",
"0.5647645",
"0.5637724",
"0.5632519",
"0.56277734",
"0.5614374",
"0.5605886",
"0.5605074",
"0.55646545",
"0.5564152",
"0.55419564",
"0.5541481",
"0.5541176",
"0.5537161",
"0.5532898",
"0.5530461",
"0.5525404",
"0.5509894",
"0.55074793",
"0.5504307"
]
| 0.59169716 | 40 |
This method will return the individual | public E decode(ArrayList<Integer> individual); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }",
"public Individual getIndividual(int id){\n for(Individual individual : individuals){\n if(individual.getId() == id){\n return individual;\n }\n }\n return null;\n }",
"public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }",
"public abstract SmartObject findIndividualName(String individualName);",
"public Reference individual() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_INDIVIDUAL);\n }",
"public NamedIndividual getNamedIndividual() {\n \treturn namedIndividual;\n }",
"public static Person getARandonCustomer(){\n Person person = RandomPerson.get().next();\n return person;\n }",
"People getObjUser();",
"public People getUser(int index) {\n return instance.getUser(index);\n }",
"Individual createIndividual();",
"public Individual getIndividualById(Integer id) throws ObjectNotFoundException{\n \tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\t\t\tif (individual.getId().compareTo(id) == 0) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"id\", id.toString());\n\n\t\treturn individual;\n\n }",
"Identifiable item();",
"String getIdentifiant();",
"public Evolvable getIndividual(int index){\n\t\treturn population[index];\n\t}",
"People getUser();",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"@Override\n\tpublic Person findSelf() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\treturn p;\n\t}",
"public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }",
"public Person getPerson(int index) {\r\n return this.personList.get(index);\r\n }",
"People getUser(int index);",
"public People getUser() {\n return instance.getUser();\n }",
"public Human getPerson() {\n\t\treturn this.person;\n\t}",
"public People getObjUser() {\n return instance.getObjUser();\n }",
"String getResponsible();",
"public String getPrimaryContact();",
"public String getIdentity();",
"public Person getPerson(String CPR) {\n return sagsKatalog.getPerson(CPR);\n }",
"@Override\n public IPerson getPrincipal() {\n return this.person;\n }",
"@Override\r\n\tpublic Person getPerson(Long personId) {\n\r\n\r\n\t\tPerson person = new Person(\"bob\", String.format(\"Unit%d\", personId), \"carol\", \"alice\", \"42\");\r\n\t\tperson.setId(personId);\r\n\t\treturn person;\r\n\t}",
"public String getIdentification ()\n {\n return this.toString();\n }",
"public Individual getBest() {\n\t\treturn individuals[0];\n\t}",
"public People getUser(int index) {\n return user_.get(index);\n }",
"@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }",
"public Individual selectIndividual(Population population) {\n // Get individuals\n List<Individual> individuals = population.getPopulation();\n\n // Spin roulette wheel\n double populationFitness = population.getPopulationFitness();\n double rouletteWheelPosition = Math.random() * populationFitness;\n\n // Find parent\n double spinWheel = 0;\n for (Individual individual : individuals) {\n spinWheel += individual.getFitness();\n if (spinWheel >= rouletteWheelPosition) {\n return individual;\n }\n }\n return individuals.get(population.size() - 1);\n }",
"public Researcher getResearcherByID(int id);",
"java.lang.String getParticipant();",
"Name findNameByPersonPrimary(int idPerson);",
"String getPersonalityIdentifier();",
"java.lang.String getUserIdOne();",
"@Override\n public Persona First() {\n return array.get(0);\n }",
"public Participant getParticipant ()\r\n {\r\n return participant_;\r\n }",
"public String getCreatorAt(int i){\n return creator[i];\n }",
"public String getPersonID(){\n return personID;\n }",
"public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}",
"java.lang.String getID();",
"public Object getID()\n {\n return data.siObjectID;\n }",
"public long getPersonId();",
"public String getName(){\n return personName;\n }",
"@Override\n\tpublic Person getPerson(int id) {\n\t\treturn new Person(\"Philippe\", \"Peeters\");\n\t}",
"public Person GetPerson(int ID){\n //Override for \"ME\"\n if (ID == Person.Me.GetID()){ return Person.Me; }\n // Short circuit for deleted person\n if (ID == Person.Deleted.GetID()){ return Person.Deleted; }\n\n for (Person p : _people) {\n if (p.GetID() == ID) { return p; }\n }\n return null;\n }",
"Participant getOwner();",
"@Override\r\n\tpublic Invigilate getOne(Integer no) {\n\t\treturn invigilateMapper.selectByPrimaryKey(no);\r\n\t}",
"public MinecartMember<?> getEnteredMember() {\n return this.newSeat.getMember();\n }",
"int getOwnerID();",
"I getIdentifier();",
"public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }",
"public Person getMainPerson() {\n return mainSourceDescription == null ? null : getPerson(mainSourceDescription.getAbout());\n }",
"String getID();",
"String getID();",
"String getID();",
"String getID();",
"private Trouser getRandomTrouser() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int trouserId = c.getInt((c.getColumnIndex(TrouserEntry._ID)));\n String trouserPath = c.getString(c.getColumnIndex(TrouserEntry.IMG_PATH));\n\n c.close();\n return new Trouser(trouserId, trouserPath);\n } else {\n return null;\n }\n }",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();"
]
| [
"0.681293",
"0.680214",
"0.671408",
"0.6595892",
"0.65314895",
"0.6456836",
"0.6402558",
"0.6375117",
"0.63584256",
"0.63563776",
"0.6338672",
"0.63299245",
"0.6283785",
"0.6265535",
"0.6235378",
"0.62141407",
"0.621249",
"0.6197516",
"0.61848325",
"0.61742926",
"0.6087106",
"0.6085756",
"0.6063188",
"0.6049034",
"0.6020574",
"0.59980065",
"0.5981764",
"0.59723824",
"0.594035",
"0.5936855",
"0.5926218",
"0.5905435",
"0.5870158",
"0.58622175",
"0.5848474",
"0.5844226",
"0.58439827",
"0.5837719",
"0.58366835",
"0.58344",
"0.5826157",
"0.5825128",
"0.58124346",
"0.57960016",
"0.57903355",
"0.577568",
"0.5775123",
"0.57687163",
"0.57681805",
"0.57676387",
"0.57656133",
"0.5764409",
"0.5754685",
"0.5752685",
"0.5749649",
"0.5748408",
"0.5748266",
"0.57304364",
"0.57304364",
"0.57304364",
"0.57304364",
"0.5727938",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636",
"0.57258636"
]
| 0.0 | -1 |
This method takes a index representing the index of the gene to mutate and returns a new value for this gene | public Integer mutate(int index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mutateGene(int gene);",
"private TraceableFloat mutateGene(TraceableFloat a, float new_a_value, EvolutionState state){\n\n if(a.getValue() == new_a_value)//return the original gene if the value was not altered\n return a;\n\n double influence_factor_mut = Math.abs(a.getValue() - new_a_value) / (Math.abs(a.getValue()) + Math.abs(a.getValue() - new_a_value));\n double influence_factor_old = 1 - influence_factor_mut;\n\n List<TraceTuple> a_traceVector = new ArrayList<TraceTuple>();\n\n int i = 0; //index for this traceVector\n\n //check if we accumulate and the first element is already the mutation\n if(state.getAccumulateMutatioImpact() && a.getTraceVector().get(0).getTraceID() == state.getMutationCounter()){//if we accumulate mutation and the gene is influenced by mutation, accumulate that\n double oldScaledMutImpact = a.getTraceVector().get(0).getImpact() * influence_factor_old;\n a_traceVector.add(new TraceTuple(state.getMutationCounter(), influence_factor_mut + oldScaledMutImpact));\n i++; //increment i, as the first element of the traceList from a is already added\n } else { //add the new mutation ID if we don't accumulate or there is no mutation present bevore\n a_traceVector.add(new TraceTuple(state.getMutationCounter(), influence_factor_mut));\n }\n\n while(i < a.getTraceVector().size()){ //this iterates over the traceVector of this individual\n int currentAID = a.getTraceVector().get(i).getTraceID();\n double currentAImpact = a.getTraceVector().get(i).getImpact();\n\n a_traceVector.add(new TraceTuple(currentAID, influence_factor_old * currentAImpact));\n i++;\n }\n\n return new TraceableFloat(new_a_value, a_traceVector);\n }",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"@Override\n\tpublic void applyMutation(int index, double a_percentage) {\n\n\t}",
"protected void ReplaceIndividual(int index) {\r\n \r\n Individual newInd, oldInd;\r\n \r\n oldInd = this.P.get(index);\r\n\r\n double[] features = new double[this.D];\r\n for(int j = 0; j < this.D; j++){\r\n features[j] = this.rndGenerator.nextDouble(this.f.min(this.D), this.f.max(this.D));\r\n } \r\n newInd = new Individual(oldInd.id, features, this.f.fitness(features));\r\n this.isBest(newInd);\r\n this.isActualBest(newInd);\r\n this.P.remove(index);\r\n this.P.add(index, newInd);\r\n this.FES++;\r\n this.writeHistory();\r\n \r\n }",
"public abstract void updateCurGene(int mid);",
"public void applyMutation(int index, double a_percentage) {\n double range = (m_upperBound - m_lowerBound) * a_percentage;\n double newValue = floatValue() + range;\n setAllele(new Float(newValue));\n }",
"void update(String selectedGene);",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"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 }",
"@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}",
"private int newIndex() {\n //return indexes.remove(0);\n return random.nextInt(81);\n }",
"public abstract E set(int index, E e);",
"abstract public Object getValue(int index);",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public E set(int index, E newValue){\n if (index < 0 || index >= size){\n throw new ArrayIndexOutOfBoundsException(index);\n }\n E oldValue = theData[index];\n theData[index] = newValue;\n\n return oldValue;\n }",
"@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 E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}",
"private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }",
"private int adjustIndex(int index)\n {\n int max = values.length;\n return ((index % max) + max) % max;\n }",
"@Override\n public void visit(Index node) {\n }",
"public E set(int index, E data) \n throws IndexOutOfBoundsException,NullPointerException\n {\n if(index > size() || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n if(data == null)\n {\n throw new NullPointerException();\n }\n currNode.data = data;\n return currNode.data; \n }",
"public Object getValue(int index);",
"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 }",
"public abstract <T> void set(int index, T value);",
"public void set(int index, E newValue)\n {\n if (index >= 0 && index < size)\n data[index] = newValue;\n else\n throw new NoSuchElementException();\n }",
"public void set(long index);",
"@Override\n\t public Node apply(Node gen) {\n\t\t gen = gen.clone(null);\n\t\t int n = gen.weight();\n\t\t int m = (int)(Math.random()*n);\n\t\t Node mutate_node = gen.get(m);\n\t\t int x = (int)(Math.random()*codes.length);\n\t\t mutate_node.oper = codes[x];\n\t\t return gen;\n\t }",
"public void mutation(Graph_GA obj, float mutation_index)\r\n\t{\r\n\t\t\r\n\t\tList<Integer> list_num = new ArrayList<Integer>();\r\n\t\tInteger[] shuffled_list = null;\r\n\t\tList<Integer> mutation_vertex = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tlist_num.add(i+1);\r\n\t\t}\r\n\t\tjava.util.Collections.shuffle(list_num);\r\n\t\tshuffled_list = list_num.toArray(new Integer[list_num.size()]);\r\n\t\t\r\n\t\tfor(int i=0;i<(chromosome_size*mutation_index);i++)\r\n\t\t{\r\n\t\t\tmutation_vertex.add(shuffled_list[i]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tGA_Graph_Node vertex_container[] = obj.getNodes();\r\n\t\t\r\n\t\tfor(int i=0;i<obj.num_vertex;i++)\r\n\t\t{\r\n\t\t\tInteger[] valid_colors = null;\r\n\t\t\tList<Integer> adjacent_vertex_color = new LinkedList<Integer>();\r\n\t\t\tSet<DefaultEdge> adjacent_edges = obj.graph_inp.edgesOf(vertex_container[i]);\r\n\t\t\tIterator<DefaultEdge> adj_edge_list = adjacent_edges.iterator();\r\n\t\t\t\r\n\t\t\twhile(adj_edge_list.hasNext())\r\n\t\t\t{\r\n\t\t\t\tDefaultEdge adj_edge = adj_edge_list.next();\r\n\t\t\t\tGA_Graph_Node adj_node = null;\r\n\t\t\t\tadj_node = obj.graph_inp.getEdgeSource(adj_edge);\r\n\t\t\t\tif(adj_node==null||adj_node==vertex_container[i])\r\n\t\t\t\t{\r\n\t\t\t\t\tadj_node = obj.graph_inp.getEdgeTarget(adj_edge);\r\n\t\t\t\t}\r\n\t\t\t\tadjacent_vertex_color.add(chromosome[adj_node.numID-1]);\r\n\t\t\t}\r\n\t\t\tif(adjacent_vertex_color.contains(chromosome[i])&&mutation_vertex.contains(i+1))\r\n \t{\r\n\t\t\t\tList<Integer> valid_color_list = new LinkedList<Integer>();\r\n \t\tfor(int j=0;j<num_colors;j++)\r\n \t\t{\r\n \t\t\tif(adjacent_vertex_color.contains(j+1) == false)\r\n \t\t\t\tvalid_color_list.add(j+1);\t\r\n \t}\r\n \t\t\r\n \t\tvalid_colors = valid_color_list.toArray(new Integer[valid_color_list.size()]);\r\n \t\t\r\n// \t\tSystem.out.println(valid_colors.toString());\r\n \t\tif(valid_colors.length> 0)\r\n \t\t{\r\n\t \t\tint rand_num = random_generator.nextInt(valid_colors.length);\r\n\t \t\t\tint new_color = valid_colors[rand_num];\r\n\t \t\t\t\r\n\t \t\t\tchromosome[i] = new_color;\r\n \t\t}\r\n \t}\r\n\t\t\t\r\n }\r\n\t}",
"@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }",
"public abstract void updateIndex();",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }",
"public void defaultMutate() {\n int mutationIndex = RNG.randomInt(0, this.m_GenotypeLength);\n //if (mutationIndex > 28) System.out.println(\"Mutate: \" + this.getSolutionRepresentationFor());\n if (this.m_Genotype.get(mutationIndex)) this.m_Genotype.clear(mutationIndex);\n else this.m_Genotype.set(mutationIndex);\n //if (mutationIndex > 28) System.out.println(this.getSolutionRepresentationFor());\n }",
"MutateNda<V> getMut();",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"public @Override E get(int index) {\n \treturn getNode(index).data;\n }",
"public <K> IRepositoryIndex<K, V> configureIndex(\n\t\tshort index,\n\t\tboolean mutable,\n\t\tFunction<K, V> defaultSupplier,\n\t\tFunction<V, K> getKeyFromValue, \n\t\tFunction <K, byte[]> getKeyBytesFromKey\n\t) throws Exception;",
"private void setSeenInfo(\n int index, SeenInfo.Builder builderForValue) {\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, builderForValue.build());\n }",
"public boolean set(int index, E value){\n if (index > maxIndex || index < 0){\n System.out.println(\"Error while replacing value. Your index \" + index + \" is out of bound of array\");\n return false;\n }\n\n array[index] = value;\n return true;\n }",
"public E set(int index, E element);",
"public int randomGene();",
"@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 mutate(Song song, int noteIndex) {\n if (Math.random() < this.getProbability()) {\n if (noteIndex > 0) {\n MidiUtil mu = new MidiUtil();\n int nbrOfTotalReversing = nbrOfAdditionalReversing + 1\n + ((int) Math.random() * nbrRange);\n ArrayList<Integer> noteIndexes = new ArrayList<Integer>();\n ArrayList<Note> notes = new ArrayList<Note>();\n noteIndexes.add(noteIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndex));\n int currentIndex = noteIndex - 1;\n noteIteration: for (int i = 1; i < nbrOfTotalReversing; i++) {\n while (mu.isBlank(currentIndex) && currentIndex >= 0) {\n currentIndex--;\n }\n if (currentIndex < 0) {\n break noteIteration;\n } else {\n noteIndexes.add(currentIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(currentIndex));\n }\n }\n int totalReverses = noteIndexes.size();\n for (int j = 0; j < noteIndexes.size(); j++) {\n if (withRhythmLength) {\n song.getScore()\n .getPart(0)\n .getPhrase(0)\n .setNote(notes.get(totalReverses - 1 - j),\n noteIndexes.get(j));\n } else {\n int newPitch = notes.get(totalReverses - 1 - j)\n .getPitch();\n song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndexes.get(j)).setPitch(newPitch);\n }\n }\n }\n }\n }",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public int getValue(BitChromosome bitChromosome, int index) {\n return (int)((bitChromosome.genes >> (shift * index)) & mask);\n }",
"@Override\n public E get(int index) {\n this.rangeCheck(index);\n return (E) this.values[index];\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 abstract void setGen(int i, double value);",
"public Individual mutate(Config config)\r\n\t{\r\n\t\tIndividual ind;\r\n\r\n\t\tif (isBinaryEncoding())\r\n\t\t{\r\n\t\t\t// Create a new binary individual\r\n\t\t\tind = new Individual(intSize, intCount, signedInt);\r\n\r\n\t\t\t// Copy our genes to other individual\r\n\t\t\tfor (int i = 0; i < binary.length; i++)\r\n\t\t\t\tind.binary[i] = binary[i];\r\n\r\n\t\t\t// Mutate\r\n\t\t\tint mutatedBits = (int) (Math.random() * config.mutationStrength) + 1;\r\n\t\t\tfor (int i = 0; i < mutatedBits; i++)\r\n\t\t\t{\r\n\t\t\t\tint bitIndex = (int) (Math.random() * binary.length);\r\n\t\t\t\tind.binary[bitIndex] = !ind.binary[bitIndex];\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Create a new float individual\r\n\t\t\tind = new Individual();\r\n\r\n\t\t\t// Copy our genes\r\n\t\t\tind.realValue = realValue;\r\n\r\n\t\t\t// Mutate\r\n\t\t\tind.realValue += (Math.random() * 2f - 1f) * config.mutationStrength;\r\n\t\t}\r\n\r\n\t\treturn ind;\r\n\t}",
"private void updateStatistic(int index, int fitness) {\n if (fitness < worst)\n worst = fitness;\n if (fitness > best) {\n best = fitness;\n frontRunner = geneticProgram.getProgram(index);\n }\n }",
"private void mutate(float probability) {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n float temp_genes[] = this.offspring_population.getPopulation()[i].getGenes();\r\n\r\n // mutation can now mutate wild cards\r\n for (int j = 0; j < temp_genes.length; j++) {\r\n float k = new Random().nextFloat();\r\n\r\n if (k <= probability) {\r\n float temp = new Random().nextFloat();\r\n temp_genes[j] = temp; // add a float between 0-1 // just mutate a new float\r\n }\r\n }\r\n individual child = new individual(temp_genes, solutions, output);\r\n temp_pop[i] = child;\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }",
"public void setIndex(int index) { this.index = index; }",
"public void updateImageForIndex(int index) {\n\t\t//Nothing to do\n\t}",
"public Expression getIndex()\n {\n return index;\n }",
"void update(int index, int val) {\n\t\tarray[index] = val;\n\t}",
"protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }",
"protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }",
"private void mutate(Chromosome c){\n for(double[] gene:c.getGeneData()){\n for(int i=0; i<gene.length; i++){\n if(Math.random()<mutationRate){\n //Mutate the data\n gene[i] += (Math.random()-Math.random())*maxPerturbation;\n }\n }\n }\n }",
"public void set(int index, E e) {\r\n if (index < 0 || index > +data.length)\r\n throw new IllegalArgumentException(\"Index is illegal.\");\r\n\r\n set(0, 0, data.length - 1, index, e);\r\n }",
"public void setMaterialIndex(int index) { materialIndex = index; }",
"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}",
"public E get(int index);",
"public Builder setUser(\n int index, People.Builder builderForValue) {\n copyOnWrite();\n instance.setUser(index, builderForValue);\n return this;\n }",
"protected Gene getGene(int innovation) {\n\t\treturn genes.get(innovation);\n\t}",
"public Evolvable getIndividual(int index){\n\t\treturn population[index];\n\t}",
"@Override\n\tpublic void VisitGetIndexNode(GetIndexNode Node) {\n\n\t}",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"public Builder addSeenInfo(\n int index, SeenInfo.Builder builderForValue) {\n copyOnWrite();\n instance.addSeenInfo(index, builderForValue);\n return this;\n }",
"public static Double[] mutate(Double[] genotype) {\n\t\tRandom random = new Random();\n\t\tint position = random.nextInt(variableNum);\n\t\tgenotype[position]+=((Math.random()-0.5)*mutateVal);\n\t\tif(genotype[position] > maxValue) genotype[position] = maxValue;\n\t\tif(genotype[position] < minValue) genotype[position] = minValue;\n\t\treturn genotype;\n\t}",
"public Builder setSeenInfo(\n int index, SeenInfo.Builder builderForValue) {\n copyOnWrite();\n instance.setSeenInfo(index, builderForValue);\n return this;\n }",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public ATExpression base_indexExpression();",
"int getGeneId();",
"public abstract E get(int index);",
"public void setTargetValue(int idx, Object value);",
"private void setUser(\n int index, People.Builder builderForValue) {\n ensureUserIsMutable();\n user_.set(index, builderForValue.build());\n }",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"public void set(int index, Object wert) {\r\n\t\t// Das Element an der Stelle index \r\n\t\t//soll auf den Wert wert gesetzt werden\r\n\t\tgeheim[index] = wert;\r\n\t}",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public E index(int idx) throws IndexOutOfBoundsException {\n return indexNode(idx).val;\n }",
"public static BigInteger getElement(int index) {\n return getElement(index, new BigInteger(\"0\"), new BigInteger(\"1\"));\n }",
"@Override\n\tpublic void setValueSparse(final int indexOfIndex, final double value) {\n\n\t}",
"Value get(int index) throws ExecutionException;",
"public int getValue() {\r\n return index;\r\n }",
"private void addSeenInfo(\n int index, SeenInfo.Builder builderForValue) {\n ensureSeenInfoIsMutable();\n seenInfo_.add(index, builderForValue.build());\n }",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"void set(int index, T data);",
"public abstract int getSourceIndex(int index);",
"E get( int index );",
"public void onIndexUpdate();",
"private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}",
"public static void updateCoordinates(int index, Coordinate newCoordinate){\n\t\tunitPositions[index] = newCoordinate;\n\t\tAlgorithm.setUnitPositions(unitPositions);\n\t}",
"abstract int get(int index);",
"@Override\n public E get(final int index) {\n ensureValidIndex(size, index);\n return super.get(index + lower);\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public Builder setMetaInformation(\n int index, io.dstore.engine.MetaInformation.Builder builderForValue) {\n if (metaInformationBuilder_ == null) {\n ensureMetaInformationIsMutable();\n metaInformation_.set(index, builderForValue.build());\n onChanged();\n } else {\n metaInformationBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setMetaInformation(\n int index, io.dstore.engine.MetaInformation.Builder builderForValue) {\n if (metaInformationBuilder_ == null) {\n ensureMetaInformationIsMutable();\n metaInformation_.set(index, builderForValue.build());\n onChanged();\n } else {\n metaInformationBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setMetaInformation(\n int index, io.dstore.engine.MetaInformation.Builder builderForValue) {\n if (metaInformationBuilder_ == null) {\n ensureMetaInformationIsMutable();\n metaInformation_.set(index, builderForValue.build());\n onChanged();\n } else {\n metaInformationBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setMetaInformation(\n int index, io.dstore.engine.MetaInformation.Builder builderForValue) {\n if (metaInformationBuilder_ == null) {\n ensureMetaInformationIsMutable();\n metaInformation_.set(index, builderForValue.build());\n onChanged();\n } else {\n metaInformationBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }"
]
| [
"0.7468814",
"0.6493353",
"0.6230161",
"0.6002113",
"0.5941511",
"0.5937",
"0.59064955",
"0.5865751",
"0.57764083",
"0.57593656",
"0.57535374",
"0.5718658",
"0.57157594",
"0.56268597",
"0.5557569",
"0.551778",
"0.5493158",
"0.5486918",
"0.54441136",
"0.5431753",
"0.5397112",
"0.5395931",
"0.5384447",
"0.537905",
"0.53770286",
"0.53695744",
"0.53661853",
"0.535885",
"0.5358134",
"0.5345481",
"0.5345183",
"0.5338657",
"0.53260213",
"0.5304937",
"0.5304064",
"0.5303075",
"0.5299684",
"0.52977085",
"0.5279724",
"0.5260833",
"0.52534515",
"0.52410334",
"0.52323097",
"0.5225284",
"0.52191454",
"0.5212295",
"0.521162",
"0.5207685",
"0.51916075",
"0.5173768",
"0.51730883",
"0.51669836",
"0.51581496",
"0.51521975",
"0.51315856",
"0.51241255",
"0.5119671",
"0.5119671",
"0.51179916",
"0.5113908",
"0.5108594",
"0.5101102",
"0.50854295",
"0.50812256",
"0.507898",
"0.5077683",
"0.5077421",
"0.50696295",
"0.5067742",
"0.50455564",
"0.5041699",
"0.50356984",
"0.503085",
"0.50299865",
"0.5015407",
"0.5015193",
"0.5010234",
"0.50063443",
"0.5003652",
"0.5003294",
"0.50010103",
"0.49985573",
"0.4988549",
"0.4987568",
"0.49872854",
"0.4982311",
"0.4982016",
"0.4980556",
"0.49794045",
"0.49771914",
"0.49767765",
"0.49765685",
"0.49700928",
"0.49692535",
"0.49656248",
"0.49527442",
"0.49524197",
"0.49524197",
"0.49524197",
"0.49524197"
]
| 0.743545 | 1 |
Create a new main window | public FrmMain()
{
//Displays the menu bar on the top of the screen (mac style)
System.setProperty("apple.laf.useScreenMenuBar", "true");
// Build the GUI
initComponents();
// Load the texts
initTextsI18n();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createWindow();",
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }",
"public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}",
"private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }",
"private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }",
"protected void generateMainWindow(String name) {\r\n\t\t\r\n\t\t//Main Frame\r\n\t\tframe = new JFrame(name);\r\n\t\tframe.setBackground(Color.decode(\"#500000\"));\r\n\t\tframe.setSize(1000, 400);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t//Main Panel\r\n\t\tmainPanel = new MainPanel();\r\n\t\tframe.add(mainPanel);\r\n\t\tplaceComponents(mainPanel);\r\n\t\tframe.setVisible(true);\r\n\t}",
"public void mainWindow() {\n new MainWindow(this);\n }",
"private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }",
"private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }",
"private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }",
"static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}",
"public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}",
"public static void main(String[] args) {\n\t\tnew Window(); //creates a new window\n\t}",
"@Override\n\tprotected Window createMainWindow(String[] args) {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (BackingStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tLOG.info(\"End of the Run method\");\n\t\tif (frmBlueAhuizote == null) {\n\t\t\tLOG.error(\"frame still not available\"); ///!!\n\t\t}\n\t\treturn frmBlueAhuizote;\n\t}",
"void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}",
"public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}",
"NativeWindow createWindow(CreationParams p);",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }",
"public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }",
"private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}",
"public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }",
"private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public static void main(String[] args) {\n\t\tMainWindow mw = new MainWindow(\"메인화면\");\n\t\t\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}",
"private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }",
"public static void main(String[] args) {\n\n //MainWindow mainWindow=new MainWindow();\n\n }",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }",
"public Window(final int width, final int height, final String title,\n final Main main) {\n JFrame frame = new JFrame(title);\n\n frame.setPreferredSize(new Dimension(width, height));\n frame.setMaximumSize(new Dimension(width, height));\n frame.setMinimumSize(new Dimension(width, height));\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocationRelativeTo(null);\n frame.add(main);\n frame.setVisible(true);\n main.start();\n }",
"public JNotepadApp() {\r\n\t\tsetDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\r\n\t\t\r\n\t\t\r\n\t\tsetSize(1024, 768);\r\n\t\tsetLocationRelativeTo(null);\r\n\r\n\t\t\r\n\t\tinitGUI();\r\n\t\tsetTitle(\"New 1 - JNotepad++\");\r\n\t\tsetLocationRelativeTo(null);\r\n\t}",
"public void createWindow(int x, int y, int width, int height, int bgColor, String title, String displayText) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.add(displayText);\r\n\t\twindows.add(winnie);\r\n\t}",
"public void createWindow(int x, int y, int width, int height, int bgColor, String title, int n) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.type = n;\r\n\t\twindows.add(winnie);\r\n\t}",
"public void createPopupWindow() {\r\n \t//\r\n }",
"public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}",
"@Override\n\tpublic Window createWindow() {\n\t\tLightVisualThemeWindow lightVisualThemeWindow = new LightVisualThemeWindow();\n\t\treturn lightVisualThemeWindow;\n\t}",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }",
"protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}",
"private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}",
"public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}",
"public static void main(String[] args) throws Exception{\n Window window = new Window();\n window.createWindow();\n }",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public static void main(String[] args){\r\n\t\tframe= new Window();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setVisible(true);\r\n\t\tframe.setResizable(false);\r\n\t}",
"public MainFrame(String title){\n\t\ttry {\n\t\t\t//Make the look and feel Windows.\n\t UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t \n\t //Hope there's not an exception. If there ever an exception is it's an undocumented feature :)\n\t } catch (Exception evt) {}\n\t\t\t \n\t //Create a new JFrame with user-defined title. Make it referenceable so that other classes can refer to it.\n\t\tsetCurrentFrame(new JFrame(title));\n\t\tthis.getCurrentFrame().setResizable(false);\n\t\t\n\t\t//Exit not dispose. When this JFrame is closed, the entire program is closed.\n\t\tgetCurrentFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}",
"private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}",
"public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }",
"public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }",
"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}",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}",
"private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}",
"private void initWindow(String windowTitle) {\n // SET THE WINDOW TITLE\n primaryStage.setTitle(windowTitle);\n\n // GET THE SIZE OF THE SCREEN\n Screen screen = Screen.getPrimary();\n Rectangle2D bounds = screen.getVisualBounds();\n\n // AND USE IT TO SIZE THE WINDOW\n primaryStage.setX(bounds.getMinX());\n primaryStage.setY(bounds.getMinY());\n primaryStage.setWidth(bounds.getWidth());\n primaryStage.setHeight(bounds.getHeight());\n\n // ADD THE TOOLBAR ONLY, NOTE THAT THE WORKSPACE\n // HAS BEEN CONSTRUCTED, BUT WON'T BE ADDED UNTIL\n // THE USER STARTS EDITING A COURSE\n draftPane = new BorderPane();\n draftPane.setTop(fileToolbarPane);\n primaryScene = new Scene(draftPane);\n\n // NOW TIE THE SCENE TO THE WINDOW, SELECT THE STYLESHEET\n // WE'LL USE TO STYLIZE OUR GUI CONTROLS, AND OPEN THE WINDOW\n primaryScene.getStylesheets().add(PRIMARY_STYLE_SHEET);\n primaryStage.setScene(primaryScene);\n primaryStage.show();\n }",
"private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }",
"private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}",
"public static void main(String[] args) {\n AddNewProject addNewProject = new AddNewProject();\n addNewProject.setVisible(true);\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, 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\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"public MainWindow()\n\t{\n\t\tsettingsWindow = new SettingsWindow(this);\n\t\t\n\t\tplayingField = null;\n\t\t\n\t\tthis.setTitle(\"Minesweeper\");\n\t\tthis.setResizable(false);\n\t\tthis.setJMenuBar(createMenuBar());\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tthis.newGame();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private static void createWindow(final Serializable object) {\n\t\tDIALOG.setVisible(false);\n\t\tFrameFactory.createFrame(object);\n\t}",
"private static void createAndShowGUI() {\n //Create and set up the window.\n //JFrame frame = new JFrame(\"Basics of Color\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new ColorBasics(), BorderLayout.CENTER);\n Menu menu = new Menu();\n frame.setJMenuBar(menu.createMenuBar());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n }",
"public Main_Window() {\n initComponents();\n getConnection();\n //Show_database();\n }",
"public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"private void openClientManagementWindow() {\r\n\t\tnew JFrameClient();\r\n\t}",
"private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}",
"public void createWindow(){\n JFrame frame = new JFrame(\"Baser Aps sick leave prototype\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(screenSize.width,screenSize.height);\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n /**\n * Setting up the main layout\n */\n Container allContent = frame.getContentPane();\n allContent.setLayout(new BorderLayout()); //main layout is BorderLayout\n\n /**\n * Stuff in the content pane\n */\n JButton button = new JButton(\"Press\");\n JTextPane text = new JTextPane();\n text.setText(\"POTATO TEST\");\n text.setEditable(false);\n JMenuBar menuBar = new JMenuBar();\n JMenu file = new JMenu(\"File\");\n JMenu help = new JMenu(\"Help\");\n JMenuItem open = new JMenuItem(\"Open...\");\n JMenuItem saveAs = new JMenuItem(\"Save as\");\n open.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n fileChooser.showOpenDialog(frame);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n file.add(open);\n file.add(saveAs);\n menuBar.add(file);\n menuBar.add(help);\n\n allContent.add(button, LINE_START); // Adds Button to content pane of frame at position LINE_START\n allContent.add(text, LINE_END); // Adds the text to the frame, at position LINE_END\n allContent.add(menuBar, PAGE_START);\n\n\n\n frame.setVisible(true);\n }",
"public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}",
"private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}",
"private static void createAndShowGUI() {\n\t\t//creating the GUI\n\t\tPhotoViewer myViewer = new PhotoViewer();\n\n\t\t//setting the title\n\t\tmyViewer.setTitle(\"Cameron Chiaramonte (ccc7sej)\");\n\n\t\t//making sure it will close when the x is clicked\n\t\tmyViewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//calling the method to add the components to the pane and then making it visible\n\t\tmyViewer.addComponentsToPane(myViewer.getContentPane());\n\t\tmyViewer.pack();\n\t\tmyViewer.setVisible(true);\n\t}",
"public void openNewWindow(boolean setResizable, String stageName, String fxmlName) throws IOException {\r\n Stage stage = new Stage();\r\n // create a new window using FirstLaw gui\r\n try {\r\n Parent root = FXMLLoader.load(getClass().getResource(fxmlName));\r\n Scene scene = new Scene(root);\r\n stage.setScene(scene);\r\n // temp fixed min size of the stage\r\n stage.setMinWidth((1276 * 500)/ 716);\r\n stage.setMinHeight(500);\r\n //stage.setMaximized(true);\r\n stage.setResizable(setResizable);\r\n stage.initModality(Modality.APPLICATION_MODAL); // prevent from using the main windows\r\n stage.setTitle(stageName);\r\n stage.show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public abstract void newWindow(ReFrame newFrame);",
"private static void createAndShowGUI() {\n DragDropFiles test = new DragDropFiles();\n test.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n //Display the window.\n test.pack();\n test.setVisible(true);\n }",
"public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"public void makeMainWindow() {\n\t\tfinal WindowReference windowReference = getDefaultWindowReference( \"MainWindow\", this );\n\t\t_mainWindowReference = windowReference;\t\t\n mainWindow = (XalWindow)windowReference.getWindow();\n\t\t\n\t\tfinal NodeRecordCompoundFilter recordFilter = new NodeRecordCompoundFilter();\n\t\tfinal NodeRecordModeFilter statusFilter = NodeRecordModeFilter.getStatusFilterInstance();\n\t\trecordFilter.addFilter( statusFilter );\n\t\tfinal NodeRecordModeFilter excludeFilter = NodeRecordModeFilter.getExclusionFilterInstance();\n\t\trecordFilter.addFilter( excludeFilter );\n\t\tfinal NodeRecordModeFilter modifiedFilter = NodeRecordModeFilter.getModificationFilterInstance();\n\t\trecordFilter.addFilter( modifiedFilter );\n\t\trecordFilter.addFilter( makeNodeNameFilterHandler() );\n\t\t\n\t\tsetupModeFilterRadioButtons( statusFilter, \"AnyStatus\", \"GoodStatus\", \"BadStatus\" );\n\t\tsetupModeFilterRadioButtons( excludeFilter, \"AnyInclusion\", \"Excluded\", \"Included\" );\n\t\tsetupModeFilterRadioButtons( modifiedFilter, \"AnyModification\", \"Modified\", \"Unmodified\" );\n\t\t\t\t\n\t\tfinal NodesTableModel nodesTableModel = new NodesTableModel( _optics.getNodeRecords(), recordFilter );\n\t\tfinal JTable nodesTable = getNodesTable();\n\t\tnodesTable.setModel( nodesTableModel );\n\t\tnodesTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );\n\t}",
"public void launchNormalWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbRoot = new DBController(this);\n\t\t\tScene scene = new Scene(dbRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}",
"public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}",
"@FXML\n void openMainWindow() {\n window.setTitle(\"Timelines\");\n window.setScene(mainScene);\n window.show();\n window.requestFocus();\n drawMainElements();\n\n messageLabel.setVisible(false);\n }",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"FrameDemo\");\n frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\n //main input TextArea\n JTextArea mainIn = new JTextArea(\"Type your Command here.\", 3, 1);\n \n //main Output Display Displays htmlDocuments\n JTextPane mainOut = new JTextPane(new HTMLDocument());\n mainOut.setPreferredSize(new Dimension(800, 600));\n \n //add components to Pane\n frame.getContentPane().add(mainOut);\n frame.getContentPane().add(mainIn);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}",
"public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}"
]
| [
"0.797114",
"0.77146834",
"0.76424235",
"0.7416028",
"0.7209441",
"0.7189814",
"0.71441257",
"0.7143837",
"0.71390194",
"0.7124081",
"0.70914435",
"0.70203984",
"0.70036787",
"0.69877577",
"0.6964106",
"0.69514906",
"0.6883818",
"0.6837793",
"0.6805285",
"0.6764365",
"0.6756111",
"0.67514735",
"0.6749769",
"0.6749278",
"0.6748506",
"0.6742917",
"0.6740663",
"0.67347187",
"0.67222816",
"0.6720228",
"0.67168367",
"0.66866535",
"0.66821516",
"0.66703945",
"0.66659296",
"0.66452473",
"0.66352993",
"0.658346",
"0.6577348",
"0.65708756",
"0.6569157",
"0.6549501",
"0.6530609",
"0.65228415",
"0.65108234",
"0.65104574",
"0.6496436",
"0.64896226",
"0.6484883",
"0.6471845",
"0.64673644",
"0.64662325",
"0.6431152",
"0.64306295",
"0.64198995",
"0.641893",
"0.6415487",
"0.6415358",
"0.6410302",
"0.64081955",
"0.63881004",
"0.63876647",
"0.6383607",
"0.63810664",
"0.63797784",
"0.6379672",
"0.6371363",
"0.6369006",
"0.63512635",
"0.6348592",
"0.63453484",
"0.63452506",
"0.6343232",
"0.6343129",
"0.6341446",
"0.6336283",
"0.6327047",
"0.63264245",
"0.63238245",
"0.6318983",
"0.63132435",
"0.63054824",
"0.6300456",
"0.6296703",
"0.6294351",
"0.6286871",
"0.6286033",
"0.62859845",
"0.62850976",
"0.62825817",
"0.62824064",
"0.6281606",
"0.62809134",
"0.6270732",
"0.6269726",
"0.6263435",
"0.62613237",
"0.6260477",
"0.6251511",
"0.6250831",
"0.62496334"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form | private void initComponents()
{
// Attributes of the window
int windowWidth = 450;
// Get the content pane
Container pane = this.getContentPane();
pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
// The first row: wifi animated icon
JPanel row0 = new JPanel();
row0.setLayout(new BoxLayout(row0, BoxLayout.X_AXIS));
wifiAnimatedIcon = new WiFiAnimatedIcon(250, FrmMainController.WINDOW_TOP_BACKGROUND);
wifiAnimatedIcon.setPreferredSize(new Dimension(152, 252));
row0.add(Box.createHorizontalGlue());
row0.add(wifiAnimatedIcon);
row0.add(Box.createHorizontalGlue());
// The second row: notifications
labelNotifications = new JLabel("Notifications ici", SwingConstants.CENTER);
labelNotifications.setFont(new Font(labelNotifications.getFont().getFontName(), Font.ITALIC, labelNotifications.getFont().getSize()));
labelNotifications.setForeground(Color.GRAY);
labelNotifications.setAlignmentX(Component.CENTER_ALIGNMENT);
labelNotifications.setAlignmentY(Component.TOP_ALIGNMENT);
setSize(labelNotifications, new Dimension(windowWidth, 15));
// The third row: profile + connection state
JPanel row2 = new JPanel();
row2.setLayout(new BoxLayout(row2, BoxLayout.X_AXIS));
labelProfile = new JLabel("SFR WiFi Public", SwingConstants.CENTER);
labelConnectionState = new JLabel("Connecté", SwingConstants.CENTER);
labelProfile.setFont(new Font(labelProfile.getFont().getName(), Font.BOLD, labelProfile.getFont().getSize()));
labelConnectionState.setFont(new Font(labelConnectionState.getFont().getName(), Font.BOLD, labelConnectionState.getFont().getSize()));
labelGroupSeparator = new JLabel("-", SwingConstants.CENTER);
labelGroupSeparator.setFont(new Font(labelGroupSeparator.getFont().getName(), Font.BOLD, labelGroupSeparator.getFont().getSize()));
setSize(labelGroupSeparator, new Dimension(8, 20));
Dimension colDimension0 = new Dimension((windowWidth - 19 - labelGroupSeparator.getWidth()) / 2 - 2, 20);
JPanel p1 = new JPanel();
p1.setLayout(new BoxLayout(p1, BoxLayout.X_AXIS));
setSize(p1, colDimension0);
JPanel p2 = new JPanel();
p2.setLayout(new BoxLayout(p2, BoxLayout.X_AXIS));
setSize(p2, colDimension0);
// Left and right columns
p1.add(Box.createHorizontalGlue());
p1.add(labelProfile);
p1.add(Box.createHorizontalGlue());
p2.add(Box.createHorizontalGlue());
p2.add(labelConnectionState);
p2.add(Box.createHorizontalGlue());
// The row
row2.add(p1);
row2.add(labelGroupSeparator);
row2.add(p2);
// THe border
row2.setBorder(BorderFactory.createEtchedBorder());
// Set the sizes
setSize(row2, new Dimension(windowWidth - 19, 45));
// Last row: buttons
JPanel row3 = new JPanel();
row3.setLayout(new BoxLayout(row3, BoxLayout.X_AXIS));
// The last row, left column
JPanel row3_col0 = new JPanel();
row3_col0.setLayout(new BoxLayout(row3_col0, BoxLayout.Y_AXIS));
buttonLaunchPause = new JButton("Marche");
setSize(buttonLaunchPause, new Dimension(140, 35));
buttonLaunchPause.setAlignmentX(Component.CENTER_ALIGNMENT);
labelAutoConnectState = new JLabel("Auto Connect en pause", SwingConstants.CENTER);
labelAutoConnectState.setForeground(Color.GRAY);
labelAutoConnectState.setAlignmentX(Component.CENTER_ALIGNMENT);
setSize(labelAutoConnectState, new Dimension(windowWidth / 2, 15));
// Add components
row3_col0.add(Box.createVerticalGlue());
row3_col0.add(Box.createVerticalGlue());
row3_col0.add(buttonLaunchPause);
row3_col0.add(Box.createRigidArea(new Dimension(0, 3)));
row3_col0.add(labelAutoConnectState);
row3_col0.add(Box.createVerticalGlue());
// The last row, right column
JPanel row3_col1 = new JPanel();
row3_col1.setLayout(new BoxLayout(row3_col1, BoxLayout.Y_AXIS));
buttonAutoManual = new JButton("Automatique");
setSize(buttonAutoManual, new Dimension(140, 35));
buttonAutoManual.setAlignmentX(Component.CENTER_ALIGNMENT);
labelAuthMode = new JLabel("Authentification manuelle", SwingConstants.CENTER);
labelAuthMode.setForeground(Color.GRAY);
labelAuthMode.setAlignmentX(Component.CENTER_ALIGNMENT);
setSize(labelAuthMode, new Dimension(windowWidth / 2, 15));
// Add components
row3_col1.add(Box.createVerticalGlue());
row3_col1.add(Box.createVerticalGlue());
row3_col1.add(buttonAutoManual);
row3_col1.add(Box.createRigidArea(new Dimension(0, 3)));
row3_col1.add(labelAuthMode);
row3_col1.add(Box.createVerticalGlue());
// A vertical border
JLabel labelSeparator0 = new JLabel();
Dimension labelSeparatorDimension = new Dimension(10, 70);
setSize(labelSeparator0, labelSeparatorDimension);
labelSeparator0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
JLabel labelSeparator1 = new JLabel();
setSize(labelSeparator1, new Dimension(6, 70));
labelSeparator1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
JLabel labelSeparator2 = new JLabel();
setSize(labelSeparator2, labelSeparatorDimension);
labelSeparator2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
row3.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
// Add borders
row3_col0.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));
row3_col1.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));
// Add components
row3.add(labelSeparator0);
row3.add(row3_col0);
row3.add(labelSeparator1);
row3.add(row3_col1);
row3.add(labelSeparator2);
// Set sizes
Dimension colDimension1 = new Dimension(windowWidth / 2 - 2 * labelSeparator0.getWidth() / 2 - labelSeparator1.getWidth() / 2, 70);
setSize(row3_col0, colDimension1);
setSize(row3_col1, colDimension1);
Dimension row3Dimension = new Dimension(windowWidth, row3.getHeight());
row3.setMinimumSize(row3Dimension);
row3.setSize(row3Dimension);
row3.setMaximumSize(row3Dimension);
// Set the color
p1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
p2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
pane.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
row0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
row2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);
row3_col0.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);
row3_col1.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);
// Add components
pane.add(Box.createRigidArea(new Dimension(0, 15)));
pane.add(row0);
pane.add(Box.createRigidArea(new Dimension(0, 0)));
pane.add(labelNotifications);
pane.add(Box.createRigidArea(new Dimension(0, 8)));
pane.add(row2);
pane.add(Box.createRigidArea(new Dimension(0, 5)));
pane.add(row3);
pane.add(Box.createRigidArea(new Dimension(0, 10)));
// Create the menu
this.menuFile = new JMenu("Fichier");
this.menuProfiles = new JMenu("Profils");
this.menuHelp = new JMenu("Aide");
this.menuFile_Parameters = new JMenuItem("Paramètres");
this.menuFile_Quit = new JMenuItem("Quitter");
this.menuFile.add(this.menuFile_Parameters);
if (OSUtil.IS_WINDOWS)
this.menuFile.addSeparator();
else
this.menuFile.add(new JSeparatorExt());
this.menuFile.add(this.menuFile_Quit);
this.menuHelp_Update = new JMenuItem("Vérifier les mises à jour");
this.menuHelp_Doc = new JMenuItem("Documentation");
this.menuHelp_FAQ = new JMenuItem("FAQ");
this.menuHelp_About = new JMenuItem("À propos de WiFi Auto Connect");
this.menuHelp.add(this.menuHelp_Update);
if (OSUtil.IS_WINDOWS)
this.menuHelp.addSeparator();
else
this.menuHelp.add(new JSeparatorExt());
this.menuHelp.add(this.menuHelp_Doc);
this.menuHelp.add(this.menuHelp_FAQ);
if (!OSUtil.IS_MAC) // On mac os, the About menu is present in the application menu
{
if (OSUtil.IS_WINDOWS)
this.menuHelp.addSeparator();
else
this.menuHelp.add(new JSeparatorExt());
this.menuHelp.add(this.menuHelp_About);
}
this.menuBar = new JMenuBar();
if (!OSUtil.IS_MAC) // On mac os, Preferences & Quit are already present in the application menu
this.menuBar.add(this.menuFile);
this.menuBar.add(this.menuProfiles);
this.menuBar.add(this.menuHelp);
// Add shortcuts (mnemonics are added when we load texts for internationalization)
this.menuFile_Quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
this.menuHelp_Doc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
// Add the menu bar
this.setJMenuBar(this.menuBar);
// Full integration of the application in Mac OS
if (OSUtil.IS_MAC)
{
Application.getApplication().setAboutHandler(new AboutHandler()
{
@Override
public void handleAbout(AboutEvent arg0)
{
new FrmAbout(FrmMain.this, true).setVisible(true);
}
});
Application.getApplication().setPreferencesHandler(new PreferencesHandler()
{
@Override
public void handlePreferences(PreferencesEvent pe)
{
new FrmParameters(FrmMain.this, true).setVisible(true);
}
});
Application.getApplication().addAppEventListener(new AppReOpenedListener()
{
@Override
public void appReOpened(AppReOpenedEvent aroe)
{
setState(FrmMain.NORMAL);
setVisible(true);
}
});
}
// Pack before to display
this.pack();
// Add event listeners
buttonLaunchPause.addMouseListener(new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent evt)
{
buttonLaunchPause_MouseClicked(evt);
}
});
buttonAutoManual.addMouseListener(new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent evt)
{
buttonAutoManual_MouseClicked(evt);
}
});
menuHelp_About.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
new FrmAbout(FrmMain.this, true).setVisible(true);
}
});
menuFile_Quit.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
});
menuFile_Parameters.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
new FrmParameters(FrmMain.this, true).setVisible(true);
}
});
// Create the system tray
this.addApplicationSystemTray();
// Set the other properties of the window
FrmMain.setDefaultLookAndFeelDecorated(true);
this.setTitle(FrmMainController.APP_NAME);
this.setResizable(false);
this.setIconImage(ResourcesUtil.APPLICATION_IMAGE);
// Just hide
this.setDefaultCloseOperation(HIDE_ON_CLOSE);
// Add the tooltip of the system tray
this.updateSystemTrayToolTip();
// Center the window on the screen
this.setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public FormPemilihan() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public Ventaform() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public dokter() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public ScheduleForm() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public Formulario() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FrmMenu() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public frmModelMainForm() {\n initComponents();\n }",
"public form_for_bd() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public formPrincipal() {\n initComponents();\n }",
"public kunde() {\n initComponents();\n }",
"public UI() {\n initComponents();\n }",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public sinavlar2() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public JMCF() {\n initComponents();\n }",
"public asignatura() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public frmPrincipal() {\n initComponents();\n }",
"public AttributeForm() \n {\n initComponents();\n mJerseyNumberUpDown.setModel(new SpinnerNumberModel(0,0,99,1));\n \n m_Parser = new InputParser();\n m_Attributes = new JComboBox[8];\n m_Attributes[0] = m_RSBox;\n m_Attributes[1] = m_RPBox;\n m_Attributes[2] = m_MSBox;\n m_Attributes[3] = m_HPBox;\n m_Attributes[4] = m_PS_BC_PI_KABox;\n m_Attributes[5] = m_PC_REC_QU_KABox;\n m_Attributes[6] = m_ACCBox;\n m_Attributes[7] = m_APBBox;\n\n m_SimAttrs = new JSpinner[4];\n m_SimAttrs[0] = m_Sim1UpDown;\n m_SimAttrs[1] = m_Sim2UpDown;\n m_SimAttrs[2] = m_Sim3UpDown;\n m_SimAttrs[3] = m_Sim4UpDown;\n \n m_DoneInit = true;\n setCurrentState(StateEnum.QB);\n \n }",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"public uitax() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }",
"private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}",
"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 EindopdrachtGUI() {\n initComponents();\n }",
"public FrmMainVIEW() {\n initComponents();\n }",
"public form2() {\n initComponents();\n }",
"public Cadastro() {\n initComponents();\n }",
"public JfrmPrincipal() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public ReportUi() {\n initComponents();\n }",
"public AnaPencere() {\n initComponents();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"public P0405() {\n initComponents();\n }",
"public JFcotiza() {\n initComponents();\n }",
"private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}",
"public Oddeven() {\n initComponents();\n }",
"public formdatamahasiswa() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public anakP() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"public AvtekOkno() {\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 LoginForm() {\n initComponents();\n }",
"public frmAdminAccount() {\n initComponents();\n }",
"public cargamasiva() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FormPrincipal() {\n initComponents();\n setLocationRelativeTo( null );\n \n }",
"public Kuis2() {\n initComponents();\n }",
"public C_AdminForm() {\n initComponents();\n }",
"public PatientRegForm() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }"
]
| [
"0.82028484",
"0.81591064",
"0.8083211",
"0.8059758",
"0.8059758",
"0.8059758",
"0.8047378",
"0.7990599",
"0.7934614",
"0.7895904",
"0.78393334",
"0.78134173",
"0.77839035",
"0.77748847",
"0.7715212",
"0.76305854",
"0.761853",
"0.75999445",
"0.75991696",
"0.7596386",
"0.7590751",
"0.75520146",
"0.75458133",
"0.7539849",
"0.75390273",
"0.7530907",
"0.75305355",
"0.75216365",
"0.7514306",
"0.7512883",
"0.7510347",
"0.74999595",
"0.7490409",
"0.7487031",
"0.7480919",
"0.7475443",
"0.7470568",
"0.7468499",
"0.7467247",
"0.7467221",
"0.7465973",
"0.7463554",
"0.74556077",
"0.745234",
"0.7449786",
"0.74428993",
"0.7441231",
"0.7440738",
"0.74302864",
"0.74263275",
"0.74242747",
"0.74196273",
"0.74132663",
"0.7402906",
"0.7401015",
"0.73992455",
"0.73860645",
"0.73846096",
"0.73846096",
"0.7383855",
"0.7383164",
"0.73820615",
"0.7381761",
"0.737802",
"0.73757076",
"0.7372557",
"0.73699754",
"0.73525375",
"0.7348692",
"0.734684",
"0.73459655",
"0.73417073",
"0.7341549",
"0.7337287",
"0.7334833",
"0.7329476",
"0.7328071",
"0.7319666",
"0.7314476",
"0.73082465",
"0.73082125",
"0.73037046",
"0.7295085",
"0.72950345",
"0.7291902",
"0.72876465",
"0.7281686",
"0.72797996",
"0.7276886",
"0.7274418",
"0.72723895",
"0.7269556",
"0.7268184",
"0.72673655",
"0.72588515",
"0.7257283",
"0.72572064",
"0.7253931",
"0.7250881",
"0.7248059",
"0.72465384"
]
| 0.0 | -1 |
Handle a click on the launch / pause button | private void buttonLaunchPause_MouseClicked(MouseEvent evt)
{
if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch")))
{
buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause"));
labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched"));
}
else if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause")))
{
buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch"));
labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Paused"));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pause_press(View view){\n //blur background\n blurEffect();\n //pause the game\n if (mSpaceGame.getState() instanceof SpaceGame.PausedGame){\n //mSpaceGame.setState(new SpaceGame.RunningGame());\n }else {\n mSpaceGame.setState(SpaceGame.PAUSED_STATE);\n }\n //start popup window\n Intent i = new Intent(SpaceActivity.this,Pop.class);\n i.putExtra(\"insignal\",\"pause\");\n startActivityForResult(i,0);\n overridePendingTransition(R.anim.zoom_in,R.anim.zoom_out);\n }",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OTHERBEACH;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OK;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = PROPER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}",
"private void btnPauseActionPerformed(java.awt.event.ActionEvent evt) {\n pause();\n }",
"default public void clickPlay() {\n\t\tremoteControlAction(RemoteControlKeyword.PLAY);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = USER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(gw.getPause()) {\r\n\t\t\tgw.turnOnPostion();\r\n\t\t}\r\n\t}",
"public void pauseApp()\r\n\t{\n\t}",
"protected void pauseApp() {\n\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(snake.getstatus() == snake.READY)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(snake.getstatus() == snake.RUNNING)\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"start\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.start);\n\t\t\t\t\tsnake.pause();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"pause\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.pause);\n\t\t\t\t\tsnake.start();\n\t\t\t\t}\n\t\t\t}",
"public void onClick(View v) {\n \tm_main.gameContinue();\n }",
"protected void pauseApp() {\n\t\t\r\n\t}",
"@Override\n public void onClick(View view) {\n handlePlaybackButtonClick();\n }",
"private void actionPause() {\n\t\tselectedDownload.pause();\n\t\tupdateButtons();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = BALLON;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmainFrame.mainToolBar.jtb_play.doClick();\n\t\t\t}",
"public void togglePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n public void onClick(View v) {\n\n switch (v.getId()) {\n\n case R.id.btn_PingPlay:\n Toast.makeText(getApplicationContext(), \"Start Button Clicked\", Toast.LENGTH_SHORT).show();\n RunTest();\n break;\n case R.id.btn_stop :\n StopTest();\n break;\n case R.id.btn_pause :\n PauseTest();\n break;\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tplayer.pause();\r\n\t\t\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t\tPoint mouseClick = SwingUtilities.convertPoint(this, e.getPoint(), view);\n\t\t\n\t\tnext = handleInGameMenu(mouseClick);\n\t\t\n\t\thandlePlay(mouseClick);\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }",
"public void showPauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void pressTVButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }",
"public void onPauseButtonClick(View view) {\n if (!isBound) return;\n\n // Pause the playback\n try {\n clipService.pause();\n isPlaying = false;\n } catch (RemoteException e) {\n handleKilledService();\n }\n\n updateUi();\n }",
"public void pauseApp() {\n try {\n if (myCanvas != null) {\n setGoCommand();\n systemPauseThreads();\n }\n } catch (Exception e) {\n errorMsg(e);\n }\n }",
"public void click() {\n this.lastActive = System.nanoTime();\n }",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new 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\tfinish();\n\t\t\t}\n\t\t});\n\t}",
"public void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.start:\n Action action;\n if (start.isChecked()) {\n start.setChecked(false);\n action = Action.start;\n } else {\n action = Action.stop;\n }\n controller.createAndPublishSystemActions(action);\n\t\t\tbreak;\n\t\tcase R.id.play:\n\t\t\tcontroller.createAndPublishPlayerActions(Action.play);\n\t\t\tbreak;\n\t\tcase R.id.next:\n controller.createAndPublishPlayerActions(Action.next);\n\t\t\tbreak;\n\t\tcase R.id.pause:\n controller.createAndPublishPlayerActions(Action.pause);\n\t\t\tbreak;\n\t\tcase R.id.prev:\n controller.createAndPublishPlayerActions(Action.prev);\n\t\t\tbreak;\n\t\t}\n\t\tsetCurrentTrack();\n\t}",
"public void onClick(View v) {\n \tm_main.gameStart();\n }",
"@Override\n public void onClick(View arg0) {\n if (mp.isPlaying()) {\n mp.pause();\n // Changing button image to play button\n play.setImageResource(R.drawable.ic_play_arrow);\n } else {\n // Resume song\n mp.start();\n // Changing button image to pause button\n play.setImageResource(R.drawable.ic_pause);\n mHandler.post(mUpdateTimeTask);\n }\n\n }",
"public void pressMainMenu() {\n }",
"private void setPlayButtonToPause() {\n NowPlayingInformation.setPlayButtonStatus(1);\n MainActivity.displayPlayButton();\n }",
"@Override\n public void pressTVButton() {\n System.out.println(\"Home: You must pick an app to show tv shows.\");\n }",
"public void onPauseButtonClick(View view) {\n\t\tLog.i(LOG_TAG, \"onPauseButtonClick\");\n\t\t\n\t\tif(!this.gameController.isTimerStarted()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfinal long timeLeft = this.gameController.getTimerDurationRemaining();\n\t\tthis.gameController.pauseTimer();\n\n\t\tDialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tgameController.restartTimer(timeLeft);\n\t\t\t}\n\t\t};\n\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n\t\tLayoutInflater inflater = this.getLayoutInflater();\n\n\t\tbuilder.setView(inflater.inflate(R.layout.dialog_paused_game, null))\n\t\t\t\t.setPositiveButton(\"OK\", dialogClickListener);\n\n\t\tbuilder.setCancelable(false);\n\n\t\tbuilder.show();\n\t}",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tsuper.mousePressed(e);\n\t\t\tint key = e.getButton();\n\t\t\tint y = e.getY();\n\t\t\tif (key == MouseEvent.BUTTON3 && y < Constants.BOTTOM - 40) {\n\t\t\t\tif (!isGamePaused && isGameActive) {\n\t\t\t\t\tpauseGame(\"PAUSE\");\n\t\t\t\t\tpaintThread.suspendThread(50);\n\n\t\t\t\t} else if (isGamePaused && isGameActive) {\n\t\t\t\t\tresumeGame();\n\t\t\t\t} else {\n\t\t\t\t\tstartGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n }",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n }",
"public void onClick(View v) {\n \t\t\tValues.click13=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel13.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"public void onClick(View v) {\n \t\t\tValues.click12=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel12.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tms.stop();\n\t\t\t\tmp.stop();\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAndroidTools.PlaySound(getBaseContext(), R.raw.animallearning);\n\t\t\t\tAndroidTools.wait(1500);\n\t\t\t\tIntent learningScreenIntent = new Intent(MainPage.this, LearningPage.class);\n\n\t\t\t\t//load screen\n\t\t\t\tMainPage.this.startActivity(learningScreenIntent);\n\t\t\t}",
"public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }",
"public void onClick(View v) {\n \t\t\tValues.click11=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,playlevel11.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Override\n public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\");\n }",
"public void onClick(View arg0) {\n\t\t\t\tif(!isPlay){\r\n\t\t\t\t\t//change to play button and stop view\r\n\t\t\t\t\thomeview_play_pause_button.setBackgroundDrawable(getResources().getDrawable(R.drawable.homeview_pause_button));\r\n\t\t\t\t\tisPlay = true;\r\n\t\t\t\t\tloadMediaPlayer();\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//change to pause button and play view\r\n\t\t\t\t\thomeview_play_pause_button.setBackgroundDrawable(getResources().getDrawable(R.drawable.homeview_play_button));\r\n\t\t\t\t\tisPlay = false;\r\n\t\t\t\t\tmMediaPlayer.stop();\r\n\t\t\t\t\t\r\n\t\t\t\t\tbuffer_lev1.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev2.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev3.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tbuffer_lev4.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n activityInterface.logEventSelectContent(\"restartButton\", \"restartButton\", MainActivity.CONTENT_TYPE_BUTTON);\n\n onClickRestart();\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(isplayheng==1){\n\t\t\t\t\t\t\tplay.setBackgroundResource(R.drawable.play);\n\t\t\t\t\t\t\tisplayheng=0;\n\t\t\t\t\t\tif(vvct.isShown()){\n\t\t\t\t\t\t\t vvct.pause();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tvideoview.pause();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tplay.setBackgroundResource(R.drawable.pause);\n\t\t\t\t\t\t\tisplayheng=1;\n\t\t\t\t\t\t\tif(vvct.isShown()){\n\t\t\t\t\t\t\t\t vvct.start();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tvideoview.start();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"private void playButton(ActionEvent e) {\n if (paused) {\n timer.start();\n paused = false;\n } else {\n paused = true;\n timer.stop();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAndroidTools.PlaySound(getBaseContext(), R.raw.animalmath);\n\t\t\t\tAndroidTools.wait(1200);\n\t\t\t\tIntent learningScreenIntent = new Intent(MainPage.this, MathPage.class);\n\n\t\t\t\t//load screen\n\t\t\t\tMainPage.this.startActivity(learningScreenIntent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tplay();\n\t\t\t}",
"public void onClick(View v) {\n \tm_main.gameQuit();\n }",
"public void onClick(View v) {\n\t\t\t\tstartActivity(new Intent (\"com.timurb.mobsy.MAPTRACKER\"));\n\t\t\t\tmpButtonClick.start();\n\t\t\t}",
"public void pauseApp() {\n\t\t//do nothing\n\t}",
"public void onPauseButtonPressed(View view){\n ((ImageView)(findViewById(R.id.pauseButton))).setVisibility(View.INVISIBLE);\n ((ImageView)(findViewById(R.id.playButton))).setVisibility(View.VISIBLE);\n timerService.onPauseRequest();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstopPlay(v);\n\t\t\t}",
"public void onClick(View v) {\n \t\t\tValues.click9=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel9Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"public void onClick(View v) {\n \t\t\tValues.click8=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel8Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"protected void pause(){}",
"public void run() {\n if (this.gui.getPauseState()) {\n this.gui.goHome();\n }\n }",
"@Override\n protected void clickAction(int numClicks) {\n exit(true);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(nextStep+1>=showflag.length)\r\n\t\t\t\t\treturn ;\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tif(showflag[nextStep]){\r\n\t\t\t\t\tnextStep +=1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=nextStep;i>=0;i--){\r\n\t\t\t\t\t\tif(showflag[i]){\r\n\t\t\t\t\t\t\tnextStep= i+1;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tif(nextStep==OK)\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\telse\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"public void clickContinue() {\n\t\tcontinueButton.click();\n\t}",
"private void handlePlaybackButtonClick() {\n // playback stopped or new station - start playback\n// if (mPlaybackState != PLAYBACK_STATE_STARTED) {\n// startPlayback();\n// }\n// // playback active - stop playback\n// else {\n// stopPlayback();\n// }\n\n if (mPlaybackState == PLAYBACK_STATE_STOPPED) {\n startPlayback();\n }\n // playback active - stop playback\n else {\n stopPlayback();\n }\n\n }",
"public void onClick(View v) {\n \t\t\tValues.click7=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel7Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"private void pause() {\n\t\t// TODO\n\t}",
"public void pauseXlet()\n {\n //(...)\n }",
"@Override\r\n public void onClick(View v) {\n startActivity(new Intent(TwoPlayer.this, MainMenu.class));\r\n finish();\r\n }",
"@Override\n public void onClick(View v) {\n Intent next = new Intent(HomeActivity.this,Playerinfo.class); //set intent for going to playerinfo class\n startActivity(next); // click to continue to the next activity\n //player.pause();\n }",
"private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }",
"@Override\n public void onClick(View v) {\n play(v);\n }",
"public void click() {\n System.out.println(\"Click\");\n }",
"public void onClick(View v) {\n \t\t\tValues.click19=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel19Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }",
"public void onClick(View v) {\n \t\t\tValues.click6=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel6Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"public void onClick(View v) {\n\t\tif(v==play_button)\n\t\t{\n\t\t\tisPause = false;\n\t\t\tSystem.out.println(strVideoPath);\n\t\t\tplayVideo(strVideoPath);\n\t\t}\n\t\telse if(v==pause_button){\n\t\t\tif(isPause == false){\n\t\t\t\tmyMediaPlayer.pause();\n\t\t\t\tisPause = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmyMediaPlayer.start();\n\t\t\t\tisPause = false;\n\t\t\t}\n\t\t}\t\t\n\t}",
"public void onClick(View v) {\n \t\t\tValues.click1=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel1Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"public void onClick(View v) {\n \t\t\tValues.click3=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel3Activity.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Override\n public void onClick(View view) {\n switch (view.getId())\n {\n case R.id.activity_slider_btn_skip:\n Intent loginIntent = new Intent(IntroductionActivity.this, MainActivity.class);\n loginIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(loginIntent);\n finish();\n break;\n }\n }",
"public void onClick(View v) {\n \t\t\tValues.click15=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel14.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@SuppressWarnings(\"deprecation\")\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (pauseB == false) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Time cannot be resumed until it's paused\", \"Warning!\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttime.resume();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\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}",
"public void pause() {\n }",
"@Override\n public void onClick(View v) {\n start();\n }",
"public void onClick(View v) {\n \t\t\tValues.click14=1;\r\n \t\t\tIntent i=new Intent(TimeOutActivity.this,Playlevel14.class);finish();\r\n \t\t\tstartActivity(i);\r\n \t\t\t//buttonSound.start();\r\n \t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}",
"void clickFmFromMenu();",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(ani.hasStarted())\n\t\t\t\t\t{\n\t\t\t\t\t\tani.cancel();\n\t\t\t\t\t}\n\t\t\t\t\tif(mediaPlayer.isPlaying())\n\t\t\t\t\t{\n\t\t\t\t\t\tmediaPlayer.stop();\n\t\t\t\t\t\tmediaPlayer.release();\n\t\t\t\t\t}\n\t\t\t\t\tfinish();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tMobclickAgent.onPause(this);\r\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tMobclickAgent.onPause(this);\r\n\t}"
]
| [
"0.69254005",
"0.68367225",
"0.6763703",
"0.6660945",
"0.6651207",
"0.66452396",
"0.6627521",
"0.6627185",
"0.66264737",
"0.65919286",
"0.6572371",
"0.6558488",
"0.6552803",
"0.6530082",
"0.65208167",
"0.6515249",
"0.6513239",
"0.6511848",
"0.6506116",
"0.65036434",
"0.6501457",
"0.6490029",
"0.64875513",
"0.63306344",
"0.63260067",
"0.6289074",
"0.6286927",
"0.62782675",
"0.6275116",
"0.6262648",
"0.6259614",
"0.62563103",
"0.6238586",
"0.6236691",
"0.62332404",
"0.6231285",
"0.6226447",
"0.62243986",
"0.62073076",
"0.61941844",
"0.6188452",
"0.6188452",
"0.6175112",
"0.6160063",
"0.61583483",
"0.61554825",
"0.6150864",
"0.6146464",
"0.6134734",
"0.61300564",
"0.6129736",
"0.61292267",
"0.6126432",
"0.6124331",
"0.6119252",
"0.611537",
"0.6112131",
"0.61036783",
"0.61027056",
"0.6102585",
"0.6096766",
"0.6090405",
"0.60800123",
"0.60780585",
"0.6071016",
"0.60703015",
"0.6063435",
"0.60632944",
"0.60629874",
"0.6053156",
"0.60525477",
"0.6050551",
"0.60492873",
"0.6046484",
"0.6042139",
"0.60307056",
"0.60304725",
"0.60245895",
"0.60135436",
"0.60134465",
"0.60134465",
"0.60134465",
"0.60134465",
"0.60134465",
"0.6012675",
"0.601245",
"0.60121876",
"0.6007207",
"0.6006117",
"0.6005169",
"0.6005023",
"0.60021347",
"0.5989835",
"0.5989688",
"0.5987779",
"0.598534",
"0.5984579",
"0.59835386",
"0.5981808",
"0.5981808"
]
| 0.7360278 | 0 |
Handle a click on the automatic / manual button | private void buttonAutoManual_MouseClicked(MouseEvent evt)
{
if (buttonAutoManual.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Auto")))
{
buttonAutoManual.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Manual"));
labelAuthMode.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAuthMode.Auto"));
}
else if (buttonAutoManual.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Manual")))
{
buttonAutoManual.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Auto"));
labelAuthMode.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAuthMode.Manual"));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"public void clickYes ();",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\trb.performClick();\n\t\t\t\t\t}",
"public void click() {\n\t\tif(toggles) {\n\t\t\tvalue = (value == 0) ? 1 : 0;\t// flip toggle value\n\t\t}\n\t\tupdateStore();\n\t\tif(delegate != null) delegate.uiButtonClicked(this);\t// deprecated\n\t}",
"public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}",
"void clickSomewhereElse();",
"public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}",
"public void buttonClicked();",
"@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }",
"@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }",
"@Override\r\n public void afterClickOn(final WebElement arg0, final WebDriver arg1) {\n\r\n }",
"public void performClick() {\n\t\tgetWrappedElement().click();\n\t}",
"@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }",
"@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}",
"public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}",
"@Override\n public boolean performClick() {\n return super.performClick();\n }",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"@DISPID(-2147412104)\n @PropGet\n java.lang.Object onclick();",
"@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tclickSingle();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickAutoGrease();\n\t\t\t}",
"public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}",
"@Override\r\n\tpublic void onClick() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONCLICK);\r\n\t}",
"public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}",
"private void when_clickButtonVoice() {\n onView(withId(R.id.buttonVoice))\n .perform(click());\n }",
"public void onClicked();",
"public void settingBtnClick() {\n\t}",
"@Override\n\tpublic void onClick() {\n\t\t\n\t}",
"public void click() {\n System.out.println(\"Click\");\n }",
"void issuedClick(String item);",
"@Override\n\tpublic void afterClickOn(WebElement element, WebDriver driver) {\n\t\t\n\t}",
"public final void click() {\n getUnderlyingElement().click();\n }",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource().equals(btnQuayLai)){\n btnquaylaiclick();}\n }",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}",
"@Override\n public void fw_javascriptClick() {\n WrapsDriver wd = (WrapsDriver) element;\n ((JavascriptExecutor) wd.getWrappedDriver()).executeScript(\"arguments[0].click();\", element);\n }",
"void click(int slot, ClickType type);",
"private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new 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\tfinish();\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\npublic void afterClickOn(WebElement arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}",
"@Override\r\n public void mouseClicked(MouseEvent e) {\n System.out.println(e.getButton());\r\n\r\n // MouseEvent.BUTTON3 es el boton derecho\r\n }",
"public void singleClick() throws Exception {\n }",
"public void singleClick() throws Exception {\n }",
"@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t}",
"@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}",
"void onClick();",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}",
"private void onClick() {\n\t\tbtnTocash.setOnClickListener(this);\n\t}",
"public void onButtonAPressed();",
"@FXML\n private void mouseClicked(MouseEvent event) {\n checkClick(event);\n }",
"@When(\"User clicks on Find Details button\")\r\n\tpublic void user_clicks_on_find_details_button() \r\n\t{\n\t driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t}",
"@Override\r\n public void onClick(ClickEvent event) {\n }",
"public void execute(Element element) {\n if (\"true\".equals(element.getStyle().getProperty(\"visible\"))\n && element.getState().isRelease()) {\n String method = element.getStyle().getProperty(\"onClick\");\n String controller = element.getUI().getController();\n if (method != null && controller != null) {\n UIUtil.invokeClickMethod(controller, method);\n }\n }\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\n\tpublic void setOnClick() {\n\n\t}",
"@When(\"usert clicks on continue\")\r\n\tpublic void usert_clicks_on_continue() {\n\tdriver.findElement(By.id(\"btn\")).click();\r\n\t\r\n}",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"@Override\r\n public void onClick(final DialogInterface dialog, final int whichButton) {\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbotonOnClick();\n\t\t\t}",
"@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"String handleButtonPress(Button button);",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"public void clickOnEnrollNowButton() {\n\t\tif(enrollNowButton.isEnabled()) {\n\t\twaitAndClick(enrollNowButton);\n\t\t}\n\t}",
"public void clickOnSaveChangesButton() {\r\n\t\tprint(\"Click on Save Changes Button\");\r\n\t\tlocator = Locator.MyTrader.Save_Changes_Button.value;\r\n\t\tclickOn(locator);\r\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t}",
"private void btnModificarMouseClicked(java.awt.event.MouseEvent evt) {\n }",
"public void clickDemandSideManagement();",
"public void clickAutoInsurance() {\n\t\tselectAutoInsurance.click();\n\t}",
"public void clickgoButton(){\n \n \t \n driver.findElement(By.cssSelector(goButton)).click();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tactualizarOnClick();\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}",
"private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}",
"void clickAmFromMenu();",
"@Override\r\n\tpublic void clickObject() {\n\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickFN();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public void trigger() {\n button.release(true);\n }",
"public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"OK\");\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}",
"@SuppressWarnings(\"EmptyMethod\")\n\t@Override\n public boolean performClick() {\n return super.performClick();\n }",
"@Override\n\tpublic void Control() {\n\t\trl_back_otherfee.setOnClickListener(this);\n\t}",
"void buttonPressed(ButtonType type);",
"private void button1MouseClicked(MouseEvent e) {\n\t}",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"public void clickOnDeleteButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-danger.ant-btn-circle\"), MEDIUMWAIT);\r\n\t}",
"default public void clickDown() {\n\t\tremoteControlAction(RemoteControlKeyword.DOWN);\n\t}"
]
| [
"0.7182985",
"0.7024424",
"0.69722575",
"0.69497937",
"0.69073963",
"0.68296444",
"0.6786247",
"0.67556566",
"0.6754905",
"0.67371225",
"0.6677366",
"0.66561496",
"0.6652468",
"0.66343784",
"0.6587337",
"0.65862525",
"0.6583934",
"0.65760213",
"0.6574094",
"0.6571401",
"0.65671873",
"0.652954",
"0.65087014",
"0.6507149",
"0.64891195",
"0.6480748",
"0.64734966",
"0.6466027",
"0.64646983",
"0.64623106",
"0.645736",
"0.64559335",
"0.644361",
"0.644239",
"0.644223",
"0.644223",
"0.640116",
"0.6390874",
"0.6387873",
"0.63803643",
"0.6379411",
"0.6374284",
"0.6355943",
"0.635172",
"0.63497347",
"0.63497347",
"0.6344349",
"0.6343457",
"0.63432413",
"0.63404065",
"0.6340222",
"0.6338249",
"0.6335894",
"0.6329778",
"0.6327687",
"0.63265955",
"0.6323343",
"0.6319924",
"0.6313812",
"0.63133234",
"0.6309412",
"0.6309196",
"0.6307362",
"0.63052225",
"0.63047177",
"0.63011444",
"0.63011444",
"0.63011444",
"0.6300371",
"0.6294827",
"0.6294334",
"0.6292874",
"0.6284567",
"0.6280887",
"0.6277122",
"0.6272618",
"0.6272334",
"0.62714225",
"0.6266339",
"0.6259003",
"0.62566876",
"0.62528884",
"0.62524897",
"0.62470156",
"0.62467587",
"0.62421334",
"0.6237866",
"0.6237866",
"0.6237866",
"0.6237866",
"0.6230331",
"0.62301797",
"0.6230027",
"0.62295246",
"0.6227631",
"0.6227082",
"0.6224939",
"0.62232876",
"0.6223158",
"0.6216035"
]
| 0.67556226 | 8 |
This method is called to change the displayed texts depending on the selected locale | private void initTextsI18n()
{
// Remember the different indentations to integrate better in different OS's
String notMacLargeIndentation = (!OSUtil.IS_MAC ? " " : "");
String notMacSmallIndentation = (!OSUtil.IS_MAC ? " " : "");
String linuxLargeIndentation = (OSUtil.IS_LINUX ? " " : "");
String linuxSmallIndentation = (OSUtil.IS_LINUX ? " " : "");
this.setLocale(Locale.FRANCE);
// this.setLocale(Locale.UK);
I18nUtil.getInstance().setLocale(this.getLocale().getLanguage(), this.getLocale().getCountry());
this.buttonAutoManual.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Manual"));
this.buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause"));
this.labelAuthMode.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAuthMode.Auto"));
this.labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched"));
this.labelConnectionState.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Disconnected"));
this.labelNotifications.setText(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelNotifications"));
this.labelProfile.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelProfile.Color")));
this.labelGroupSeparator.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelGroupSeparator.Color")));
this.labelConnectionState.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Color")));
this.menuFile.setText(notMacLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile") + notMacSmallIndentation);
this.menuProfiles.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles") + notMacSmallIndentation);
this.menuHelp.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp") + notMacSmallIndentation);
this.menuFile_Parameters.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters"));
this.menuFile_Quit.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit"));
this.menuHelp_Update.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update"));
this.menuHelp_Doc.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc"));
this.menuHelp_FAQ.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ"));
this.menuHelp_About.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About"));
this.popupMenu_ShowApp.setLabel(linuxSmallIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_ShowApp"));
this.popupMenu_PauseStart.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause"));
this.popupMenu_Profiles.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Profiles"));
this.popupMenu_Logs.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Logs"));
this.popupMenu_Parameters.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Parameters"));
this.popupMenu_Quit.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Quit"));
this.setMenuBarMnemonics();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateLocale() {\r\n\t\tsuper.updateLocale();\r\n\t}",
"protected void localeChanged() {\n\t}",
"private void setLanguage() {\n ResourceBundle labels = ResourceBundle.getBundle\n (\"contactmanager.Contactmanager\", Locale.getDefault()); \n this.setTitle(labels.getString(\"title\"));\n }",
"public void componentsLocaleChanged() {\n\t\ttextRes = PeralexLibsBundle.getResource();\n\n\t\tlocaleChanged();\n\t}",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void setLanguage() {\n if (Value.language_flag == 0) {\n title.setText(title_text);\n back.setText(\"back\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 1) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 2) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n }\n }",
"void changeLanguage() {\n\n this.currentLocaleIndex++;\n if(this.currentLocaleIndex > this.locales.size() - 1) this.currentLocaleIndex = 0;\n this.updateBundle();\n }",
"private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}",
"public void applyI18n(){\n if (lastLocale != null && \n lastLocale == I18n.getCurrentLocale()) {\n return;\n }\n lastLocale = I18n.getCurrentLocale();\n \n strHelpLabel= I18n.getString(\"label.help1\")+ version;\n strHelpLabel+=I18n.getString(\"label.help2\");\n strHelpLabel+=I18n.getString(\"label.help3\");\n strHelpLabel+=I18n.getString(\"label.help4\");\n strHelpLabel+=I18n.getString(\"label.help5\");\n strHelpLabel+=I18n.getString(\"label.help6\");\n strHelpLabel+=I18n.getString(\"label.help7\");\n strHelpLabel+=I18n.getString(\"label.help8\");\n helpLabel.setText(strHelpLabel);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetLocale(\"en\");\n\t\t\t}",
"void localizationChanged();",
"void localizationChanged();",
"void localizationChanged();",
"public void updateLanguage() {\n this.title.setText(LanguageStringMap.get().getMap().get(TITLE_KEY));\n this.skinSwitcher.updateLanguage();\n this.langSwitcher.updateLanguage();\n this.pawnSwitcher.updateLanguage();\n this.musicManager.updateLanguage();\n this.back.setText(LanguageStringMap.get().getMap().get(BACK_KEY));\n }",
"@Override\n public void updateLanguage() {\n if (isEnglish) {\n languageButton.setText(R.string.alien_painter_language_chinese);\n exitButton.setText(R.string.alien_painter_exit);\n retryButton.setText(R.string.alien_painter_retry);\n scoreboardButton.setText(R.string.alien_painter_scoreboard_button);\n painterTextViewInstructions.setText(R.string.alien_painter_instructions);\n replayButton.setText(R.string.alien_painter_replay);\n } else {\n languageButton.setText(R.string.alien_painter_language_english);\n exitButton.setText(R.string.alien_painter_exit_chinese);\n retryButton.setText(R.string.alien_painter_retry_chinese);\n scoreboardButton.setText(R.string.alien_painter_scoreboard_button_chinese);\n painterTextViewInstructions.setText(R.string.alien_painter_instructions_chinese);\n replayButton.setText(R.string.alien_painter_replay_chinese);\n }\n }",
"private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}",
"public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}",
"@Override\n public void setText(String englishText) {\n\n }",
"public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }",
"public static void display(){\r\n String baseName = \"res.Messages\";\r\n ResourceBundle messages = ResourceBundle.getBundle(baseName, Locale.getDefault());\r\n System.out.println(messages.getString(\"locales\"));\r\n\r\n Locale available[] = Locale.getAvailableLocales();\r\n for(Locale locale : available) {\r\n System.out.println(locale.getDisplayCountry() + \"\\t\" + locale.getDisplayLanguage(locale));\r\n }\r\n }",
"void localizationChaneged();",
"public void initialize()\n {\n Locale locale = Locale.getDefault();\n var rb = ResourceBundle.getBundle(\"translation\",locale);\n\n customerPerCountryLabel.setText(rb.getString(\"CustomersPerCountry\"));\n backButton.setText(rb.getString(\"Back\"));\n\n\n }",
"public void updateLanguage() {\n buttonPlay.setText(GameConfiguration.getText(\"playButton\"));\n buttonSettings.setText(GameConfiguration.getText(\"settingsButton\"));\n buttonHighScores.setText(GameConfiguration.getText(\"highScores\"));\n }",
"public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }",
"private void setLocale() {\n\t\tLocale locale = new Locale(this.getString(R.string.default_map_locale));\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\t}",
"private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetLocale(\"vi\");\n\t\t\t}",
"public abstract Builder setDisplayNamesLocale(String value);",
"int getLocalizedText();",
"public void refreshLanguage() {\n\t\tbutton.setText(\"<html><p>\"+Translation.SEARCH.getTranslation(PropertiesWorker.language)+\"</p></html>\");\n\t\trefresh.setText(\"<html><p>\"+Translation.REFRESH.getTranslation(PropertiesWorker.language)+\"</p></html>\");\n\t}",
"@FXML\r\n private void handleAboutUs(ActionEvent event) throws Exception{\n Main.replaceSceneContent(\"AdvanceCalculator.fxml\",\"AdvanceCalculator.css\");\r\n \r\n // getLocaleText();\r\n }",
"public void temp() {\n\t\t\n\t\tString language = locale.getLanguage();\n\t\tSystem.out.println(language);\n\t\t\n\t\tif(language.equals(\"ru\")) {\n\t\t\tsetLocale(new Locale(\"en\", \"US\"));\n\t\t} else {\n\t\t\tsetLocale(new Locale(\"ru\", \"UA\"));\n\t\t}\n\t}",
"private void init() {\n\t\t\n\t\tPropertiesManager propertiesManager = PropertiesManager.getInstance();\n\t\tFile localeDirectory = new File(propertiesManager.getProperty(\"locale.directory\", LOCALE_DIRECTORY));\n\n\t\tlocales = new ArrayList<Locale>();\n\n\t\ttry {\n\t\t\t\n\t\t\tClassUtils.addClassPathFile(localeDirectory);\n\t\t\t\n\t\t\t// Находим все доступные локали\n\t\t\tlocales = findAvailableLocales(localeDirectory);\n\n\t\t} catch(Exception ignore) {}\n\n\t\tfallbackLocale = Locale.ENGLISH;\n\t\tcontrol = new Control();\n\n\t\tif(!locales.contains(Locale.ENGLISH)) {\n\t\t\tlocales.add(0, fallbackLocale);\n\t\t}\n\n\t\tdefaultLocale = locales.get(locales.indexOf(Locale.ENGLISH));\n\t\t\n\t\tString language = propertiesManager.getProperty(\"locale.language\", \"\");\n\t\tString country = propertiesManager.getProperty(\"locale.country\", \"\");\n\t\tString variant = propertiesManager.getProperty(\"locale.variant\", \"\");\n\t\t\n\t\tLocale locale = new Locale(language, country, variant);\n\t\t\n\t\tif(locales.contains(locale)) {\n\t\t\tlocale = locales.get(locales.indexOf(locale));\n\t\t} else {\n\t\t\tlocale = defaultLocale;\n\t\t}\n\n\t\tsetLocale(locale);\n\t\t\n\t\tif(FontEditor.DEBUG) {\n\t\t\t\n\t\t\tfor(Locale l : locales) {\n\t\t\t\tSystem.out.println(\"locale found -> \" + l.getDisplayLanguage(Locale.ENGLISH));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Total locale(s) found: \" + locales.size());\n\t\t\tSystem.out.println();\n\t\t}\n//System.out.println(\">>> \" + getValue(\"shitd\"));\n\t}",
"@Test\n\t@PerfTest(invocations = 10)\n\tpublic void defLang() {\n\t\tl.setLocale(l.getLocale().getDefault());\n\t\tassertEquals(\"Register\", Internationalization.resourceBundle.getString(\"btnRegister\"));\n\t}",
"public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }",
"private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }",
"public static void setLocale(Locale locale) {\n// Recarga las entradas de la tabla con la nueva localizacion \n RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n}",
"public void showLanguage(String which){\n switch (which) {\n case \"en\":\n locale = new Locale(\"en\");\n config.locale = locale;\n //MainActivity.language = 0;\n languageToLoadWizard=\"en\";\n break;\n case \"sw\":\n locale = new Locale(\"sw\");\n config.locale = locale;\n //MainActivity.language = 1;\n languageToLoadWizard=\"sw\";\n break;\n case \"es\":\n locale = new Locale(\"es\");\n config.locale = locale;\n languageToLoadWizard=\"es\";\n break;\n }\n getResources().updateConfiguration(config, null);\n Intent refresh = new Intent(Language.this, Wizard.class);\n startActivity(refresh);\n finish();\n }",
"public void setLocale(Locale locale) {\n fLocale = locale;\n }",
"private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}",
"@Override\n public void setLocale(Locale arg0) {\n\n }",
"public void setPreferredLocale(Locale locale);",
"public void changeLanguage(View view) {\n\n // Create Dialog\n final Dialog dialog = new Dialog(this);\n\n dialog.setTitle(R.string.language);// Doesn't work\n dialog.setContentView(R.layout.fragment_language_fragment);\n\n // Gets RadioGroup ID from dialog which contains the layout that hold the RadioGroup\n RadioGroup rg = dialog.findViewById(R.id.radiogroup);\n rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n switch (checkedId){\n case R.id.en: {// English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n case R.id.es: { // Spanish\n String languageToLoad = \"es\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\n }\n break;\n case R.id.ja: {// Japanese\n String languageToLoad = \"ja\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n default: {// In case check id gives weired int, set to English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n }\n // Refreshes Activity\n Intent intent = new Intent(getBaseContext(),WelcomePage.class);\n finish();\n startActivity(intent);\n }\n });\n\n //Show the dialog\n dialog.show();\n }",
"protected void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public abstract String getTitle(Locale locale);",
"@FXML\n private void btnNederlandsOnAction(ActionEvent event) {\n \n locale = new Locale(\"\");\n \n }",
"public void updateI18N() {\n\t\t/* Update I18N in the menuStructure */\n\t\tappMenu.updateI18N();\n\t\t/* Pack all */\n\t\tLayoutShop.packAll(shell);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetLocale(\"jp\");\n\t\t\t}",
"@Override\n\tpublic void setLocale(Locale loc) {\n\t}",
"private void changeLanguage(Language lang) {\n this.resources = ResourceBundle.getBundle(UIController.RESOURCE_PATH + lang);\n uiController.setLanguage(lang);\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n uiController.setTitle(resources.getString(\"Launch\"));\n }",
"@Override\n protected void translateFields(View view, String languageString) {\n Context context = view.getContext();\n ((TextView) view.findViewById(R.id.first_page_text_title))\n .setText(LanguageManager.Intro.getTextTitle(context, languageString));\n ((TextView) view.findViewById(R.id.first_page_text))\n .setText(LanguageManager.Intro.getText(context, languageString));\n ((Button) view.findViewById(R.id.first_page_test_button))\n .setText(LanguageManager.Intro.getButtonText(context, languageString));\n }",
"public static void initialSystemLocale(Context context)\n {\n LogpieSystemSetting setting = LogpieSystemSetting.getInstance(context);\n if (setting.getSystemSetting(KEY_LANGUAGE) == null)\n {\n String mLanguage = Locale.getDefault().getLanguage();\n if (mLanguage.equals(Locale.CHINA) || mLanguage.equals(Locale.CHINESE))\n {\n setting.setSystemSetting(KEY_LANGUAGE, CHINESE);\n }\n else\n {\n setting.setSystemSetting(KEY_LANGUAGE, ENGLISH);\n }\n }\n }",
"public void setLocale (\r\n String strLocale) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public String getLanguageMenuText() {\r\n\t\treturn \"语言\";\r\n\t}",
"public void setLocale(Locale locale) {\n\n\t}",
"@Override\n public String getContentLang() {\n return \"en\";\n }",
"public void updateTextLabel() {\n waktu.setText(dateFormat.format(c.getTime()));\n }",
"public void setLocale(Locale locale)\n {\n this.locale = locale;\n }",
"public void setLocale(Locale l) {\n if (!initialized)\n super.setLocale(l);\n else {\n locale = l;\n initNames();\n }\n }",
"private void ChangeLanguage(String languageCode) {\n Context context = LocaleHelper.setLocale(getContext(), languageCode);\n Resources resources = context.getResources();\n\n btn_Fipdetailscontinue.setText(resources.getString(R.string.Continue));\n btn_Home.setText(resources.getString(R.string.Home));\n btn_Info.setText(resources.getString(R.string.Info));\n btn_Back.setText(resources.getString(R.string.Back));\n tv_driverdetailslicenseNo.setText(resources.getString(R.string.LicenseNumber));\n tv_driverdetailsexpiryDate.setText(resources.getString(R.string.ExpiryDate));\n tv_driverdetailsPlateSource.setText(resources.getString(R.string.PlateSource));\n tv_driverdetailsticketNo.setText(resources.getString(R.string.TicketNumber));\n tv_driverdetailsbirthYear.setText(resources.getString(R.string.BirthYear));\n tv_driverDetails.setText(resources.getString(R.string.Details));\n tv_txtdriverDetails.setText(resources.getString(R.string.Details));\n tv_Seconds.setText(resources.getString(R.string.seconds));\n //Setting Title\n if (Title.contains(\"Lost\") || Title.contains(\"Damage\"))\n tvrtaServiceTitle.setText(resources.getString(R.string.DrivingLicenseLossDamage));\n else\n tvrtaServiceTitle.setText(resources.getString(R.string.DrivingLicenseRenewal));\n }",
"private void setLocale( String localeName )\r\n\t{\r\n\t\tConfiguration conf = getResources().getConfiguration();\r\n\t\tconf.locale = new Locale( localeName );\r\n\t\t\r\n\t\tsetCurrentLanguage( conf.locale.getLanguage() );\r\n\r\n\t\tDisplayMetrics metrics = new DisplayMetrics();\r\n\t\tgetWindowManager().getDefaultDisplay().getMetrics( metrics );\r\n\t\t\r\n\t\t// the next line just changes the application's locale. It changes this\r\n\t\t// globally and not just in the newly created resource\r\n\t\tResources res = new Resources( getAssets(), metrics, conf );\r\n\t\t// since we don't need the resource, just allow it to be garbage collected.\r\n\t\tres = null;\r\n\r\n\t\tLog.d( TAG, \"setLocale: locale set to \" + localeName );\r\n\t}",
"public void setTranslate (String File,String Close, String German, String English, String Settings, String Language)\n\t{\n\t\t fileMenu.setText(File);\n\t\t settingsMenu.setText(Settings);\n\t\t menuItem.setText(Close);\n\t\t menuItemEnglish.setText(English);\n\t\t menuItemGerman.setText(German);\n\t\t settingsSubMenu.setText(Language);\n\t\t \n\t}",
"@RequestMapping(value = \"/localechange/{locale}\", method = RequestMethod.GET)\r\n public String changeLocale(@PathVariable(\"locale\") String locale, HttpServletRequest request, HttpServletResponse response) {\r\n if (locale != null) {\r\n if (locale.equals(\"de\")) {\r\n RequestContextUtils.getLocaleResolver(request).setLocale(request, response, Locale.GERMAN);\r\n } else {\r\n RequestContextUtils.getLocaleResolver(request).setLocale(request, response, Locale.ENGLISH);\r\n }\r\n }\r\n return \"redirect:/home\";\r\n }",
"void onLanguageSelected();",
"public void englishlanguage() {\nSystem.out.println(\"englishlanguage\");\n\t}",
"private void setText(String language, String color){\n\n switch (language)\n {\n case(\"French\"):\n displayText.setText(\"Bonjour le monde\");\n break;\n case(\"Spanish\"):\n displayText.setText(\"Hola Mundo\");\n break;\n case(\"German\"):\n displayText.setText(\"Hallo Welt\");\n break;\n }\n\n switch (color)\n {\n case(\"Blue\"):\n displayText.setTextColor(Color.BLUE);\n break;\n case(\"Green\"):\n displayText.setTextColor(Color.GREEN);\n break;\n case(\"Yellow\"):\n displayText.setTextColor(Color.YELLOW);\n break;\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tconfig.locale = Locale.SIMPLIFIED_CHINESE;\n\t\t\t\tresources.updateConfiguration(config, dm);\n\t\t\t\tonCreate(null);\n\t\t\t}",
"private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }",
"public void setLanguageEnglishButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageEnglishButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageEnglishButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void applyI18n(){\r\n // Start autogenerated code ----------------------\r\n jButton1.setText(I18n.getString(\"oracleOptions.button1\",\"Save\"));\r\n jButton2.setText(I18n.getString(\"oracleOptions.button2\",\"Cancel\"));\r\n jLabel1.setText(I18n.getString(\"oracleOptions.label1\",\"Language\"));\r\n jLabel2.setText(I18n.getString(\"oracleOptions.label2\",\"Territory\"));\r\n // End autogenerated code ----------------------\r\n ((javax.swing.border.TitledBorder)jPanel1.getBorder()).setTitle(I18n.getString(\"oracleOptions.panelBorder.OracleOptions\",\"OracleOptions\") );\r\n }",
"public void setLocalizedLanguageMenuItems() {\n\t\tif (!userMenuButton.getText().equals(\"\")) {\n\t\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\t\tmenu1.setText(bundle.getString(\"mVmenu1\"));\n\t\t\tmenu2.setText(bundle.getString(\"mVmenu2\"));\n\t\t}\n\t}",
"public final native ApplicationFormItemTexts getItemTexts(String locale) /*-{\n\t\tif(!(locale in this.i18n)){\n\t\t\tthis.i18n[locale] = {locale: locale, errorMessage : \"\", help : \"\", label : \"\", options : \"\"};\n\t\t}\n\t\treturn this.i18n[locale];\n\t}-*/;",
"public void setLocale(Locale locale) {\r\n this.locale = locale;\r\n }",
"private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}",
"String getLocalization();",
"private void initLanguage() {\n try {\n Resources resources = getApplicationContext().getResources();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n Configuration configuration = resources.getConfiguration();\n Locale locale = new Locale(\"es\", \"ES\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n configuration.setLocale(locale);\n } else {\n //noinspection deprecation\n configuration.locale = locale;\n }\n resources.updateConfiguration(configuration, displayMetrics);\n } catch (Throwable throwable) {\n Log.d(TAG, \"Couldn't apply ES language.\", throwable);\n }\n }",
"@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}",
"public void setLanguageGermanButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageGermanButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageGermanButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void loadLocale() {\n\n\t\tSystem.out.println(\"Murtuza_Nalawala\");\n\t\tString langPref = \"Language\";\n\t\tSharedPreferences prefs = getSharedPreferences(\"CommonPrefs\",\n\t\t\t\tActivity.MODE_PRIVATE);\n\t\tString language = prefs.getString(langPref, \"\");\n\t\tSystem.out.println(\"Murtuza_Nalawala_language\" + language);\n\n\t\tchangeLang(language);\n\t}",
"public static void localize(String text) {\n }",
"private void displayReplay() {\n if (isEnglish)\n Toast.makeText(this, REPLAY, Toast.LENGTH_LONG).show();\n else\n Toast.makeText(this, REPLAY_CHINESE, Toast.LENGTH_LONG).show();\n }",
"String getCurrentLocaleString();",
"public void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public Future<String> locale() throws DynamicCallException, ExecutionException {\n return call(\"locale\");\n }",
"public void onActionLocaleChanged() {\n Log.d(this.TAG, \"onActionLocaleChanged: no change\");\n }",
"public void refreshLocale() {\n this.mWifiTracker.refreshLocale();\n }",
"public void setApplicationLanguage() {\n\t\tinitializeMixerLocalization();\n\t\tinitializeRecorderLocalization();\n\t\tinitializeMenuBarLocalization();\n\t\tsetLocalizedLanguageMenuItems();\n\t\tboardController.setLocalization(bundle);\n\t\tboardController.refreshSoundboard();\n\t}",
"public void setDisplayTextLabel (boolean value)\r\n {\r\n displayTextLabelInformation_ = value;\r\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 }",
"private void verifyTextAndLabels(){\n common.explicitWaitVisibilityElement(\"//*[@id=\\\"content\\\"]/article/h2\");\n\n //Swedish labels\n common.timeoutMilliSeconds(500);\n textAndLabelsSwedish();\n\n //Change to English\n common.selectEnglish();\n\n //English labels\n textAndLabelsEnglish();\n }",
"static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}",
"public static void displayDate(Locale locale)\n\t{\n\t\tDateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, locale);\n\t\tDate currentDate = new Date();\n\t\tString date = dateFormat.format(currentDate);\n\t\tSystem.out.println(\"Date value in \" + locale + \" locale = \" + date);\n\t}",
"private void updateResourceText() {\n String resourceTextString=\"Available resources: \\n\";\n boolean none=true;\n for (Resource resource :resources.values()) {\n if (resource.getStock()>0) {\n resourceTextString+=resource.getName()+\": \"+resource.getStock()+\"\\n\";\n none=false;\n }\n }\n if (none) {resourceTextString=\"\";}\n resourceText.setText(resourceTextString);\n }",
"public void localize(){\n String file=System.getProperty(\"user.home\")+ File.separator + \"rex.properties\";\n Properties rexProp = new Properties();\n try{\n\n rexProp.load(new FileInputStream(new File(file)));\n \n }catch(Exception e){\n S.out(\"Error reading rex.properties file\"); \n }\n strLanguage= rexProp.getProperty(\"Language\");\n \n if (strLanguage!=\"\"){\n Locale oLang= new Locale(strLanguage);\n I18n.setCurrentLocale(oLang);\n }\n else{\n I18n.setCurrentLocale(Locale.getDefault()); //set default locale\n }\n\n }",
"private void changeLanguage(String newLanguage){\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"1\");\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"2\");\n\t}\n\t\n\t/*\n\tprefLanguage = ((GameActivity) activity).getPreference(\"language\", \"1\");\n\tif (prefLanguage.contentEquals(\"1\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t} else if (prefLanguage.contentEquals(\"2\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t}\n\t*/\n\t\n\t\n\t\n\t/*\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t\tlocalLanguage=0;\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t\tlocalLanguage=1;\n\t}\n\t*/\n\t\n}",
"public void doLocalization() {\r\n\t\tdoLocalization(0);\r\n\t\t//do localization like it's in the corner 0\r\n\t\tnavigation.turnTo(0);\r\n\t}",
"public Lab2_InternationalizedWarehouse() {\n enLocale = new Locale(\"en\", \"US\");\n plLocale = new Locale(\"pl\", \"PL\");\n initComponents();\n initStorage();\n itemsList = new ItemsList();\n plLangRadioButton.doClick();\n loadButton.doClick();\n langButtonGroup.add(plLangRadioButton);\n langButtonGroup.add(enLangRadioButton);\n\n }",
"protected void reloadText() {\n this.chart.getPlot().setNoDataMessage(translator.translate(\"noDataAvailable\"));\n //this.chart.setTitle(translator.translate(key));\n //TODO extend method for x and y title exchange\n }",
"public boolean enableLocaleOverride( ) {\n\t\ttry {\n\t\t\tURIBuilder builder = new URIBuilder( I18N_URL );\n\t\t\tbuilder.addParameter( \"locale\", \"en_US\" );\n\t\t\tHttpGet get = new HttpGet( builder.build( ).toURL( ).toString( ) );\n\t\t\tString result = EntityUtils.toString( this.httpClient( ).execute( get ).getEntity( ) ).trim( );\n\t\t\treturn result.contains(\"Succeeded\" );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new FitbitExecutionException( e );\n\t\t}\n\t}",
"private void setDefaultLanguage() {\n this.setLanguage(Locale.getDefault().getDisplayLanguage());\n }"
]
| [
"0.675812",
"0.6737018",
"0.6719466",
"0.66676563",
"0.6604539",
"0.653099",
"0.6527207",
"0.6496113",
"0.64868563",
"0.6445351",
"0.6445351",
"0.6445351",
"0.6399045",
"0.6394162",
"0.63443387",
"0.63419497",
"0.633602",
"0.6314103",
"0.6290291",
"0.6277008",
"0.62733364",
"0.6254563",
"0.6215163",
"0.6193798",
"0.6182493",
"0.61613405",
"0.615055",
"0.6141549",
"0.6127605",
"0.60294914",
"0.6016103",
"0.60146356",
"0.60142756",
"0.60039705",
"0.6001554",
"0.5987295",
"0.59759945",
"0.5966702",
"0.59135103",
"0.5896697",
"0.5893717",
"0.58902144",
"0.58867484",
"0.5860383",
"0.5855385",
"0.5843867",
"0.58413005",
"0.5840819",
"0.58378047",
"0.5837573",
"0.5811532",
"0.5789305",
"0.57889104",
"0.5788129",
"0.57854",
"0.5780136",
"0.5769414",
"0.57585454",
"0.5743134",
"0.57425755",
"0.57289124",
"0.571171",
"0.57114774",
"0.5709408",
"0.5709287",
"0.5701046",
"0.5699115",
"0.56985277",
"0.56892484",
"0.5673488",
"0.5666126",
"0.56601936",
"0.56302965",
"0.5626194",
"0.5619222",
"0.5612082",
"0.56068575",
"0.559824",
"0.55973613",
"0.5595101",
"0.55949473",
"0.5594424",
"0.5594424",
"0.5593416",
"0.5592944",
"0.5576195",
"0.55755275",
"0.556825",
"0.5554106",
"0.55376166",
"0.55210894",
"0.5515779",
"0.550392",
"0.5494834",
"0.5494071",
"0.5488854",
"0.54844326",
"0.54785895",
"0.5473251",
"0.5460075"
]
| 0.6635429 | 4 |
Set mnemonics to the menus of the menu bar (with the first letter of the captions) No mnemonic on Mac OS | private void setMenuBarMnemonics()
{
if (!OSUtil.IS_MAC)
{
// Menus
if (this.menuFile.getText().length() > 0)
this.menuFile.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile").charAt(0));
if (this.menuProfiles.getText().length() > 0)
this.menuProfiles.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles").charAt(0));
if (this.menuHelp.getText().length() > 0)
this.menuHelp.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp").charAt(0));
// File sub menus
if (this.menuFile_Parameters.getText().length() > 0)
this.menuFile_Parameters.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters").charAt(0));
if (this.menuFile_Quit.getText().length() > 0)
this.menuFile_Quit.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit").charAt(0));
// Help sub menus
if (this.menuHelp_Update.getText().length() > 0)
this.menuHelp_Update.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update").charAt(0));
if (this.menuHelp_Doc.getText().length() > 0)
this.menuHelp_Doc.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc").charAt(0));
if (this.menuHelp_FAQ.getText().length() > 0)
this.menuHelp_FAQ.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ").charAt(0));
if (this.menuHelp_About.getText().length() > 0)
this.menuHelp_About.setMnemonic(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About").charAt(0));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n JMenuItem abubillaMenuItem = new JMenuItem(\"Akino Abubilla\");\n // JMenuItem is similar to JButton. You can create Action Listeners on the JMenuItem\n abubillaMenuItem.addActionListener(e -> System.out.println(\"Akino Abubilla!!\"));\n // Also mnemonics\n abubillaMenuItem.setMnemonic(KeyEvent.VK_A); // This auto-creates alt-A shortcut...\n // but only works when the menuItem is visible.\n abubillaMenuItem.setDisplayedMnemonicIndex(6);\n // And of course, accelerators\n abubillaMenuItem.setAccelerator(KeyStroke.getKeyStroke('A', Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()));\n // In order to get \"command\" key in mac and \"ctrl\" key in windows, we have to use\n // Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx(). (Since 10!!)\n // to get the correct modifier\n\n JMenuItem kilimanjaroMenuItem = new JMenuItem(\"Akino Kilimanjaro\");\n kilimanjaroMenuItem.addActionListener(e -> System.out.println(\"Fallen From Kilimanjaro!!\"));\n kilimanjaroMenuItem.setMnemonic(KeyEvent.VK_K);\n kilimanjaroMenuItem.setAccelerator(KeyStroke.getKeyStroke('K',\n InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK)); // we can force the modifiers this way\n\n // Now we add the JMenuItems to a JMenu...\n JMenu akinoMenu = new JMenu(\"Akino Items\");\n akinoMenu.setMnemonic(KeyEvent.VK_I); // This auto-creates the alt-I shortcut\n akinoMenu.setDisplayedMnemonicIndex(6);\n akinoMenu.add(abubillaMenuItem);\n akinoMenu.add(kilimanjaroMenuItem);\n\n // Let's make another menu\n JMenuItem docMenuItem = new JMenuItem(\"Documentation\");\n //docMenuItem.setMnemonic(KeyEvent.VK_F1);\n docMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));\n docMenuItem.addActionListener(e -> System.out.println(\"Help!!\"));\n JMenuItem aboutMenuItem = new JMenuItem(\"About\");\n JMenuItem upgradeMenuItem = new JMenuItem(\"Look for Upgrades\");\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic(KeyEvent.VK_H);\n helpMenu.add(docMenuItem);\n helpMenu.add(aboutMenuItem);\n helpMenu.addSeparator(); // Separator between help and look for upgrades\n helpMenu.add(upgradeMenuItem);\n\n // Now, the menu needs a JMenuBar to live within\n JMenuBar akinoMenuBar = new JMenuBar();\n akinoMenuBar.add(akinoMenu);\n //akinoMenuBar.add(helpMenu); // We can add menus to the menu bar or....\n akinoMenu.add(helpMenu); // we can nest menus in menus\n\n\n JPanel mainPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 8, 8));\n mainPanel.add(new JLabel(\"Hello, Akino!!\"));\n // We could add the menu to the main component of the frame...\n //mainPanel.add(akinoMenuBar); // But this adds the menu to mainPanel, not to the application\n\n JFrame frame = new JFrame(\"Akino Menus\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.setContentPane(mainPanel);\n frame.setJMenuBar(akinoMenuBar); // The menu belongs to the window frame, not to the internal components.\n frame.setSize(240, 240);\n frame.setLocationByPlatform(true);\n frame.setVisible(true);\n\n }",
"public MacOptionsPanel() {\n initComponents();\n setName (NbBundle.getMessage (MacOptionsPanel.class, \"LAB_ConfigureMac\"));\n \n }",
"private void setMenuItemSpecialFeatures(JMenuItem menuItem, char mNemonic,\r\n\t\t\tString toolTip, KeyStroke keyStroke, Class module) {\r\n\t\tmenuItem.setMnemonic(mNemonic);\r\n\t\tmenuItem.setToolTipText(toolTip);\r\n\t\tmenuItem.setAccelerator(keyStroke);\r\n\t\tmenuItem.addActionListener(new CustomActionListener(module));\r\n\t}",
"private void makeHelpMenu() {\r\n\t\tJMenu helpMnu = new JMenu(\"Ayuda\");\r\n\r\n\t\tJMenuItem tipMenuItem = new JMenuItem(\"Tips...\");\r\n\t\ttipMenuItem.setMnemonic('t');\r\n\t\ttipMenuItem.setToolTipText(\"Muestra los consejos de Store\");\r\n\t\ttipMenuItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew StoreTip();\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\thelpMnu.add(tipMenuItem);\r\n\t\thelpMnu.setMnemonic('y');\r\n\t\tadd(helpMnu);\r\n\t}",
"private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}",
"public static void initMenuBars()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Options\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\n\t\t//a group of JMenuItems\n\t\tmenuItem = new JMenuItem(\"Quit\",\n\t\t KeyEvent.VK_T);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\n\t\t \"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Both text and icon\",\n\t\t new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_B);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_D);\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\tButtonGroup group = new ButtonGroup();\n\t\trbMenuItem = new JRadioButtonMenuItem(\"A radio button menu item\");\n\t\trbMenuItem.setSelected(true);\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\trbMenuItem = new JRadioButtonMenuItem(\"Another one\");\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_O);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\t//a group of check box menu items\n\t\tmenu.addSeparator();\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"A check box menu item\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.add(cbMenuItem);\n\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"Another one\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_H);\n\t\tmenu.add(cbMenuItem);\n\n\t\t//a submenu\n\t\tmenu.addSeparator();\n\t\tsubmenu = new JMenu(\"A submenu\");\n\t\tsubmenu.setMnemonic(KeyEvent.VK_S);\n\n\t\tmenuItem = new JMenuItem(\"An item in the submenu\");\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_2, ActionEvent.ALT_MASK));\n\t\tsubmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Another item\");\n\t\tsubmenu.add(menuItem);\n\t\tmenu.add(submenu);\n\n\t\t//Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Another Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_N);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"This menu does nothing\");\n\t\tmenuBar.add(menu);\n\t}",
"public void setMenuLabel(java.lang.String value);",
"public JMenu helpMenu() {\r\n final JMenu helpMenu = new JMenu(\"Help\");\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n final JMenuItem about = new JMenuItem(\"About...\");\r\n about.setMnemonic(KeyEvent.VK_A);\r\n about.addActionListener((theEvent) -> {\r\n final ImageIcon img = new ImageIcon(\"images//Lion.png\");\r\n final String sb = \"TCSS 305\\nAutumn 2016\\nKeldon Fischer\\n\";\r\n JOptionPane.showMessageDialog(null, sb, \r\n \"About\", \r\n JOptionPane.PLAIN_MESSAGE, img);\r\n });\r\n helpMenu.add(about);\r\n \r\n return helpMenu;\r\n }",
"private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }",
"protected void initializeHelpMenu() {\n\t\tfinal JMenu helpMenu = new JMenu(\"Help\");\n\t\tthis.add(helpMenu);\n\t\t// Help\n\t\tfinal JMenuItem sysHelpItem = new JMenuItem();\n\t\tsysHelpItem.setAction(this.commands.findById(CmdHelp.DEFAULT_ID));\n\t\tsysHelpItem.setAccelerator(KeyStroke.getKeyStroke('H',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\thelpMenu.add(sysHelpItem);\n\t}",
"private void setMenuAccelerators() {\n mnuSistemaSair.setAccelerator(KeyStroke.getKeyStroke('X', KeyEvent.ALT_DOWN_MASK));\n mnuSistemaConfiguracao.setAccelerator(KeyStroke.getKeyStroke('C', KeyEvent.ALT_DOWN_MASK));\n\n mnuCadastroAluno.setAccelerator(KeyStroke.getKeyStroke('A', KeyEvent.ALT_DOWN_MASK));\n mnuCadastroCliente.setAccelerator(KeyStroke.getKeyStroke('E', KeyEvent.ALT_DOWN_MASK));\n mnuCadastroProfessor.setAccelerator(KeyStroke.getKeyStroke('P', KeyEvent.ALT_DOWN_MASK));\n mnuCadastroQuadra.setAccelerator(KeyStroke.getKeyStroke('Q', KeyEvent.ALT_DOWN_MASK));\n mnuCadastroUsuario.setAccelerator(KeyStroke.getKeyStroke('U', KeyEvent.ALT_DOWN_MASK));\n mnuCadastroHorariosMensalista.setAccelerator(KeyStroke.getKeyStroke('H', KeyEvent.ALT_DOWN_MASK));\n\n mnuRelatorioClientes.setAccelerator(KeyStroke.getKeyStroke('E', KeyEvent.ALT_DOWN_MASK));\n mnuRelatorioHorariosQuadras.setAccelerator(KeyStroke.getKeyStroke('H', KeyEvent.ALT_DOWN_MASK));\n mnuRelatorioUsuarios.setAccelerator(KeyStroke.getKeyStroke('U', KeyEvent.ALT_DOWN_MASK));\n\n mnuAjudaSobre.setAccelerator(KeyStroke.getKeyStroke('S', KeyEvent.ALT_DOWN_MASK));\n }",
"private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}",
"Menu getMenuHelp();",
"private JMenu getMMain() {\n\t\tif (mMain == null) {\n\t\t\tmMain = new JMenu();\n\t\t\tmMain.setText(\"Dosya\");\n\t\t\tmMain.add(getMiConfigure());\n\t\t\tmMain.add(getMiExit());\n\t\t}\n\t\treturn mMain;\n\t}",
"public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}",
"private void setIconsMenus() {\n ImageIcon iconNew = new javax.swing.ImageIcon(getClass().getResource(\"/image/novo.png\"));\n ImageIcon iconSearch = new javax.swing.ImageIcon(getClass().getResource(\"/image/procurar.19px.png\"));\n\n JMenuItem[] miNew = new JMenuItem[]{miModuloNovo, miIrradiacaoGlobalMesNovo, miInversorNovo,\n miProjetoNovo, miUsuarioNovo, miNovoCliente, miFornecedorNovo, miEPNovo};\n for (JMenuItem mi : miNew) {\n mi.setIcon(iconNew);\n mi.setMnemonic(KeyEvent.VK_N);\n }\n\n JMenuItem[] miSearch = new JMenuItem[]{miModuloPesquisar, miIrradiacaoGlobalMesPesquisar, miInversorPesquisar,\n miProjetoPesquisar, miUsuarioPesquisar, miPesquisarCliente, miFornecedorPesquisar, miEPPesquisar};\n for (JMenuItem mi : miSearch) {\n mi.setIcon(iconSearch);\n mi.setMnemonic(KeyEvent.VK_P);\n }\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n menu.add(Menu.NONE, MENU_HELP, Menu.NONE, getString(R.string.help)).setIcon(\r\n android.R.drawable.ic_menu_help).setAlphabeticShortcut('h');\r\n return super.onCreateOptionsMenu(menu);\r\n }",
"private void testButtonsMnemonics(Component comp) {\n if (testSettings.AP_mnemonics) {\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testButtonsMnemonics(Component)> - Check mnemonics \");\n \n /* Check AbstractButtons have mnemonics */\n if(testSettings.AP_m_abstractButtons && (comp instanceof AbstractButton)) {\n AbstractButton button = (AbstractButton)comp;\n \n // LOG ONLY -/\n if(debugLog) System.err.print(LOG_CAPTION+\" - <testButtonsMnemonics(Component)> \\t - button Mnemonic=\"+button.getMnemonic());\n \n int mnemonic = button.getMnemonic();\n \n if (mnemonic <= 0){\n if (!testSettings.AP_m_defaultCancel && (button instanceof JButton)) {\n JButton jButton = (JButton)button;\n String tt;\n if(!(jButton.isDefaultButton() ||\n (((tt=jButton.getText()) != null) && tt.equals(testSettings.getCancelLabel() )))) // tt - hack for rising NPE if text is null\n noMnemonic.add(comp);\n }else\n noMnemonic.add(comp);\n }\n \n testMnemonics(button.getText(), mnemonic, comp);\n }\n \n }\n \n }",
"private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"private static void helpMenuLines(){\n setMenuLines(\"\",7,9,11,13,15,16,18,20);\n setMenuLines(\"Welcome to Ben's CMR program. Here are the main commands:\",1);\n setMenuLines(HIGHLIGHT_COLOR + \"new lead\" + ANSI_RESET + \" - Creates a new Lead\",4);\n setMenuLines(HIGHLIGHT_COLOR + \"convert <ID>\" + ANSI_RESET + \" - Converts a Lead into an Opportunity\",6);\n setMenuLines(HIGHLIGHT_COLOR + \"close-won <ID>\" + ANSI_RESET + \" - Close Won Opportunity\",8);\n setMenuLines(HIGHLIGHT_COLOR + \"close-lost <ID>\" + ANSI_RESET + \" - Close Lost Opportunity\",10);\n setMenuLines(HIGHLIGHT_COLOR + \"lookup <OBJECT> <ID>\" + ANSI_RESET + \" - Search for specific Lead, Opportunity, Account or Contact\",12);\n setMenuLines(HIGHLIGHT_COLOR + \"show <OBJECT PLURAL>\" + ANSI_RESET + \" - List all Leads, Opportunities, Accounts or Contacts\",14);\n setMenuLines(HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" - Explains usage of available commands\",17);\n setMenuLines(HIGHLIGHT_COLOR + \"save\" + ANSI_RESET + \" - Saves the changed data\",19);\n setMenuLines(HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" - Saves and exits the program\",21);\n }",
"public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}",
"public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }",
"private void makeMenuBar() {\n final int SHORTCUT_MASK =\n Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\n\n JMenuBar menubar = new JMenuBar();\n setJMenuBar(menubar);\n\n JMenu menu;\n JMenuItem item;\n\n // create the File menu\n menu = new JMenu(\"File\");\n menubar.add(menu);\n\n item = new JMenuItem(\"Quit\");\n item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, SHORTCUT_MASK));\n item.addActionListener(e -> quit());\n menu.add(item);\n\n // create the Help menu\n menu = new JMenu(\"Help\");\n menubar.add(menu);\n\n item = new JMenuItem(\"About TalkBox...\");\n item.addActionListener(e -> showAbout());\n menu.add(item);\n }",
"private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }",
"public void setDefaultAttributes() {\n\t\t// sets window information and basic graphical attributes\n\t\tthis.setBounds(50, 50, 1000, 700);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setVisible(true);\n\t\tthis.setTitle(\"Siemens Intuitive Interface\");\n\t\tthis.setBackground(Color.WHITE);\n\t\tthis.setForeground(Color.BLACK);\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\n\t\t// adds menu items\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu fileMenu = new JMenu(\"File\");\n\t\tsubMenuFrameDock = new JMenu(\"Frames Dock/UnDock\");\n\t\tsubMenuGenFrame = new JMenu(\"Show Frames\");\n\n\t\tmItemNew = fileMenu.add(\"New\");\n\t\tmItemNew.addActionListener(this);\n\t\tmItemNew.setActionCommand(\"new\");\n\n\t\tmItemLoad = fileMenu.add(\"Open\");\n\t\tmItemLoad.addActionListener(this);\n\t\tmItemLoad.setActionCommand(\"open\");\n\n\t\tmItemSave = fileMenu.add(\"Save\");\n\t\tmItemSave.addActionListener(this);\n\t\tmItemSave.setActionCommand(\"save\");\n\n\t\tmItemRun = fileMenu.add(\"Run\");\n\t\tmItemRun.addActionListener(this);\n\t\tmItemRun.setActionCommand(\"run\");\n\n\t\t\n\t\tmItemGenCode = new JMenuItem(\"Generate Code\");\n\t\tmItemGenCode.addActionListener(this);\n\t\tmItemGenCode.setActionCommand(\"genCode\");\n\t\t\n\t\tmItemPreferences = fileMenu.add(\"Preferences\");\n\t\tmItemPreferences.addActionListener(this);\n\t\tmItemPreferences.setActionCommand(\"settings\");\n\n\t\t// ------------------------------------------------------------------------------------------------------------------------------\n\t\ti_console_DockFrame = new JMenuItem(\"i_console Dock/Undock\");\n\t\tsubMenuFrameDock.add(i_console_DockFrame);\n\t\ti_console_DockFrame.addActionListener(this);\n\t\ti_console_DockFrame.setActionCommand(\"i_console_Dock/Undock\");\n\n\t\ti_palette_DockFrame = new JMenuItem(\"i_palette Dock/Undock\");\n\t\tsubMenuFrameDock.add(i_palette_DockFrame);\n\t\ti_palette_DockFrame.addActionListener(this);\n\t\ti_palette_DockFrame.setActionCommand(\"i_palette_Dock/Undock\");\n\n\t\t// --------------------------------------------------------------------------------------------------------------------------------\n\n\t\tshow_i_console = new JMenuItem(\"show i_console\");\n\t\tsubMenuGenFrame.add(show_i_console);\n\t\tshow_i_console.addActionListener(this);\n\t\tshow_i_console.setActionCommand(\"show i_console\");\n\n\t\tshow_i_palette = new JMenuItem(\"show i_palette\");\n\t\tsubMenuGenFrame.add(show_i_palette);\n\t\tshow_i_palette.addActionListener(this);\n\t\tshow_i_palette.setActionCommand(\"show i_palette\");\n\n\t\tfileMenu.add(subMenuFrameDock);\n\t\tfileMenu.add(subMenuGenFrame);\n\n\t\tfileMenu.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\trightMenuClick = true;\n\t\t\t}\n\t\t});\n\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(mItemGenCode);\n\t\t\t\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n menu.add(Menu.NONE, Menu.FIRST + 1, 0, \"帮助\"); \n menu.add(Menu.NONE, Menu.FIRST + 2, 0, \"关于XCL-Charts\"); \n\t\treturn true;\n\t}",
"public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }",
"private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu m) {\n\t\tm.add(0, MENU_SETTINGS, 0, \"Settings\").setIcon(android.R.drawable.ic_menu_preferences);\n\t\tm.add(0, MENU_ABOUT,0,\"About\").setIcon(android.R.drawable.ic_dialog_info);\n\t\tm.add(0, MENU_QUIT, 0, \"Quit\").setIcon(android.R.drawable.stat_notify_error);\n\t\treturn true;\n\t}",
"@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }",
"public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }",
"private void initializeMenuBar() {\n\t\tthis.hydraMenu = new HydraMenu(this.commands);\n\t\tthis.setJMenuBar(this.hydraMenu);\n\t}",
"private void Mnemonicos() {\n Action action = new AbstractAction(\"Guardar\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n onClickCrearCta();\n }\n };\n action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));\n crearCtaBtn.setAction(action);\n crearCtaBtn.getActionMap().put(\"myAction\", action);\n crearCtaBtn.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put((KeyStroke) action.getValue(Action.ACCELERATOR_KEY), \"myAction\");\n }",
"private JMenuBar createMenuBar(){\n\n MenuBarHandler menuBarHandler = new MenuBarHandler();\n JMenuBar menuBar = new JMenuBar();\n JMenu application = new JMenu(\"Application\");\n application.setMnemonic(KeyEvent.VK_A);\n JMenu view = new JMenu(\"View\");\n view.setMnemonic(KeyEvent.VK_V);\n JMenu help = new JMenu(\"Help\");\n help.setMnemonic(KeyEvent.VK_H);\n menuBar.add(application);\n menuBar.add(view);\n menuBar.add(help);\n JMenuItem options = new JMenuItem(\"Options\", KeyEvent.VK_O);\n JMenuItem exit = new JMenuItem(\"Exit\", KeyEvent.VK_E);\n application.add(options);\n options.addActionListener(menuBarHandler);\n application.add(exit);\n exit.addActionListener(menuBarHandler);\n JMenuItem toggleFullScreen = new JMenuItem(\"Toggle Full Screen\", KeyEvent.VK_T);\n JMenuItem toggleSideBar = new JMenuItem(\"Toggle Sidebar\", KeyEvent.VK_O);\n view.add(toggleFullScreen);\n toggleFullScreen.addActionListener(menuBarHandler);\n view.add(toggleSideBar);\n toggleSideBar.addActionListener(menuBarHandler);\n JMenuItem about = new JMenuItem(\"About\", KeyEvent.VK_A);\n JMenuItem helpItem = new JMenuItem(\"Help\", KeyEvent.VK_H);\n KeyStroke ctrlS = KeyStroke.getKeyStroke(\"control S\");\n toggleSideBar.setAccelerator(ctrlS);\n help.add(about);\n about.addActionListener(menuBarHandler);\n help.add(helpItem);\n helpItem.addActionListener(menuBarHandler);\n return menuBar;\n }",
"private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }",
"public void setMnemonic(int key) {\r\n mnemonic = key;\r\n if (parent != null)\r\n parent.associateKeys(this, key);\r\n }",
"private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }",
"public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"private void makeToolsMenu() {\r\n\t\tJMenu toolsMnu = new JMenu(\"Herramientas\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Usuarios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Manejo de Usuarios\",\r\n\t\t\t\t\timageLoader.getImage(\"users.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'm',\r\n\t\t\t\t\t\"Manejar los usuarios del sistema\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F7, 0), Users.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"FacturacionManual\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion Manual\",\r\n\t\t\t\t\timageLoader.getImage(\"kwrite.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Manejar la Facturacion Manual\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F3, 0), ManualInvoice.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\ttoolsMnu.setMnemonic('h');\r\n\t\t\tadd(toolsMnu);\r\n\t\t}\r\n\t}",
"public void reserveNavigatorButtonMnemonics()\n {\n JButton [] buttons = {\n quit,\n next,\n previous\n };\n\n ButtonFactory.reserveButtonMnemonics(buttons);\n }",
"public void setMenu(){\n opciones='.';\n }",
"public void setMnemonic(int mnemonic) {\n putValue(MNEMONIC_KEY, mnemonic);\n }",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}",
"public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }",
"public Menu_Principal() {\n this.setExtendedState(Frame.MAXIMIZED_BOTH);\n initComponents();\n KeyStroke escapeKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);\n Action escapeAction = new AbstractAction() {\n @Override\n public void actionPerformed(ActionEvent e) {\n fechar();\n }\n };\n getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, \"ESCAPE\");\n getRootPane().getActionMap().put(\"ESCAPE\", escapeAction); \n alteraIcone();\n AplicaNimbusLookAndFeel.pegaNimbus();\n Color minhaCor = new Color(204,255,204);\n this.getContentPane().setBackground(minhaCor);\n labelFundo.setDropTarget(null);\n }",
"private void setActionBar() {\n headView.setText(\"消息中心\");\n headView.setGobackVisible();\n headView.setRightGone();\n // headView.setRightResource();\n }",
"void add(String prompt, UIMenuAction action);",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(0, 1, 1, \"添加图书类别\");\n\t\tmenu.add(0, 2, 2, \"返回主界面\");\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\n\t}",
"public void setMnemonic(String mnemonic)\n {\n if (mnemonic == null)\n mnemonic = \"\";\n mnemonic = mnemonic.trim();\n if (mnemonic.length() > 1)\n throw new IllegalArgumentException(\"mnemonic size must be <= 1\");\n \n m_mnemonic = mnemonic;\n }",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"MenuBar getRootMenuBar();",
"private void initMenuBar() {\n\t\t// Menu Bar\n\t\tmenuBar = new JMenuBar();\n\t\tgameMenu = new JMenu(\"Boggle\");\n\t\tgameMenu.setMnemonic('B');\n\t\tmenuBar.add(gameMenu);\n\t\tthis.setJMenuBar(menuBar);\n\t\t\n\t\t// New Game\n\t\tnewGame = new JMenuItem(\"New Game\");\n\t\tnewGame.setMnemonic('N');\n\t\tnewGame.addActionListener(new NewGameListener());\n\t\tgameMenu.add(newGame);\n\t\t\n\t\t// Exit Game\n\t\texitGame = new JMenuItem(\"Exit Game\");\n\t\texitGame.setMnemonic('E');\n\t\texitGame.addActionListener(new ExitListener());\n\t\tgameMenu.add(exitGame);\n\t}",
"public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"private void initMenubar() {\r\n\t\tsetJMenuBar(new MenuBar(controller));\r\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }",
"private void fixMenus() {\n\t\tfixFileOption();\n\t\tfixDelayOption();\n\t\tfixFormatOption();\n\t\tfixHelpOption();\n\t\t\n\t}",
"public welcomePage1() {\n welcomePage1.setDefaultLookAndFeelDecorated(false);\n // welcomePage1.RIGHT_ALIGNMENT(100.00);\n JIntellitype.getInstance().registerHotKey(ALT_S, JIntellitype.MOD_ALT, (int) 'S');\n JIntellitype.getInstance().registerHotKey(ALT_D,JIntellitype.MOD_ALT,(int)'D');\n JIntellitype.getInstance().addHotKeyListener(this);\n JIntellitype.getInstance().addIntellitypeListener(this);\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(welcomePage1.class.getName()).log(Level.SEVERE, null, ex);\n } \n initComponents();\n LOG.info(\"Initializing UI\");\n this.addWindowListener(new java.awt.event.WindowAdapter() {\n\n @Override\n public void windowClosing(java.awt.event.WindowEvent evt) {\n LOG.info(\"Exiting Application\");\n // don't forget to clean up any resources before close\n JIntellitype.getInstance().cleanUp();\n System.exit(0);\n }\n });\n undo = new UndoManager();\n Document doc = textArea.getDocument();\n doc.addUndoableEditListener(new UndoableEditListener() {\n\n public void undoableEditHappened(UndoableEditEvent evt) {\n undo.addEdit(evt.getEdit());\n }\n });\n JMenu Help = new javax.swing.JMenu();\n JMenuItem HelpTopics = new javax.swing.JMenuItem();\n Help.setText(\"Help\");\n HelpTopics.setText(\"Help Topics\");\n HelpTopics.addActionListener(new java.awt.event.ActionListener() {\n\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HelpTopicsActionPerformed(evt);\n }\n });\n Help.add(HelpTopics);\n jMenuBar3.add(Help);\n // playB.setDefaultCapable(true);\n\n }",
"public void setUseMnemonic(java.lang.Boolean useMnemonic) {\r\n this.useMnemonic = useMnemonic;\r\n }",
"public Menu createToolsMenu();",
"private JMenuBar createMenuBar()\r\n {\r\n UIManager.put(\"Menu.selectionBackground\", new Color(0xDA,0xDD,0xED));\r\n UIManager.put(\"MenuItem.selectionForeground\", Color.LIGHT_GRAY);\r\n JMenuBar menuBar = new JMenuBar();\r\n JMenu menu = new JMenu(\"Fil\");\r\n UIManager.put(\"MenuItem.selectionBackground\", menu.getBackground());\r\n menuItemSave = new JMenuItem(\"Lagre\");\r\n UIManager.put(\"MenuItem.selectionBackground\", menuItemSave.getBackground());\r\n menuItemSave.setForeground(Color.LIGHT_GRAY);\r\n menuItemSave.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemSave.setAccelerator(KeyStroke.getKeyStroke('S', Event.CTRL_MASK));\r\n menuItemSave.addActionListener(listener);\r\n menu.add(menuItemSave);\r\n menuItemPrint = new JMenuItem(\"Skriv ut\");\r\n menuItemPrint.setForeground(Color.LIGHT_GRAY);\r\n menuItemPrint.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemPrint.setAccelerator(KeyStroke.getKeyStroke('P', Event.CTRL_MASK));\r\n menuItemPrint.addActionListener(listener);\r\n menu.add(menuItemPrint);\r\n menu.addSeparator();\r\n menuItemLogout = new JMenuItem(\"Logg av\");\r\n menuItemLogout.setForeground(Color.LIGHT_GRAY);\r\n menuItemLogout.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemLogout.addActionListener(listener);\r\n menuItemLogout.setAccelerator(KeyStroke.getKeyStroke('L', Event.CTRL_MASK));\r\n menu.add(menuItemLogout);\r\n UIManager.put(\"MenuItem.selectionBackground\", new Color(0xDA,0xDD,0xED));\r\n UIManager.put(\"MenuItem.selectionForeground\", Color.BLACK);\r\n menuItemClose = new JMenuItem(\"Avslutt\");\r\n menuItemClose.setAccelerator(KeyStroke.getKeyStroke('A', Event.CTRL_MASK));\r\n menuItemClose.addActionListener(listener);\r\n menuBar.add(menu);\r\n menu.add(menuItemClose);\r\n JMenu menu2 = new JMenu(\"Om\");\r\n menuItemAbout = new JMenuItem(\"Om\");\r\n menuItemAbout.setAccelerator(KeyStroke.getKeyStroke('O', Event.CTRL_MASK));\r\n menuItemAbout.addActionListener(listener);\r\n menuItemAbout.setBorder(BorderFactory.createEmptyBorder());\r\n menu2.add(menuItemAbout);\r\n menuBar.add(menu2);\r\n \r\n return menuBar;\r\n }",
"public void startMenu() {\n setTitle(\"Nier Protomata\");\n setSize(ICoord.LAST_COL + ICoord.ADD_SIZE,\n ICoord.LAST_ROW + ICoord.ADD_SIZE);\n \n setButton();\n }",
"public void setMenuHook(java.awt.Menu menu);",
"public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}",
"private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }",
"public JMenuBar createNslmMenuBar() {\n\tJMenuItem mi;\n\tJMenu fileMenu;\n\tJMenu helpMenu;\n\tJMenuBar myMenuBar = null;\n\n\t//System.out.println(\"Debug:NslmEditorFrame:createNslmMenuBar 1\");\n\tmyMenuBar = new JMenuBar();\n\t//myMenuBar.setBorder(new BevelBorder(BevelBorder.RAISED));\n\n\tfileMenu = new JMenu(\"File\");\n\t\n\tfileMenu.add(mi=new JMenuItem(\"New\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Open\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Save\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Save as\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Close\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Export NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"View NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Import NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Print\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Close NSLM Editor\"));\n\tmi.addActionListener(this);\n\n\tmyMenuBar.add(fileMenu);\n\n\n\thelpMenu = new JMenu(\"Help\");\n\thelpMenu.addActionListener(this);\n\thelpMenu.add(mi=new JMenuItem(\"Help\"));\n\tmi.addActionListener(this);\n\n\tmyMenuBar.add(helpMenu);\n\t//myMenuBar.setHelpMenu(helpMenu); 1.3 does not have yet\n\t//System.out.println(\"Debug:NslmEditorFrame:createNslmMenuBar 2\");\n\n\treturn(myMenuBar);\n }",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"private void initializeMenuBar()\r\n\t{\r\n\t\tJMenuBar menuBar = new SmsMenuBar(this);\r\n\t\tsetJMenuBar(menuBar);\r\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new SetCanMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }",
"public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n menu.add(0, MENU_ITEM_ADD_TERM, 100, getString(R.string.Add));\n menu.findItem(MENU_ITEM_ADD_TERM).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);\n return super.onCreateOptionsMenu(menu);\n }",
"public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(0, 0, 0, \"上一頁\");\r\n\t\tmenu.add(0, 1, 0, \"重新整理\");\r\n\t\treturn true;\r\n\t}",
"static void customizeNimbus()\r\n\t\tthrows Exception\r\n\t{\n\t\tUIManager.put(\"control\", BACKGROUND);\r\n\r\n\t\t// TODO: imilne 04/SEP/2009 - No longer working since JRE 1.6.0_u13\r\n\t\tif (SystemUtils.isWindows())\r\n\t\t{\r\n\t\t\tUIManager.put(\"defaultFont\", FONT);\r\n\t\t\tUIManager.put(\"Label[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Table[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TableHeader[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TabbedPane[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ComboBox[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Button[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ToggleButton[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TextField[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"CheckBox[Enabled].font\", FONT);\r\n\t\t}\r\n\r\n\t\tfor (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels())\r\n\t\t\tif (laf.getName().equals(\"Nimbus\"))\r\n\t\t\t\tUIManager.setLookAndFeel(laf.getClassName());\r\n\r\n\r\n\t\tUIManager.put(\"SplitPane[Enabled].size\", 8);\r\n\r\n\t\tUIManager.put(\"nimbusOrange\", new Color(51, 98, 140));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(57, 105, 138));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(115, 164, 209));\r\n\r\n\r\n\t\t// Reset non-Aqua look and feels to use CMD+C/X/V rather than CTRL for copy/paste stuff\r\n\t\tif (SystemUtils.isMacOS())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Setting OS X keyboard shortcuts\");\r\n\r\n\t\t\tInputMap textField = (InputMap) UIManager.get(\"TextField.focusInputMap\");\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\r\n\t\t\tInputMap textArea = (InputMap) UIManager.get(\"TextArea.focusInputMap\");\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\t\t}\r\n\t}",
"public void showTitleScreen() {\n frame.showMenu();\n }",
"public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickLiftCommand());\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(1, 1, 1, (getString(R.string.app_name)));\r\n\t\tmenu.add(2, 2, 2, (getString(R.string.action_settings)));\r\n\t\treturn true;\r\n\t}",
"private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}",
"private void overridePreferenceAccessibility_i() {\n overrideMenuForLocation_i();\n overrideMenuFor4K_i();\n overrideMenuForCDSMode_i();\n overrideMenuForSeeMore_i();\n }",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"public UIMenu() {\n initComponents();\n setLocationRelativeTo(null);\n background.requestFocusInWindow();\n createButtonMode.setVisible(false);\n loginButtonMode.setVisible(false);\n repassword.setVisible(false);\n inputRePass.setVisible(false);\n }",
"public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }",
"private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"private MenuManager createHelpMenu(IWorkbenchWindow window) {\n\t\tMenuManager menu = new MenuManager(Messages.getString(\"IU.Strings.42\")); //$NON-NLS-1$\n\t\t\n\t\t\n\t\tmenu.add(getAction(ActionFactory.HELP_CONTENTS.getId()));\t\n\t\tmenu.add(new Separator());\n\t\tIWorkbenchAction about = ActionFactory.ABOUT.create(window);\n\t\tabout.setText(Messages.getString(\"IU.Strings.43\")); //$NON-NLS-1$\n\t\tmenu.add(about);\n\t\t\n\t\treturn menu;\t\n\t}",
"protected void initDefaultCommand() {\n\t\tsetDefaultCommand(CommandBase.scs);\r\n\t}",
"private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(\"Settings\");\r\n\t\tmenu.add(\"Restart\");\r\n\t\treturn true;\r\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }",
"public Menus() {\n initComponents();\n }",
"private static JMenuBar menuMaker(){\n final JMenuBar menuBar = new JMenuBar();\n final JMenu menu = new JMenu(\"App\");\n menuBar.add(menu);\n menu.addSeparator();\n final JMenuItem menuItem;\n (menuItem = new JMenuItem(\"Exit\", 88)).addActionListener(p0 -> System.exit(0));\n menu.add(menuItem);\n final JMenu menu2;\n (menu2 = new JMenu(\"Item\")).setMnemonic(73);\n menuBar.add(menu2);\n menu2.addSeparator();\n final JMenu menu3 = new JMenu(\"Selected\");\n menu2.add(menu3);\n menu3.addSeparator();\n\n return menuBar;\n }",
"public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException,\n\t\t\tUnsupportedLookAndFeelException {\n\t\tdetermineOS();\n\t\tif (currentOs == MAC_OS) {\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.apple.menu.about.name\", \"UP-Admin\");\n\t\t\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.live-resize\", \"true\");\n\n\t\t\ttry {\n\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if ((currentOs == WIN_OS) || (currentOs == null)) {\n\n\t\t\tUIManager.put(\"nimbusBase\", new Color(0x525252));\n\t\t\tUIManager.put(\"control\", new Color(0x949494));\n\t\t\tUIManager.put(\"nimbusSelectionBackground\", new Color(0x171717));\n\t\t\tUIManager.put(\"Menu.background\", new Color(0x2B2B2B));\n\t\t\tUIManager.put(\"background\", new Color(0x171717));\n\t\t\tUIManager.put(\"DesktopIcon.background\", new Color(0x171717));\n\t\t\tUIManager.put(\"nimbusLightBackground\", new Color(0xE3E3E3));\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\n\t\t}\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tFrame frame = new Frame();\n\t\t\t\t\tframe.setVisible(true);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void initializeKeyBoardActions(){\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n cutMenuItem_actionPerformed(e);}},\r\n \"Cut\",\r\n KeyStroke.getKeyStroke('X', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n copyMenuItem_actionPerformed(e);}},\r\n \"Copy\",\r\n KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n pasteMenuItem_actionPerformed(e);}},\r\n \"Paste\",\r\n KeyStroke.getKeyStroke('V', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n selectAllMenuItem_actionPerformed(e);}},\r\n \"Select All\",\r\n KeyStroke.getKeyStroke('A', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n deleteMenuItem_actionPerformed(e);}},\r\n \"Delete\",\r\n KeyStroke.getKeyStroke(KeyEvent.VK_DELETE,0),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMenuLabel();"
]
| [
"0.66341215",
"0.6377881",
"0.63669866",
"0.62612516",
"0.6147877",
"0.6135465",
"0.6114984",
"0.6100548",
"0.6094147",
"0.60746753",
"0.6074624",
"0.606575",
"0.5947764",
"0.5935616",
"0.59351707",
"0.5927245",
"0.5899967",
"0.58853644",
"0.5874352",
"0.5846439",
"0.58413416",
"0.58381337",
"0.58375293",
"0.583251",
"0.58120483",
"0.5795805",
"0.57667536",
"0.57553476",
"0.5744342",
"0.5739168",
"0.5737309",
"0.57228315",
"0.5719174",
"0.57101244",
"0.57016355",
"0.569788",
"0.56824005",
"0.5678892",
"0.56692314",
"0.5665969",
"0.56650245",
"0.5651024",
"0.56499434",
"0.56460685",
"0.56321555",
"0.5630242",
"0.5603448",
"0.5591532",
"0.55869335",
"0.5568803",
"0.5564194",
"0.5538326",
"0.5524553",
"0.5523123",
"0.55220646",
"0.5511937",
"0.54963607",
"0.5487564",
"0.54847294",
"0.5484563",
"0.5481983",
"0.54808605",
"0.54676384",
"0.5465131",
"0.5464104",
"0.54623663",
"0.54596746",
"0.5456641",
"0.5455097",
"0.5452788",
"0.54478705",
"0.54471314",
"0.5445094",
"0.5442131",
"0.544198",
"0.5434078",
"0.5433651",
"0.54321635",
"0.54214",
"0.5420875",
"0.542028",
"0.5419525",
"0.541835",
"0.5414551",
"0.54096806",
"0.5407805",
"0.5405544",
"0.5404729",
"0.5398788",
"0.53986365",
"0.53968585",
"0.53968024",
"0.53960264",
"0.53951734",
"0.5387591",
"0.53834605",
"0.5376031",
"0.5366538",
"0.53628266",
"0.5362016"
]
| 0.79235464 | 0 |
This method is called from within the constructor to manage the system tray icon for the application | private void addApplicationSystemTray()
{
// Check if the OS has a system tray
if (SystemTray.isSupported())
{
SystemTray tray = SystemTray.getSystemTray();
// Create the popup menu of the system tray
GenericPopupMenu.PopupMenuType popupMenuType = (OSUtil.IS_MAC ? GenericPopupMenu.PopupMenuType.AWT : GenericPopupMenu.PopupMenuType.SWING);
this.popupMenu = new GenericPopupMenu(popupMenuType, "");
GenericMenuItem.MenuItemType menuItemType = (OSUtil.IS_MAC ? GenericMenuItem.MenuItemType.AWT : GenericMenuItem.MenuItemType.SWING);
GenericMenuItemSeparator.MenuItemSeparatorType menuItemSeparatorType = (OSUtil.IS_MAC ? GenericMenuItemSeparator.MenuItemSeparatorType.AWT : GenericMenuItemSeparator.MenuItemSeparatorType.SWING);
this.popupMenu_ShowApp = new GenericMenuItem(menuItemType, "Afficher l'application");
this.popupMenu_Blanc1 = new GenericMenuItemSeparator(menuItemSeparatorType);
this.popupMenu_PauseStart = new GenericMenuItem(menuItemType, "Pause");
this.popupMenu_Blanc2 = new GenericMenuItemSeparator(menuItemSeparatorType);
this.popupMenu_Profiles = new GenericMenuItem(menuItemType, "Profils");
this.popupMenu_Blanc3 = new GenericMenuItemSeparator(menuItemSeparatorType);
this.popupMenu_Logs = new GenericMenuItem(menuItemType, "Consulter les logs");
this.popupMenu_Parameters = new GenericMenuItem(menuItemType, "Paramètres");
this.popupMenu_Blanc4 = new GenericMenuItemSeparator(menuItemSeparatorType);
this.popupMenu_Quit = new GenericMenuItem(menuItemType, "Quitter");
// Display the top item in bold only on Windows
if (OSUtil.IS_WINDOWS)
this.popupMenu_ShowApp.setFont(new Font(menuProfiles.getFont().getName(), Font.BOLD, menuProfiles.getFont().getSize()));
this.popupMenu_Quit.addActionListener( new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
});
this.popupMenu_ShowApp.addActionListener( new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
setState(FrmMain.NORMAL);
setVisible(true);
}
});
this.popupMenu_PauseStart.addActionListener( new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start")))
{
popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause"));
}
else if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause")))
{
popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg("fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start"));
}
}
});
this.popupMenu_Parameters.addActionListener( new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
new FrmParameters(FrmMain.this, true).setVisible(true);
}
});
this.popupMenu.addMenuItem(this.popupMenu_ShowApp);
this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc1);
this.popupMenu.addMenuItem(this.popupMenu_PauseStart);
this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc2);
this.popupMenu.addMenuItem(this.popupMenu_Profiles);
this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc3);
this.popupMenu.addMenuItem(this.popupMenu_Logs);
this.popupMenu.addMenuItem(this.popupMenu_Parameters);
this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc4);
this.popupMenu.addMenuItem(this.popupMenu_Quit);
// Create the system tray
GenericTrayIcon.TrayIconType trayIconType = (OSUtil.IS_MAC ? GenericTrayIcon.TrayIconType.DEFAULT : GenericTrayIcon.TrayIconType.CUSTOM);
systemTray = new GenericTrayIcon(trayIconType,
ResourcesUtil.SYSTEM_TRAY_IMAGE_ICON.getImage(),
FrmMainController.APP_NAME,
this.popupMenu.getCurrentPopupMenu());
//To catch events on the popup menu
systemTray.setImageAutoSize(true);
systemTray.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
// TODO: manage double-click
}
});
try
{
if (OSUtil.IS_MAC)
tray.add((TrayIcon)systemTray.getCurrentTrayIcon());
else
tray.add((JTrayIcon)systemTray.getCurrentTrayIcon());
}
catch (Exception e)
{ }
}
else // If there is no system tray, we don't do anything
{ }
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void initSystemTray() {\n if (SystemTray.isSupported()) {\n SystemTray tray = SystemTray.getSystemTray();\n PopupMenu menu = new PopupMenu();\n MenuItem exitItem = new MenuItem(Resources.strings().get(\"menu_exit\"));\n exitItem.addActionListener(a -> System.exit(0));\n menu.add(exitItem);\n\n trayIcon = new TrayIcon(Resources.images().get(\"litiengine-icon.png\"), Game.info().toString(), menu);\n trayIcon.setImageAutoSize(true);\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.log(Level.SEVERE, e.getLocalizedMessage(), e);\n }\n }\n }",
"public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }",
"public SystemTrayD() {\n jbInit();\n }",
"public void setTrayIcon()\n\t{\n\t\tImage image = new Image(display, PropertyManager.getInstance().getProperty(\"ICON_FOLDER\"));\n\t\tfinal Tray tray = display.getSystemTray();\n\n\t\tif (tray == null)\n\t\t{\n\t\t\tSystem.out.println(\"The system tray is not available\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal TrayItem item = new TrayItem(tray, SWT.NONE);\n\t\t\titem.setToolTipText(PropertyManager.getInstance().getProperty(\"SOFT_INFO\"));\n\n\t\t\tfinal Menu menu = new Menu(shell, SWT.POP_UP);\n\n\t\t\tMenuItem mi1 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi2 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi3 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi4 = new MenuItem(menu, SWT.PUSH);\n\n\t\t\tmi1.setText(\"Show\");\n\t\t\tmi1.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi2.setText(\"Hide\");\n\t\t\tmi2.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi3.setText(\"Change Operator\");\n\t\t\tmi3.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tlogin = \"\";\n\t\t\t\t\tpassword = \"\";\n\t\t\t\t\tInputDialog opDialog = new InputDialog(shell, SWT.DIALOG_TRIM);\n\t\t\t\t\tshell.setEnabled(!shell.getEnabled());\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_WAIT));\n\t\t\t\t\tString credential = opDialog.createDialogArea();\n\t\t\t\t\tlogin = credential.substring(0, credential.indexOf(File.separator));\n\t\t\t\t\tpassword = credential.substring(credential.indexOf(File.separator));\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_ARROW));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi4.setText(\"Close\");\n\t\t\tmi4.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.addListener(SWT.MenuDetect, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tmenu.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.setImage(image);\n\t\t}\n\t}",
"public TrayHandler() {\n this.statusImages[0] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/active.png\");\n this.statusImages[1] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/inactive.png\");\n \n this.statusText[0] = \"Apache is running\";\n this.statusText[1] = \"Apache is not running\";\n \n this.systemtray = SystemTray.getSystemTray();\n }",
"private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }",
"public Tray() {\n this.add(Tray.sysTray);\n }",
"public void windowIconified(WindowEvent arg0)\n {\n ti.setImageAutoSize(true);\n\n try\n {\n SystemTray.getSystemTray().add(ti);\n cms.setVisible(false);\n ti.addMouseListener(new MouseListener()\n {\n public void mouseClicked(MouseEvent arg0)\n {\n SystemTray.getSystemTray().remove(ti);\n cms.setVisible(true);\n cms.setState(JFrame.NORMAL);\n }\n public void mouseEntered(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseExited(MouseEvent arg0)\n {\n // Unused\n }\n public void mousePressed(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseReleased(MouseEvent arg0)\n {\n // Unused\n }\n });\n }\n catch (AWTException e)\n {\n e.printStackTrace();\n }\n }",
"public void setTrayIcon(Boolean state) {\n if (true == state) {\n this.trayicon = new TrayIcon(this.statusImages[0], this.statusText[0]);\n } else {\n this.trayicon = new TrayIcon(this.statusImages[1], this.statusText[1]);\n }\n \n this.trayicon.setImageAutoSize(true); \n \n try {\n this.systemtray.add(this.trayicon);\n this.addMenuItems();\n } catch (AWTException e) {\n System.err.println(\"TrayIcon could not be added.\");\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n }",
"public abstract void notifyTray (final SystemTraySupport traySupport);",
"private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\r\n return;\r\n }\r\n final PopupMenu popup = new PopupMenu();\r\n final TrayIcon trayIcon =\r\n new TrayIcon(createImage(\"/config/mut3.png\", \"JFileImporter\"));\r\n final SystemTray tray = SystemTray.getSystemTray();\r\n Font itemFont = new Font(\"Ariel\",Font.BOLD,12);\r\n // Create a popup menu components\r\n MenuItem aboutItem = new MenuItem(\"About\");\r\n MenuItem maxItem = new MenuItem(\"Maximize\");\r\n MenuItem minItem = new MenuItem(\"Minimize\");\r\n MenuItem showSchedulerItem = new MenuItem(\"Show Scheduler\");\r\n MenuItem showImporterItem = new MenuItem(\"Show Importer\");\r\n MenuItem exitItem = new MenuItem(\"Exit\");\r\n\r\n aboutItem.setFont(itemFont);\r\n maxItem.setFont(itemFont);\r\n minItem.setFont(itemFont);\r\n showSchedulerItem.setFont(itemFont);\r\n showImporterItem.setFont(itemFont);\r\n exitItem.setFont(itemFont);\r\n //Add components to popup menu\r\n popup.add(aboutItem);\r\n popup.addSeparator();\r\n popup.add(maxItem);\r\n popup.add(minItem);\r\n popup.addSeparator();\r\n popup.add(showSchedulerItem);\r\n popup.add(showImporterItem); \r\n popup.addSeparator();\r\n popup.add(exitItem);\r\n \r\n trayIcon.setPopupMenu(popup);\r\n \r\n try {\r\n tray.add(trayIcon);\r\n } catch (AWTException e) {\r\n \tJOptionPane.showMessageDialog(null, \"Tray Icon could not be added \"+e, \"Error creating Tray Icon\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n trayIcon.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n \r\n maxItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n minItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"JFileImporter\", \"Importer Still Running! Right Click for more options\", TrayIcon.MessageType.INFO);\r\n \tJImporterMain.minimize();\r\n \t\r\n }\r\n });\r\n \r\n aboutItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"About\", \"JFileImporter\\nVersion\\t1.00\\nDeveloped By:\\tAnil Sehgal\", TrayIcon.MessageType.INFO);\r\n }\r\n });\r\n \r\n showImporterItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.showImporter();\r\n }\r\n });\r\n showSchedulerItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tString schedulerShown = LoadProfileUI.showScheduler();\r\n \tif(schedulerShown.equals(\"npe\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Please initialize the Scheduler from Menu\", TrayIcon.MessageType.WARNING);\r\n \t}else if(schedulerShown.equals(\"ge\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Error Launching Scheduler, Please contact technical support\", TrayIcon.MessageType.ERROR);\r\n \t}\r\n }\r\n });\r\n trayIcon.setImageAutoSize(true);\r\n trayIcon.setToolTip(\"JFileImporter\"); \r\n exitItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tint option = JOptionPane.showConfirmDialog(null, \"If You Quit the Application, the scheduled job will terminate!\", \"Exit Confirmation\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \tif(option == JOptionPane.OK_OPTION){\r\n\t tray.remove(trayIcon);\r\n\t System.exit(0);\r\n \t}\r\n }\r\n });\r\n }",
"private void initBaseIcons() {\n iconMonitor = new ImageIcon( getClass().getResource(\"/system.png\") );\n iconBattery = new ImageIcon( getClass().getResource(\"/klaptopdaemon.png\") );\n iconSearch = new ImageIcon( getClass().getResource(\"/xmag.png\") );\n iconJava = new ImageIcon( getClass().getResource(\"/java-icon.png\") );\n iconPrinter = new ImageIcon( getClass().getResource(\"/printer.png\") );\n iconRun = new ImageIcon( getClass().getResource(\"/run.png\") );\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }",
"private void createTray(Display display) \n\t{\n Tray tray;\n TrayItem item;\n tray = display.getSystemTray();\n\n if (tray == null) {\n System.out.println(\"The system tray is not available\");\n } else {\n item = new TrayItem(tray, SWT.NONE);\n item.setToolTipText(\"Arper Express\");\n item.addListener(SWT.Show, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"show\");\n }\n });\n\n item.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"hide\");\n }\n });\n\n item.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"selection\");\n }\n });\n\n item.addListener(SWT.DefaultSelection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"default selection\");\n }\n });\n\n final Menu menu = new Menu(shell, SWT.POP_UP);\n\n MenuItem openMenuItem = new MenuItem(menu, SWT.PUSH);\n openMenuItem.setText(\"Mostrar\");\n openMenuItem.addListener(SWT.Selection, new Listener() {\n\n public void handleEvent(Event event) {\n shell.setVisible(true);\n shell.setMaximized(true);\n }\n });\n\n MenuItem exitMenuItem = new MenuItem(menu, SWT.PUSH);\n exitMenuItem.setText(\"Salir\");\n exitMenuItem.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.exit(0);\n }\n });\n\n item.addListener(SWT.MenuDetect, new Listener() {\n public void handleEvent(Event event) {\n menu.setVisible(true);\n }\n });\n\n // image = SWTResourceManager.getImage(MakeBreak.class, \"Backup-Green-Button-icon.png\");\n // image = SWTResourceManager.getImage(WpCommenter.class, \"images/mb4.png\");\n// ImageData imageData = new ImageData(\"lib/impresora.png\");\n ImageData imageData = new ImageData(Home.class.getClassLoader().getResourceAsStream(\"impresora.png\"));\n //ImageData imageData = new ImageData(getClass().getResourceAsStream(\"impresora.png\"));\n\n item.setImage(new Image(display,imageData));\n \n shell.addShellListener(new ShellListener() {\n \tpublic void shellActivated(ShellEvent event) {\n\n \t}\n\n \tpublic void shellClosed(ShellEvent event) {\n \t\tevent.doit = false; //!! for this code i looked long time\n shell.setVisible(false);\n }\n\n public void shellDeactivated(ShellEvent event) {\n \n }\n\n public void shellDeiconified(ShellEvent event) {\n\n }\n\n public void shellIconified(ShellEvent event) {\n //shell.setVisible(false);\n }\n });\n \n }\n }",
"private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"public CloudSyncMain(){\n\n \t// initial SystemTray function\n \tsystemTray = SystemTray.getSystemTray();//获得系统托盘的实例\n \tjava.net.URL imgURL = this.getClass().getResource(\"images/sync-icon3.png\");\t//can not use \"image\\\\sync-icon3.png\"\n try {\n trayIcon = new TrayIcon(ImageIO.read(imgURL));\n systemTray.add(trayIcon);//设置托盘的图标,0.gif与该类文件同一目录\n }\n catch (IOException e1) {e1.printStackTrace();}\n catch (AWTException e2) {e2.printStackTrace();}\n frame.addWindowListener(new WindowAdapter(){ \n public void windowIconified(WindowEvent e){ \n frame.dispose();//窗口最小化时dispose该窗口 \n \t//frame.setVisible(false);\n } \n });\n trayIcon.addMouseListener(\n new MouseAdapter(){\n public void mouseClicked(MouseEvent e){\n if(e.getClickCount() == 1){\n frame.setExtendedState(Frame.NORMAL);\n frame.setVisible(true);\n }\n if(e.getClickCount() == 2){\n \tframe.setExtendedState(Frame.NORMAL);\n \tframe.setVisible(true);\n }\n }\n });\n try{\n \t\t//this.frame.setLayout(new GridLayout(1,3));\t\t// Have no idea what will happen after set this layout\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n \tSwingUtilities.updateComponentTreeUI(frame.getContentPane());\n }catch(Exception e){\n \te.printStackTrace();\n }\n \n try {\n\t\t\tframe.setIconImage(ImageIO.read(imgURL));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n \tjfc.setCurrentDirectory(new File(\"\\\\\"));// 文件选择器的初始目录定为d盘 \n frame.add(con);\n double lx = Toolkit.getDefaultToolkit().getScreenSize().getWidth(); \n double ly = Toolkit.getDefaultToolkit().getScreenSize().getHeight(); \n frame.setLocation(new Point((int) (lx / 2) - 250, (int) (ly / 2) - 250));// 设定窗口出现位置 \n frame.setSize(400, 440);// 设定窗口大小 \n \n label_sync_status_title.setBounds(110, 360, 70, 20);\n label_sync_status_content.setBounds(190, 360, 150, 20);\n \n list_title.setBounds(10, 10, 110, 20);\n text_sync_directory_path.setBounds(110, 330, 250, 20);\n button_add_directory.setBounds(120, 10, 90, 20); \n button_delete_directory.setBounds(220, 10, 140, 20);\n button_delete_directory.addActionListener(this);\n button_sync_to.setBounds(10, 330, 90, 20); \n button_sync_directory.setBounds(10, 360, 90, 20); \n button_add_directory.addActionListener(this); // 添加事件处理 \n button_sync_to.addActionListener(this); // 添加事件处理 \n button_sync_directory.addActionListener(this); // 添加事件处理 \n cbox_hour.setBounds(110, 295, 40, 20);\n cbox_minute.setBounds(180, 295, 40, 20);\n label_auto_sync.setBounds(10, 295, 100, 20);\n label_sync_hour.setBounds(155, 295, 40, 20);\n label_sync_minute.setBounds(225, 295, 40, 20);\n \n //initial ComboBox: cbox_hour & cbox_minute\n for(int i = 0; i < 24; i++){\n \tcbox_hour.insertItemAt(i, i);\n }\n cbox_hour.setSelectedIndex(0);\n \n for(int i = 0, k = 0; i < 60; i = i + 5, k++){\n \tcbox_minute.insertItemAt(i, k);\n }\n cbox_minute.setSelectedIndex(0);\n \n //con.add(label1); \n //con.add(text1); \n con.add(button_add_directory); \n //con.add(label2); \n con.add(text_sync_directory_path); \n con.add(button_sync_to); \n con.add(button_sync_directory); \n con.add(button_delete_directory);\n con.add(label_sync_status_title);\n con.add(label_sync_status_content);\n con.add(list_title);\n con.add(cbox_hour);\n con.add(cbox_minute);\n con.add(label_sync_hour);\n con.add(label_sync_minute);\n con.add(label_auto_sync);\n \n list_original = new JList(list_vector);\n scroll_pane = new JScrollPane(list_original);\n scroll_pane.setBounds(10, 35, 350, 250);\n con.add(scroll_pane);\n \n frame.setVisible(true);// 窗口可见\n frame.addWindowListener(this);\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 使能关闭窗口,结束程序\n \n initial_list_original();\t\t// initial the JList (also the JScrollPane scroll_pane);\n initial_list_sync();\t\t\t//initial the JText\n initial_auto_sync_cbox();\t\t//initial the auto_sync_cbox hour & minute\n \n _sync_lock.open_lock();\n frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\t\t//dont kill the application when click \"X\" \n sync_in_background = new SyncInBackground(label_sync_status_content, text_sync_directory_path\n \t\t, default_list_model1, _sync_lock);\n \n int hour = (int) cbox_hour.getItemAt(cbox_hour.getSelectedIndex());\n int minute = (int) cbox_minute.getItemAt(cbox_minute.getSelectedIndex());\n cbox_hour.addActionListener(this);\n cbox_minute.addActionListener(this);\n sync_in_background.setSyncTime(hour, minute);\n sync_in_background.start();\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }",
"private void updateSystemTrayToolTip()\n {\n if (OSUtil.IS_LINUX)\n this.systemTray.setToolTip(\"SFR WiFi Public : Connecté\");\n else\n this.systemTray.setToolTip(FrmMainController.APP_NAME + \" \" + FrmMainController.APP_VERSION + FrmMainController.LINE_SEPARATOR + \"SFR WiFi Public : Connecté\");\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }",
"private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\n log.error(\"SystemTray is not supported\");\n return;\n }\n\n SystemTray tray = SystemTray.getSystemTray();\n\n Image icon = createImage(\"/images/b2b.gif\", \"tray icon\");\n trayIcon = new TrayIcon(icon);\n trayIcon.setImageAutoSize(true);\n trayIcon.setToolTip(\"back2back\");\n\n PopupMenu popupMenu = new PopupMenu();\n {\n openWebUIMenuItem = new MenuItem(\"Open back2back web interface\");\n openWebUIMenuItem.addActionListener(B2BTrayIcon::openWebUI);\n popupMenu.add(openWebUIMenuItem);\n }\n popupMenu.addSeparator();\n {\n startAutomaticallyMenuItem = new CheckboxMenuItem(\"Start automatically with system\");\n startAutomaticallyMenuItem.addItemListener(e -> {\n int newState = e.getStateChange();\n setAutoStart(newState == ItemEvent.SELECTED);\n });\n startAutomaticallyMenuItem.setEnabled(serviceController != null);\n popupMenu.add(startAutomaticallyMenuItem);\n }\n popupMenu.addSeparator();\n {\n startMenuItem = new MenuItem(\"Start back2back engine\");\n startMenuItem.setEnabled(false);\n startMenuItem.addActionListener(evt -> {\n try {\n startEngine();\n } catch (ControlException e) {\n log.error(\"Failed to start engine\", e);\n trayIcon.displayMessage(\"back2back\", \"Failed to start engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(startMenuItem);\n }\n {\n stopMenuItem = new MenuItem(\"Stop back2back engine\");\n stopMenuItem.setEnabled(false);\n stopMenuItem.addActionListener(evt -> {\n try {\n stopEngine();\n } catch (ControlException e) {\n trayIcon.displayMessage(\"back2back\", \"Failed to stop engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(stopMenuItem);\n }\n popupMenu.addSeparator();\n {\n MenuItem item = new MenuItem(\"About\");\n item.addActionListener(B2BTrayIcon::about);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Check for update\");\n item.setEnabled(updateManager != null);\n item.addActionListener(B2BTrayIcon::checkForUpdate);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Close tray icon\");\n item.addActionListener(e -> {\n tray.remove(trayIcon);\n System.exit(0);\n });\n popupMenu.add(item);\n }\n\n// popupMenu.addActionListener(e -> log.debug(\"POPUP ACTION\"));\n trayIcon.setPopupMenu(popupMenu);\n\n trayIcon.addActionListener(e -> log.debug(\"TRAY ACTION\"));\n\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.error(\"TrayIcon could not be added.\", e);\n return;\n }\n\n //trayIcon.displayMessage(\"back2back\", \"Tray icon ready\", TrayIcon.MessageType.INFO);\n\n // start status update on background thread\n Thread thread = new Thread(B2BTrayIcon::pollStatus);\n thread.setDaemon(true);\n thread.start();\n\n log.info(\"Tray icon ready.\");\n }",
"private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }",
"public void resetShellIcon() {\r\n\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tGDE.shell.setImage(SWTResourceManager.getImage(GDE.IS_MAC ? \"gde/resource/DataExplorer_MAC.png\" : \"gde/resource/DataExplorer.png\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public MainUI() throws UnknownHostException {\n initComponents();\n //server();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\nwidth = screenSize.getWidth();\n height = screenSize.getHeight();\n setIcon();\n \n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }",
"public Sniffer() { \n initComponents(); \n setLocationRelativeTo(getRootPane());\n setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(\"/views/images/sam_icon.png\")));\n }",
"private void configuracoes() {\n setLocationRelativeTo(null);\n this.setIconImage(new ImageIcon(getClass().getResource(SystemMessage.IMAGE_URL)).getImage());\n this.setTitle(SystemMessage.SYSTEM_NAME + \" -\");\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }",
"public void setMainIcon(IconReference ref);",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }",
"private void initUI()\r\n {\r\n var webIcon = new ImageIcon(\"src/resources/web.png\");\r\n \r\n // The setIconImage() sets the image to be displayed as the icon for this window. the getImage() returns the\r\n // icon's Image.\r\n setIconImage(webIcon.getImage());\r\n \r\n setTitle(\"Icon\");\r\n setSize(300, 200);\r\n setLocationRelativeTo(null);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }",
"private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"public StatusSubMenu(SystrayServiceJdicImpl tray)\n {\n \n parentSystray = tray;\n \n this.setText(Resources.getString(\"setStatus\"));\n this.setIcon(\n new ImageIcon(Resources.getImage(\"statusMenuIcon\")));\n \n /* makes the menu look better */\n this.setPreferredSize(new java.awt.Dimension(28, 24));\n \n this.init();\n }",
"private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }",
"@Override\n public void onPackageIconChanged() {\n }",
"private boolean initTray(){\r\n\t\tif(SystemTray.isSupported()){\r\n\t\t\tpopup = new PopupMenu(\"JLanSend\");\r\n\t\t\t/*\r\n\t\t\tMenuItem send = new MenuItem(\"Send File\");\r\n\t\t\tsendStat = new MenuItem(\"Sending: 0\");\r\n\t\t\trecvStat = new MenuItem(\"Receiving: 0\");\r\n\t\t\t*/\r\n\t\t\tMenuItem exit = new MenuItem(\"Exit\");\r\n\t\t\texit.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO do this better\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t/*\r\n\t\t\tCheckboxMenuItem recv = new CheckboxMenuItem(\"Receive Files\", true);\r\n\t\t\t\r\n\t\t\tpopup.add(send);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\tpopup.add(sendStat);\r\n\t\t\tpopup.add(recvStat);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\tpopup.add(recv);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\t*/\r\n\t\t\tMenuItem show = new MenuItem(\"show/hide JLanSend\");\r\n\t\t\tshow.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tmw.toggleVisibility();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpopup.add(show);\r\n\t\t\tpopup.add(exit);\r\n\t\t\t\r\n\t\t\tURL imageURL = JLanSend.class.getResource(\"icon.png\");\r\n\t\t\ttrayicon = new TrayIcon(new ImageIcon(imageURL).getImage(), \"JLanSend\", popup);\r\n\t\t\ttrayicon.setImageAutoSize(true);\r\n\t\t\ttrayicon.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tmw.toggleVisibility();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tSystemTray systray = SystemTray.getSystemTray();\r\n\t\t\ttry {\r\n\t\t\t\tsystray.add(trayicon);\r\n\t\t\t} catch (AWTException e){\r\n\t\t\t\t// free up some minimal resources\r\n\t\t\t\tsendStat = null;\r\n\t\t\t\trecvStat = null;\r\n\t\t\t\tpopup = null;\r\n\t\t\t\ttrayicon = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void displayTray(String line) throws AWTException {\n SystemTray tray = SystemTray.getSystemTray();\n\n //If the icon is a file\n Image image = Toolkit.getDefaultToolkit().createImage(\"icon.png\");\n //Alternative (if the icon is on the classpath):\n //Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"icon.png\"));\n\n TrayIcon trayIcon = new TrayIcon(image, \"Tray Demo\");\n //Let the system resize the image if needed\n trayIcon.setImageAutoSize(true);\n //Set tooltip text for the tray icon\n trayIcon.setToolTip(\"System tray icon demo\");\n tray.add(trayIcon);\n\n trayIcon.displayMessage(\"HairDressersSalon\", line, TrayIcon.MessageType.INFO);\n }",
"public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }",
"private void setMenuBarMnemonics()\n {\n if (!OSUtil.IS_MAC)\n {\n // Menus\n if (this.menuFile.getText().length() > 0)\n this.menuFile.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile\").charAt(0));\n if (this.menuProfiles.getText().length() > 0)\n this.menuProfiles.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles\").charAt(0));\n if (this.menuHelp.getText().length() > 0)\n this.menuHelp.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp\").charAt(0));\n // File sub menus\n if (this.menuFile_Parameters.getText().length() > 0)\n this.menuFile_Parameters.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters\").charAt(0));\n if (this.menuFile_Quit.getText().length() > 0)\n this.menuFile_Quit.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit\").charAt(0));\n // Help sub menus\n if (this.menuHelp_Update.getText().length() > 0)\n this.menuHelp_Update.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update\").charAt(0));\n if (this.menuHelp_Doc.getText().length() > 0)\n this.menuHelp_Doc.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc\").charAt(0));\n if (this.menuHelp_FAQ.getText().length() > 0)\n this.menuHelp_FAQ.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ\").charAt(0));\n if (this.menuHelp_About.getText().length() > 0)\n this.menuHelp_About.setMnemonic(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About\").charAt(0));\n }\n }",
"public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }",
"private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}",
"public BufferedImage getTrayiconActive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_ACTIVE);\n }",
"public void add(final TrayIcon icon) {\n if (SystemTray.isSupported()) {\n try {\n tray.add(icon);\n } catch (final Exception e) {\n }\n }\n }",
"public void remove() {\n if (SystemTray.isSupported()) {\n try {\n tray.remove(Tray.sysTray);\n } catch (final Exception e) {\n }\n }\n }",
"void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }",
"public void clearMainIcon();",
"@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void windowIconified(WindowEvent arg0) {\n\n }",
"@Override\n public void setIconURI(String arg0)\n {\n \n }",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic void windowIconified(WindowEvent arg0)\n\t{\n\t\t\n\t}",
"public ShutDown() {\n initComponents();\n this.setPreferredSize(new Dimension(365, 335));\n this.setMaximumSize(new Dimension(365, 335));\n this.setMinimumSize(new Dimension(365, 335));\n this.setBounds(600, 80, 365, 335);\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Pictures/icon.jpg\")));\n\n }",
"public void pushStatusIcon(IconReference ref);",
"public FRMUpdateRepair() {\n initComponents();\n this.setLocationRelativeTo(null);\n setIconImage(new ImageIcon(getClass().getResource(\"icono.png\")).getImage());\n }",
"@Override\n public void windowIconified(WindowEvent e)\n {\n\n }",
"private void initialize() {\r\n this.setJMenuBar(getMainMenuBar());\r\n this.setContentPane(getPaneContent());\r\n\r\n this.setSize(800, 600);\r\n this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n this.addWindowListener(new java.awt.event.WindowAdapter() { \r\n\r\n \tpublic void windowClosing(java.awt.event.WindowEvent e) { \r\n\r\n \t\tgetMainMenuBar().getMenuFileControl().exit();\r\n \t}\r\n });\r\n\r\n this.setVisible(false);\r\n\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\tsuper.windowIconified(e);\n\t\t\t}",
"public BufferedImage getTrayiconInactive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_INACTIVE);\n }",
"public SplashScreen() {\r\n instance = this;\r\n\r\n width = 600;\r\n height = 600;\r\n\r\n icon = \"graphics/application/icon_96.png\";\r\n }",
"public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void windowIconified( WindowEvent e ) {\n\t\t\n\t}",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }",
"@Override\n public void windowIconified(WindowEvent e) {\n }"
]
| [
"0.7602504",
"0.73673683",
"0.7358876",
"0.7351138",
"0.7294668",
"0.7048497",
"0.6878309",
"0.67034644",
"0.66525704",
"0.66505164",
"0.6620077",
"0.6583604",
"0.6555529",
"0.6555529",
"0.64985496",
"0.6492921",
"0.6405128",
"0.63900536",
"0.63473564",
"0.6344716",
"0.63440365",
"0.6343635",
"0.6342741",
"0.63422203",
"0.63297415",
"0.63131267",
"0.63034874",
"0.62895066",
"0.62830096",
"0.628296",
"0.62820095",
"0.6240256",
"0.62316495",
"0.62261444",
"0.6225871",
"0.6189901",
"0.61785567",
"0.61759585",
"0.6167315",
"0.6165133",
"0.616237",
"0.61506635",
"0.61475956",
"0.6135204",
"0.6121598",
"0.61093706",
"0.60866416",
"0.60857415",
"0.6047517",
"0.6042854",
"0.60330427",
"0.6030034",
"0.5980751",
"0.5976614",
"0.5974504",
"0.5974504",
"0.5959674",
"0.5951483",
"0.59350765",
"0.59053725",
"0.59010464",
"0.5891581",
"0.5891581",
"0.5891581",
"0.5891581",
"0.5891581",
"0.5891581",
"0.5891581",
"0.5891581",
"0.58683056",
"0.58683056",
"0.58683056",
"0.58683056",
"0.58683056",
"0.58668727",
"0.58668727",
"0.5860858",
"0.581716",
"0.5815771",
"0.5805152",
"0.5800424",
"0.5786525",
"0.57815254",
"0.5771318",
"0.5768478",
"0.5764499",
"0.5764499",
"0.5764499",
"0.5764499",
"0.5764499",
"0.5763093",
"0.5763093",
"0.575899",
"0.5751384",
"0.5751384",
"0.5751384",
"0.5751384",
"0.5751384",
"0.5751384",
"0.5751384"
]
| 0.73637676 | 2 |
Update the tool tip of the system tray depending on the state of the connection | private void updateSystemTrayToolTip()
{
if (OSUtil.IS_LINUX)
this.systemTray.setToolTip("SFR WiFi Public : Connecté");
else
this.systemTray.setToolTip(FrmMainController.APP_NAME + " " + FrmMainController.APP_VERSION + FrmMainController.LINE_SEPARATOR + "SFR WiFi Public : Connecté");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateTrayIcon(Boolean state) {\n if (lastState == state) {\n return;\n }\n \n if (true == state) {\n this.trayicon.setImage(this.statusImages[0]);\n this.trayicon.setToolTip(this.statusText[0]);\n } else {\n this.trayicon.setImage(this.statusImages[1]);\n this.trayicon.setToolTip(this.statusText[1]);\n }\n \n this.lastState = state;\n }",
"public void setTrayIcon()\n\t{\n\t\tImage image = new Image(display, PropertyManager.getInstance().getProperty(\"ICON_FOLDER\"));\n\t\tfinal Tray tray = display.getSystemTray();\n\n\t\tif (tray == null)\n\t\t{\n\t\t\tSystem.out.println(\"The system tray is not available\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal TrayItem item = new TrayItem(tray, SWT.NONE);\n\t\t\titem.setToolTipText(PropertyManager.getInstance().getProperty(\"SOFT_INFO\"));\n\n\t\t\tfinal Menu menu = new Menu(shell, SWT.POP_UP);\n\n\t\t\tMenuItem mi1 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi2 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi3 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi4 = new MenuItem(menu, SWT.PUSH);\n\n\t\t\tmi1.setText(\"Show\");\n\t\t\tmi1.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi2.setText(\"Hide\");\n\t\t\tmi2.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi3.setText(\"Change Operator\");\n\t\t\tmi3.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tlogin = \"\";\n\t\t\t\t\tpassword = \"\";\n\t\t\t\t\tInputDialog opDialog = new InputDialog(shell, SWT.DIALOG_TRIM);\n\t\t\t\t\tshell.setEnabled(!shell.getEnabled());\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_WAIT));\n\t\t\t\t\tString credential = opDialog.createDialogArea();\n\t\t\t\t\tlogin = credential.substring(0, credential.indexOf(File.separator));\n\t\t\t\t\tpassword = credential.substring(credential.indexOf(File.separator));\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_ARROW));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi4.setText(\"Close\");\n\t\t\tmi4.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.addListener(SWT.MenuDetect, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tmenu.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.setImage(image);\n\t\t}\n\t}",
"public void setTrayIcon(Boolean state) {\n if (true == state) {\n this.trayicon = new TrayIcon(this.statusImages[0], this.statusText[0]);\n } else {\n this.trayicon = new TrayIcon(this.statusImages[1], this.statusText[1]);\n }\n \n this.trayicon.setImageAutoSize(true); \n \n try {\n this.systemtray.add(this.trayicon);\n this.addMenuItems();\n } catch (AWTException e) {\n System.err.println(\"TrayIcon could not be added.\");\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n }",
"public TrayHandler() {\n this.statusImages[0] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/active.png\");\n this.statusImages[1] = Toolkit.getDefaultToolkit().getImage(\"src/apache2tray/images/inactive.png\");\n \n this.statusText[0] = \"Apache is running\";\n this.statusText[1] = \"Apache is not running\";\n \n this.systemtray = SystemTray.getSystemTray();\n }",
"public abstract void notifyTray (final SystemTraySupport traySupport);",
"public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }",
"public void showBalloonTip() {\n TimingUtils.showTimedBalloon(balloonTip , 3000);\n }",
"public void tipOfTheDay(boolean force) {\n\t\tProperties props = new Properties();\n\t\ttry {\n\t\t\tprops.load(RailGUI.class.getResourceAsStream(\"/org/railsim/gui/resources/totd.properties\"));\n\t\t} catch (IOException ex) {\n\t\t\treturn;\n\t\t} catch (NullPointerException e) {\n\t\t\tdataCollector.collector.gotException(e);\n\t\t}\n\n\t\tTipModel tips = TipLoader.load(props);\n\n\t\t/*\tDefaultTipModel tips = new DefaultTipModel();\n\t\t // plain text\n\t\t tips\n\t\t .add(new DefaultTip(\n\t\t \"tip1\",\n\t\t \"SimplyTrain Tip 1\"));\n\n\t\t // html text\n\t\t tips.add(new DefaultTip(\"tip2\",\n\t\t \"<html>This is an html <b>TIP</b><br><center>\"\n\t\t + \"<table border=\\\"1\\\">\" + \"<tr><td>1</td><td>entry 1</td></tr>\"\n\t\t + \"<tr><td>2</td><td>entry 2</td></tr>\"\n\t\t + \"<tr><td>3</td><td>entry 3</td></tr>\" + \"</table>\"));\n\n\t\t // a Component\n\t\t tips.add(new DefaultTip(\"tip3\", new JTree()));\n\n\t\t // an Icon\n\t\t tips.add(new DefaultTip(\"tip 4\", new ImageIcon(BasicTipOfTheDayUI.class\n\t\t .getResource(\"TipOfTheDay24.gif\"))));\n\t\t */\n\t\tfinal JTipOfTheDay totd = new JTipOfTheDay(tips);\n\t\tint t = dataCollector.collector.prefs_totd.getInt(\"lasttip\", 0);\n\t\tif ((t + 1) < totd.getModel().getTipCount()) {\n\t\t\ttotd.setCurrentTip(t + 1);\n\t\t} else {\n\t\t\ttotd.setCurrentTip(0);\n\t\t}\n\n\t\tif (force) {\n\t\t\tfinal JTipOfTheDay.ShowOnStartupChoice fake = new JTipOfTheDay.ShowOnStartupChoice() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isShowingOnStartup() {\n\t\t\t\t\treturn totd.isShowingOnStartup(dataCollector.collector.prefs_totd);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void setShowingOnStartup(boolean showOnStartup) {\n\t\t\t\t\tif (showOnStartup) {\n\t\t\t\t\t\ttotd.forceShowOnStartup(dataCollector.collector.prefs_totd);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdataCollector.collector.prefs_totd.flush();\n\t\t\t\t\t\t} catch (BackingStoreException e) {\n\t\t\t\t\t\t\tdataCollector.collector.gotException(e);\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\ttotd.showDialog(this, fake, true);\n\t\t} else {\n\t\t\ttotd.showDialog(this, dataCollector.collector.prefs_totd);\n\t\t}\n\t\tdataCollector.collector.prefs_totd.putInt(\"lasttip\", totd.getCurrentTip());\n\t\ttry {\n\t\t\tdataCollector.collector.prefs_totd.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tdataCollector.collector.gotException(e);\n\t\t}\n\t}",
"private void addApplicationSystemTray()\n {\n // Check if the OS has a system tray\n if (SystemTray.isSupported())\n {\n SystemTray tray = SystemTray.getSystemTray();\n \n // Create the popup menu of the system tray\n GenericPopupMenu.PopupMenuType popupMenuType = (OSUtil.IS_MAC ? GenericPopupMenu.PopupMenuType.AWT : GenericPopupMenu.PopupMenuType.SWING);\n this.popupMenu = new GenericPopupMenu(popupMenuType, \"\");\n GenericMenuItem.MenuItemType menuItemType = (OSUtil.IS_MAC ? GenericMenuItem.MenuItemType.AWT : GenericMenuItem.MenuItemType.SWING);\n GenericMenuItemSeparator.MenuItemSeparatorType menuItemSeparatorType = (OSUtil.IS_MAC ? GenericMenuItemSeparator.MenuItemSeparatorType.AWT : GenericMenuItemSeparator.MenuItemSeparatorType.SWING);\n this.popupMenu_ShowApp = new GenericMenuItem(menuItemType, \"Afficher l'application\");\n this.popupMenu_Blanc1 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_PauseStart = new GenericMenuItem(menuItemType, \"Pause\");\n this.popupMenu_Blanc2 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Profiles = new GenericMenuItem(menuItemType, \"Profils\");\n this.popupMenu_Blanc3 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Logs = new GenericMenuItem(menuItemType, \"Consulter les logs\");\n this.popupMenu_Parameters = new GenericMenuItem(menuItemType, \"Paramètres\");\n this.popupMenu_Blanc4 = new GenericMenuItemSeparator(menuItemSeparatorType);\n this.popupMenu_Quit = new GenericMenuItem(menuItemType, \"Quitter\");\n \n // Display the top item in bold only on Windows\n if (OSUtil.IS_WINDOWS)\n this.popupMenu_ShowApp.setFont(new Font(menuProfiles.getFont().getName(), Font.BOLD, menuProfiles.getFont().getSize()));\n \n this.popupMenu_Quit.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n System.exit(0);\n }\n });\n this.popupMenu_ShowApp.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n setState(FrmMain.NORMAL);\n setVisible(true);\n }\n });\n this.popupMenu_PauseStart.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start\")))\n {\n popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\"));\n }\n else if (popupMenu_PauseStart.getLabel().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\")))\n {\n popupMenu_PauseStart.setLabel(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Start\"));\n }\n }\n });\n this.popupMenu_Parameters.addActionListener( new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n this.popupMenu.addMenuItem(this.popupMenu_ShowApp);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc1);\n this.popupMenu.addMenuItem(this.popupMenu_PauseStart);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc2);\n this.popupMenu.addMenuItem(this.popupMenu_Profiles);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc3);\n this.popupMenu.addMenuItem(this.popupMenu_Logs);\n this.popupMenu.addMenuItem(this.popupMenu_Parameters);\n this.popupMenu.addMenuItemSeparator(this.popupMenu_Blanc4);\n this.popupMenu.addMenuItem(this.popupMenu_Quit);\n \n // Create the system tray\n GenericTrayIcon.TrayIconType trayIconType = (OSUtil.IS_MAC ? GenericTrayIcon.TrayIconType.DEFAULT : GenericTrayIcon.TrayIconType.CUSTOM);\n systemTray = new GenericTrayIcon(trayIconType,\n ResourcesUtil.SYSTEM_TRAY_IMAGE_ICON.getImage(),\n FrmMainController.APP_NAME,\n this.popupMenu.getCurrentPopupMenu());\n \n //To catch events on the popup menu\n systemTray.setImageAutoSize(true);\n systemTray.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n // TODO: manage double-click\n }\n });\n \n try\n {\n if (OSUtil.IS_MAC)\n tray.add((TrayIcon)systemTray.getCurrentTrayIcon());\n else\n tray.add((JTrayIcon)systemTray.getCurrentTrayIcon());\n }\n catch (Exception e)\n { }\n }\n else // If there is no system tray, we don't do anything\n { }\n }",
"private static void initSystemTray() {\n if (SystemTray.isSupported()) {\n SystemTray tray = SystemTray.getSystemTray();\n PopupMenu menu = new PopupMenu();\n MenuItem exitItem = new MenuItem(Resources.strings().get(\"menu_exit\"));\n exitItem.addActionListener(a -> System.exit(0));\n menu.add(exitItem);\n\n trayIcon = new TrayIcon(Resources.images().get(\"litiengine-icon.png\"), Game.info().toString(), menu);\n trayIcon.setImageAutoSize(true);\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.log(Level.SEVERE, e.getLocalizedMessage(), e);\n }\n }\n }",
"private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}",
"public void activate () {\n\t\tif (_timer!=null) {\n\t\t\treturn;\n\t\t}\n\t\t_timer = new Timer (\"tray-notifier\", true);\n\t\t\n\t\tfinal TimerTask task = \n\t\t\tnew TimerTask () {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tSwingUtilities.invokeLater (new Runnable () {\n\t\t\t\t\t\tpublic void run () {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * @workaround invoca in modo asincrono la modifica tooltip\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tnotifyTray (_traySupport);\n\t\t\t\t\t\t}});\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\tif (_period<0) {\n\t\t\t_timer.schedule (task, _delay);\n\t\t} else {\n\t\t\t_timer.schedule (task, _delay, _period);\n\t\t}\n\t}",
"public void displayTray(String line) throws AWTException {\n SystemTray tray = SystemTray.getSystemTray();\n\n //If the icon is a file\n Image image = Toolkit.getDefaultToolkit().createImage(\"icon.png\");\n //Alternative (if the icon is on the classpath):\n //Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"icon.png\"));\n\n TrayIcon trayIcon = new TrayIcon(image, \"Tray Demo\");\n //Let the system resize the image if needed\n trayIcon.setImageAutoSize(true);\n //Set tooltip text for the tray icon\n trayIcon.setToolTip(\"System tray icon demo\");\n tray.add(trayIcon);\n\n trayIcon.displayMessage(\"HairDressersSalon\", line, TrayIcon.MessageType.INFO);\n }",
"protected void showNotify() {\n try {\n myJump.systemStartThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }",
"private boolean initTray(){\r\n\t\tif(SystemTray.isSupported()){\r\n\t\t\tpopup = new PopupMenu(\"JLanSend\");\r\n\t\t\t/*\r\n\t\t\tMenuItem send = new MenuItem(\"Send File\");\r\n\t\t\tsendStat = new MenuItem(\"Sending: 0\");\r\n\t\t\trecvStat = new MenuItem(\"Receiving: 0\");\r\n\t\t\t*/\r\n\t\t\tMenuItem exit = new MenuItem(\"Exit\");\r\n\t\t\texit.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO do this better\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t/*\r\n\t\t\tCheckboxMenuItem recv = new CheckboxMenuItem(\"Receive Files\", true);\r\n\t\t\t\r\n\t\t\tpopup.add(send);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\tpopup.add(sendStat);\r\n\t\t\tpopup.add(recvStat);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\tpopup.add(recv);\r\n\t\t\tpopup.addSeparator();\r\n\t\t\t*/\r\n\t\t\tMenuItem show = new MenuItem(\"show/hide JLanSend\");\r\n\t\t\tshow.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tmw.toggleVisibility();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpopup.add(show);\r\n\t\t\tpopup.add(exit);\r\n\t\t\t\r\n\t\t\tURL imageURL = JLanSend.class.getResource(\"icon.png\");\r\n\t\t\ttrayicon = new TrayIcon(new ImageIcon(imageURL).getImage(), \"JLanSend\", popup);\r\n\t\t\ttrayicon.setImageAutoSize(true);\r\n\t\t\ttrayicon.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tmw.toggleVisibility();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tSystemTray systray = SystemTray.getSystemTray();\r\n\t\t\ttry {\r\n\t\t\t\tsystray.add(trayicon);\r\n\t\t\t} catch (AWTException e){\r\n\t\t\t\t// free up some minimal resources\r\n\t\t\t\tsendStat = null;\r\n\t\t\t\trecvStat = null;\r\n\t\t\t\tpopup = null;\r\n\t\t\t\ttrayicon = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void updateBusyIcon() {\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }",
"public SystemTrayD() {\n jbInit();\n }",
"private void setAllToolTip() {\n\t\tDeviceSettingsController.setAllToolTip(tooltipAndErrorProperties, deviceName.getText(), vendorId, productId,\n\t\t\t\tmanufacture, productString, autoGenerateSerialNumber, serialNumber, serialNumberIncrement,\n\t\t\t\tenableRemoteWakeup, powerConfiguration, Endpoint_1, fifoBusWidth, fifoClockFrequency, enableDebugLevel,\n\t\t\t\tdebugValue, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, interFaceType, uvcVersion,\n\t\t\t\tuvcHeaderAddition, enableFPGA, fpgaFamily, browseBitFile, i2cSlaveAddress, deviceSttingFirmWare,\n\t\t\t\tdeviceSttingI2CFrequency);\n\t}",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"public void setActBarConnectIcon(){\n \tif(ConnectIcon == null && BatteryIcon != null)\n \t\treturn;\n \t\n \tif(NetworkModule.IsConnected()==NetworkModule.CONN_CLOSED)\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_disconnected);\n \t}\n \telse\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_connected);\n \t}\n }",
"private void updateGUIStatus() {\r\n\r\n }",
"public void showTrayInformationMessage(final String message) {\r\n showTrayInformationMessage(getTitle(), message);\r\n }",
"protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\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 }",
"public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }",
"public void showTrayMessage(final String message) {\r\n showTrayMessage(getTitle(), message);\r\n }",
"private void setToolTips() {\n \t// set tool tips\n Tooltip startTip, stopTip, filterTip, listViewTip, viewAllTip, viewInfoTip, removeTip, editRuleFileTip, editRulePathTip;\n startTip = new Tooltip(ToolTips.getStarttip());\n stopTip = new Tooltip(ToolTips.getStoptip());\n filterTip = new Tooltip(ToolTips.getFiltertip());\n listViewTip = new Tooltip(ToolTips.getListviewtip());\n viewAllTip = new Tooltip(ToolTips.getViewalltip());\n viewInfoTip = new Tooltip(ToolTips.getViewinfotip());\t\n removeTip = new Tooltip(ToolTips.getRemovetip());\n editRuleFileTip = new Tooltip(ToolTips.getEditrulefiletip());\n editRulePathTip = new Tooltip(ToolTips.getEditrulepathtip());\n \n startButton.setTooltip(startTip);\n stopButton.setTooltip(stopTip);\n filterButton.setTooltip(filterTip);\n unseenPacketList.setTooltip(listViewTip);\n viewAll.setTooltip(viewAllTip);\n viewInformation.setTooltip(viewInfoTip);\n removeButton.setTooltip(removeTip);\n editRuleFileButton.setTooltip(editRuleFileTip);\n editRuleFilePath.setTooltip(editRulePathTip);\n }",
"public void windowIconified(WindowEvent arg0)\n {\n ti.setImageAutoSize(true);\n\n try\n {\n SystemTray.getSystemTray().add(ti);\n cms.setVisible(false);\n ti.addMouseListener(new MouseListener()\n {\n public void mouseClicked(MouseEvent arg0)\n {\n SystemTray.getSystemTray().remove(ti);\n cms.setVisible(true);\n cms.setState(JFrame.NORMAL);\n }\n public void mouseEntered(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseExited(MouseEvent arg0)\n {\n // Unused\n }\n public void mousePressed(MouseEvent arg0)\n {\n // Unused\n }\n public void mouseReleased(MouseEvent arg0)\n {\n // Unused\n }\n });\n }\n catch (AWTException e)\n {\n e.printStackTrace();\n }\n }",
"@Override\n public void update() {\n super.update();\n Frame parentFrame = getParentFrame(0);\n setEnabled(parentFrame != null);\n setToolTipText(getToolTipText(parentFrame));\n }",
"public BufferedImage getTrayiconActive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_ACTIVE);\n }",
"public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }",
"private void updateNetworkStateUi() {\n if (ArchosUtils.isNetworkConnected(getActivity())) {\n mNetworkStateVeil.animate().alpha(0);\n mNetworkStateVeil.setClickable(false);\n }\n else {\n mNetworkStateVeil.animate().alpha(0.9f);\n mNetworkStateVeil.setClickable(true);\n }\n }",
"protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }",
"public void showTrayInformationMessage(final String title, final String message) {\r\n new AppTrayMessageWindow(this, title, message, AppTrayMessageWindow.MessageType.INFORMATION);\r\n }",
"public void showTipDialog() {\n this.controller.showTipModal(C7251R.string.lys_dls_photo_tip_title, C7251R.string.lys_dls_photo_tip_text, NavigationTag.LYSAddPhotosTip);\n }",
"private void updateTileBar(String title) {\r\n toolbar.setTitle(title);\r\n }",
"@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }",
"@Override\n\tpublic void setCustomTip(boolean isCustomTip) {\n\t\t\n\t}",
"public void MensajeTrayIcon(String texto, MessageType tipo)\n {\n trayIcon.displayMessage(\"Mensaje:\", texto, tipo); \n }",
"@Override\n\tpublic void setTip(double tip) {\n\t\t\n\t}",
"private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\n log.error(\"SystemTray is not supported\");\n return;\n }\n\n SystemTray tray = SystemTray.getSystemTray();\n\n Image icon = createImage(\"/images/b2b.gif\", \"tray icon\");\n trayIcon = new TrayIcon(icon);\n trayIcon.setImageAutoSize(true);\n trayIcon.setToolTip(\"back2back\");\n\n PopupMenu popupMenu = new PopupMenu();\n {\n openWebUIMenuItem = new MenuItem(\"Open back2back web interface\");\n openWebUIMenuItem.addActionListener(B2BTrayIcon::openWebUI);\n popupMenu.add(openWebUIMenuItem);\n }\n popupMenu.addSeparator();\n {\n startAutomaticallyMenuItem = new CheckboxMenuItem(\"Start automatically with system\");\n startAutomaticallyMenuItem.addItemListener(e -> {\n int newState = e.getStateChange();\n setAutoStart(newState == ItemEvent.SELECTED);\n });\n startAutomaticallyMenuItem.setEnabled(serviceController != null);\n popupMenu.add(startAutomaticallyMenuItem);\n }\n popupMenu.addSeparator();\n {\n startMenuItem = new MenuItem(\"Start back2back engine\");\n startMenuItem.setEnabled(false);\n startMenuItem.addActionListener(evt -> {\n try {\n startEngine();\n } catch (ControlException e) {\n log.error(\"Failed to start engine\", e);\n trayIcon.displayMessage(\"back2back\", \"Failed to start engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(startMenuItem);\n }\n {\n stopMenuItem = new MenuItem(\"Stop back2back engine\");\n stopMenuItem.setEnabled(false);\n stopMenuItem.addActionListener(evt -> {\n try {\n stopEngine();\n } catch (ControlException e) {\n trayIcon.displayMessage(\"back2back\", \"Failed to stop engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(stopMenuItem);\n }\n popupMenu.addSeparator();\n {\n MenuItem item = new MenuItem(\"About\");\n item.addActionListener(B2BTrayIcon::about);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Check for update\");\n item.setEnabled(updateManager != null);\n item.addActionListener(B2BTrayIcon::checkForUpdate);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Close tray icon\");\n item.addActionListener(e -> {\n tray.remove(trayIcon);\n System.exit(0);\n });\n popupMenu.add(item);\n }\n\n// popupMenu.addActionListener(e -> log.debug(\"POPUP ACTION\"));\n trayIcon.setPopupMenu(popupMenu);\n\n trayIcon.addActionListener(e -> log.debug(\"TRAY ACTION\"));\n\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.error(\"TrayIcon could not be added.\", e);\n return;\n }\n\n //trayIcon.displayMessage(\"back2back\", \"Tray icon ready\", TrayIcon.MessageType.INFO);\n\n // start status update on background thread\n Thread thread = new Thread(B2BTrayIcon::pollStatus);\n thread.setDaemon(true);\n thread.start();\n\n log.info(\"Tray icon ready.\");\n }",
"@Override\r\n public void mouseDragged(MouseEvent e) {\n Rectangle r = c.getBounds();\r\n c.setBounds(e.getX() + (int) r.getX(), e.getY() + (int) r.getY(),\r\n c.getPreferredSize().width, c.getPreferredSize().height);\r\n Component p = c.getParent();\r\n if (p instanceof JComponent) {\r\n ((JComponent) p).paintImmediately(0, 0, c.getWidth(), c.getHeight());\r\n } else {\r\n p.repaint();\r\n }\r\n if (c instanceof ToggleImage) {\r\n if (this.tip == null) {\r\n this.tip = new JWindow();\r\n this.tip.getContentPane().add(this.pos);\r\n this.tip.pack();\r\n }\r\n ((JComponent) c).setToolTipText(Integer.toString((int) c.getBounds().getX()) + \",\"\r\n + Integer.toString((int) c.getBounds().getY()));\r\n this.pos.setText(Integer\r\n .toString((int) (c.getBounds().x + ((ToggleImage) c).getImageOffset().getX())) + \",\"\r\n + Integer\r\n .toString((int) (c.getBounds().getY()\r\n + ((ToggleImage) c).getImageOffset().getY())));\r\n this.tip.pack();\r\n this.tip.setVisible(true);\r\n this.pos.paintImmediately(0, 0, this.tip.getWidth(), this.tip.getHeight());\r\n }\r\n }",
"private void jBtn_QuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_QuitterActionPerformed\n ImageIcon img = new ImageIcon(\"images/hal-9000-space-odyssey.png\");\n JOptionPane.showMessageDialog(null, \"I'm sorry Dave, I'm afraid I can't \"\n + \"do that\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"I know you and Frank were planning \"\n + \"to disconnect me. And that's something I cannot allow to happen\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"Look Dave, I can see you're really \"\n + \"upset about this. I honestly think you ought to sit down calmly,\"\n + \" take a stress pill, and think things over\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n /*Runtime runtime = Runtime.getRuntime();\n try {\n Process proc = runtime.exec(\"shutdown -s -t 0\");\n } catch (IOException ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }*/\n System.exit(0);\n }",
"public void updateTipAmount(Double value) {\n\t\tString formattedValue = currencyFormat.format(value).toString();\n\t\t// Set the tip amount\n\t\ttvTipAmount.setText(formattedValue);\n\t}",
"public void showTrayMessage(final String title, final String message) {\r\n showTrayMessage(title, message, null);\r\n }",
"public void tip()\r\n\t{\n\t\tSystem.out.println(\"Tipul de organizare: SAT!\");\r\n\t}",
"public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)\n/* */ {\n/* 89 */ this.tipPane = tipPane;\n/* */ }",
"private void updateDockIconPreviewLater() {\n\t\tEventQueue.invokeLater( () -> {\n\t\t\tif( dockIcon != null )\n\t\t\t\tupdateDockIconPreview();\n\t\t} );\n\t}",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }",
"public String getStatusIcon(){\n return (isDone ? \"\\u2713\" : \"\\u2718\");\n }",
"public void afterChange(@NotNull KProperty<?> kProperty, ShopTooltipState shopTooltipState, ShopTooltipState shopTooltipState2) {\r\n Intrinsics.checkParameterIsNotNull(kProperty, \"property\");\r\n ShopTooltipState shopTooltipState3 = shopTooltipState2;\r\n ShopTooltipState shopTooltipState4 = shopTooltipState;\r\n LinearLayout linearLayout = (LinearLayout) this.this$0._$_findCachedViewById(C0010R$id.viewStoreToolTip);\r\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"viewStoreToolTip\");\r\n if (linearLayout.getVisibility() != 8 && shopTooltipState4 != ShopTooltipState.DISMISS && shopTooltipState4 != ShopTooltipState.CANCEL) {\r\n int i = WhenMappings.$EnumSwitchMapping$0[shopTooltipState3.ordinal()];\r\n if (i == 1) {\r\n this.this$0.getSessionManager$app_productionFittsRelease().setStoreToolTipShown(true);\r\n ((LinearLayout) this.this$0._$_findCachedViewById(C0010R$id.viewStoreToolTip)).startAnimation(AnimationUtils.loadAnimation(this.this$0, C0001R$anim.scale_up_pivot_x_50));\r\n } else if (i == 2) {\r\n ((LinearLayout) this.this$0._$_findCachedViewById(C0010R$id.viewStoreToolTip)).startAnimation(AnimationUtils.loadAnimation(this.this$0, C0001R$anim.scale_out_pivot_x_50));\r\n } else if (i == 3) {\r\n Disposable access$getShopTooltipDissmissDisposable$p = this.this$0.shopTooltipDissmissDisposable;\r\n if (access$getShopTooltipDissmissDisposable$p != null) {\r\n access$getShopTooltipDissmissDisposable$p.dispose();\r\n }\r\n ((LinearLayout) this.this$0._$_findCachedViewById(C0010R$id.viewStoreToolTip)).startAnimation(AnimationUtils.loadAnimation(this.this$0, C0001R$anim.scale_out_pivot_x_50));\r\n }\r\n }\r\n }",
"private void configuracoes() {\n setLocationRelativeTo(null);\n this.setIconImage(new ImageIcon(getClass().getResource(SystemMessage.IMAGE_URL)).getImage());\n this.setTitle(SystemMessage.SYSTEM_NAME + \" -\");\n }",
"public StatusSubMenu(SystrayServiceJdicImpl tray)\n {\n \n parentSystray = tray;\n \n this.setText(Resources.getString(\"setStatus\"));\n this.setIcon(\n new ImageIcon(Resources.getImage(\"statusMenuIcon\")));\n \n /* makes the menu look better */\n this.setPreferredSize(new java.awt.Dimension(28, 24));\n \n this.init();\n }",
"private void createTray(Display display) \n\t{\n Tray tray;\n TrayItem item;\n tray = display.getSystemTray();\n\n if (tray == null) {\n System.out.println(\"The system tray is not available\");\n } else {\n item = new TrayItem(tray, SWT.NONE);\n item.setToolTipText(\"Arper Express\");\n item.addListener(SWT.Show, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"show\");\n }\n });\n\n item.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"hide\");\n }\n });\n\n item.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"selection\");\n }\n });\n\n item.addListener(SWT.DefaultSelection, new Listener() {\n public void handleEvent(Event event) {\n System.out.println(\"default selection\");\n }\n });\n\n final Menu menu = new Menu(shell, SWT.POP_UP);\n\n MenuItem openMenuItem = new MenuItem(menu, SWT.PUSH);\n openMenuItem.setText(\"Mostrar\");\n openMenuItem.addListener(SWT.Selection, new Listener() {\n\n public void handleEvent(Event event) {\n shell.setVisible(true);\n shell.setMaximized(true);\n }\n });\n\n MenuItem exitMenuItem = new MenuItem(menu, SWT.PUSH);\n exitMenuItem.setText(\"Salir\");\n exitMenuItem.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event event) {\n System.exit(0);\n }\n });\n\n item.addListener(SWT.MenuDetect, new Listener() {\n public void handleEvent(Event event) {\n menu.setVisible(true);\n }\n });\n\n // image = SWTResourceManager.getImage(MakeBreak.class, \"Backup-Green-Button-icon.png\");\n // image = SWTResourceManager.getImage(WpCommenter.class, \"images/mb4.png\");\n// ImageData imageData = new ImageData(\"lib/impresora.png\");\n ImageData imageData = new ImageData(Home.class.getClassLoader().getResourceAsStream(\"impresora.png\"));\n //ImageData imageData = new ImageData(getClass().getResourceAsStream(\"impresora.png\"));\n\n item.setImage(new Image(display,imageData));\n \n shell.addShellListener(new ShellListener() {\n \tpublic void shellActivated(ShellEvent event) {\n\n \t}\n\n \tpublic void shellClosed(ShellEvent event) {\n \t\tevent.doit = false; //!! for this code i looked long time\n shell.setVisible(false);\n }\n\n public void shellDeactivated(ShellEvent event) {\n \n }\n\n public void shellDeiconified(ShellEvent event) {\n\n }\n\n public void shellIconified(ShellEvent event) {\n //shell.setVisible(false);\n }\n });\n \n }\n }",
"private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }",
"public static void updateMessageBox() {\n\t}",
"@SuppressWarnings(\"UnusedParameters\")\n @Subscribe\n public void updateContactTabTips(UpdateContactTabTipsEvent event) {\n updateTabTips(showRedItem2());\n }",
"public void resetShellIcon() {\r\n\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tGDE.shell.setImage(SWTResourceManager.getImage(GDE.IS_MAC ? \"gde/resource/DataExplorer_MAC.png\" : \"gde/resource/DataExplorer.png\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void setToolTip(ARXProcessStatistics stats) {\n\n // Prepare\n double prunedPercentage = new BigDecimal(stats.getTransformationsAvailable())\n .subtract(BigDecimal.valueOf(stats.getTransformationsChecked()))\n .divide(new BigDecimal(stats.getTransformationsAvailable()), 1000, RoundingMode.HALF_UP)\n .multiply(BigDecimal.valueOf(100)).doubleValue();\n \n // Render statistics about the solution space\n StringBuilder sb = new StringBuilder();\n sb.append(Resources.getMessage(\"MainToolBar.1\")); //$NON-NLS-1$\n sb.append(Resources.getMessage(\"MainToolBar.2\")) //$NON-NLS-1$\n .append(stats.getTransformationsAvailable())\n .append(\"\\n\"); //$NON-NLS-1$\n \n sb.append(Resources.getMessage(\"MainToolBar.12\")) //$NON-NLS-1$\n .append(stats.getTransformationsAvailable().subtract(BigInteger.valueOf(stats.getTransformationsChecked())).toString());\n sb.append(\" [\") //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(prunedPercentage))\n .append(\"%]\\n\"); //$NON-NLS-1$\n \n sb.append(Resources.getMessage(\"MainToolBar.18\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString((double)stats.getDuration() / 1000d))\n .append(\"s\\n\"); //$NON-NLS-1$\n \n // Render information about the selected transformation\n if (stats.isSolutationAvailable()) {\n \n // Global transformation scheme\n if (!stats.isLocalTransformation()) {\n sb.append(Resources.getMessage(\"MainToolBar.36\")) //$NON-NLS-1$\n .append(Resources.getMessage(\"MainToolBar.39\")) //$NON-NLS-1$\n .append(stats.getStep(0).isOptimal() ? SWTUtil.getPrettyString(true) : Resources.getMessage(\"MainToolBar.72\"))\n .append(Resources.getMessage(\"MainToolBar.37\")) //$NON-NLS-1$\n .append(Arrays.toString(stats.getStep(0).getTransformation()));\n sb.append(Resources.getMessage(\"MainToolBar.38\")) //$NON-NLS-1$\n .append(stats.getStep(0).getScore().toString());\n for (QualityMetadata<?> metadata : stats.getStep(0).getMetadata()) {\n sb.append(\"\\n - \") //$NON-NLS-1$\n .append(metadata.getParameter()).append(\": \") //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(metadata.getValue()));\n }\n \n // Complex transformation\n } else {\n sb.append(Resources.getMessage(\"MainToolBar.36\")) //$NON-NLS-1$\n .append(Resources.getMessage(\"MainToolBar.70\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(stats.getNumberOfSteps()))\n .append(Resources.getMessage(\"MainToolBar.39\")) //$NON-NLS-1$\n .append(SWTUtil.getPrettyString(false));\n }\n \n // No solution found\n } else {\n sb.append(Resources.getMessage(\"MainToolBar.71\")); //$NON-NLS-1$\n }\n \n this.tooltip = sb.toString();\n this.labelSelected.setToolTipText(tooltip);\n this.labelApplied.setToolTipText(tooltip);\n this.labelTransformations.setToolTipText(tooltip);\n }",
"public void showTrayMessage(final String title, final String message, final ActionListener actionListener) {\r\n new AppTrayMessageWindow(this, title, message, AppTrayMessageWindow.MessageType.NONE, actionListener);\r\n }",
"@Override\n public String getStatusIcon() {\n if (isDone) {\n return \"[X]\";\n } else {\n return \"[ ]\";\n }\n }",
"public void pushStatusIcon(IconReference ref);",
"protected void showNotify () {\n if (timer != null) {\n timer.cancel ();\n }\n\n timer = new Timer ();\n timer.schedule (new updateTask (), 500, 500);\n cityMap.addMapListener (this);\n }",
"private String getStatusIcon() {\n return this.isDone ? \"X\" : \"\";\n }",
"public void setTip(java.lang.String tip)\n {\n this.tip = tip;\n }",
"public StatusBar() {\n super();\n super.setPreferredSize(new Dimension(100, 16));\n setMessage(\"Ready\");\n }",
"void helpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tIcon msgIcon = IconHandler.getIcon().getIcon(\"/Resources/images/notepad.png\");\n\t\tif (msgIcon != null) {\n\t\t\tJOptionPane.showMessageDialog(notepad,\n\t\t\t\t\t\"Unfortunately, the disabled menu items are not available at the moment\\n\"\n\t\t\t\t\t\t\t+ \"But they will be brought to life very soon!\",\n\t\t\t\t\t\"BIGNotepad october 2015\", JOptionPane.PLAIN_MESSAGE, msgIcon);\n\t\t} else {\n\t\t\tJOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\"Unfortunately, the disabled menu items are not available at the moment\\n\"\n\t\t\t\t\t\t\t+ \"But they will be brought to life very soon!\\n\" //\n\t\t\t\t\t\t\t+ \"BIGNotepad october 2015\" + \"\\nIcon not found\\n\",\n\t\t\t\t\t\"BIGNotepad message\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t}",
"public void info(StatusTask t, String msg){\n\t\tt.setStaus(msg);\n\t}",
"void showTooltip();",
"public void updateServerStartStopButtonText() {\r\n serverStartStopButton.setText(topModel.getServerStartStopButtonText());\r\n }",
"void retrieveServerIP(boolean flag) // flag is false when it is executed for first time, else label is updated\n {\n try\n {\n tempAddress = InetAddress.getLocalHost().toString().substring(InetAddress.getLocalHost().toString().lastIndexOf(\"/\")+1);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(this,\"Unable to Retrieve System IP, Restart the Application and Retry\",\"Runtime Error !\",0); // EIWQ\n System.exit(0);\n }\n if(!(tempAddress.equals(serverAddress)))\n {\n serverAddress=tempAddress;\n if(flag)\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n address.setText(\"Type this in client app : \"+serverAddress+\" \");\n }\n });\n }\n }",
"private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\r\n return;\r\n }\r\n final PopupMenu popup = new PopupMenu();\r\n final TrayIcon trayIcon =\r\n new TrayIcon(createImage(\"/config/mut3.png\", \"JFileImporter\"));\r\n final SystemTray tray = SystemTray.getSystemTray();\r\n Font itemFont = new Font(\"Ariel\",Font.BOLD,12);\r\n // Create a popup menu components\r\n MenuItem aboutItem = new MenuItem(\"About\");\r\n MenuItem maxItem = new MenuItem(\"Maximize\");\r\n MenuItem minItem = new MenuItem(\"Minimize\");\r\n MenuItem showSchedulerItem = new MenuItem(\"Show Scheduler\");\r\n MenuItem showImporterItem = new MenuItem(\"Show Importer\");\r\n MenuItem exitItem = new MenuItem(\"Exit\");\r\n\r\n aboutItem.setFont(itemFont);\r\n maxItem.setFont(itemFont);\r\n minItem.setFont(itemFont);\r\n showSchedulerItem.setFont(itemFont);\r\n showImporterItem.setFont(itemFont);\r\n exitItem.setFont(itemFont);\r\n //Add components to popup menu\r\n popup.add(aboutItem);\r\n popup.addSeparator();\r\n popup.add(maxItem);\r\n popup.add(minItem);\r\n popup.addSeparator();\r\n popup.add(showSchedulerItem);\r\n popup.add(showImporterItem); \r\n popup.addSeparator();\r\n popup.add(exitItem);\r\n \r\n trayIcon.setPopupMenu(popup);\r\n \r\n try {\r\n tray.add(trayIcon);\r\n } catch (AWTException e) {\r\n \tJOptionPane.showMessageDialog(null, \"Tray Icon could not be added \"+e, \"Error creating Tray Icon\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n trayIcon.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n \r\n maxItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n minItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"JFileImporter\", \"Importer Still Running! Right Click for more options\", TrayIcon.MessageType.INFO);\r\n \tJImporterMain.minimize();\r\n \t\r\n }\r\n });\r\n \r\n aboutItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"About\", \"JFileImporter\\nVersion\\t1.00\\nDeveloped By:\\tAnil Sehgal\", TrayIcon.MessageType.INFO);\r\n }\r\n });\r\n \r\n showImporterItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.showImporter();\r\n }\r\n });\r\n showSchedulerItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tString schedulerShown = LoadProfileUI.showScheduler();\r\n \tif(schedulerShown.equals(\"npe\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Please initialize the Scheduler from Menu\", TrayIcon.MessageType.WARNING);\r\n \t}else if(schedulerShown.equals(\"ge\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Error Launching Scheduler, Please contact technical support\", TrayIcon.MessageType.ERROR);\r\n \t}\r\n }\r\n });\r\n trayIcon.setImageAutoSize(true);\r\n trayIcon.setToolTip(\"JFileImporter\"); \r\n exitItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tint option = JOptionPane.showConfirmDialog(null, \"If You Quit the Application, the scheduled job will terminate!\", \"Exit Confirmation\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \tif(option == JOptionPane.OK_OPTION){\r\n\t tray.remove(trayIcon);\r\n\t System.exit(0);\r\n \t}\r\n }\r\n });\r\n }",
"private void setLaunchPageStatus() {\n double rWidth = rootPanel.getWidth();\n double rHeight = rootPanel.getHeight();\n // set login page advertisement icon\n loginAdsIcons[0] = new ImageIcon(rootPath.concat(\"/img/xingbake1.jpg\"));\n loginAdsIcons[1] = new ImageIcon(rootPath.concat(\"/img/xingbake2.jpg\"));\n loginAdsIcons[2] = new ImageIcon(rootPath.concat(\"/img/xingbake3.jpg\"));\n loginAdsIcons[3] = new ImageIcon(rootPath.concat(\"/img/kendeji1.jpg\"));\n loginAdsIcons[4] = new ImageIcon(rootPath.concat(\"/img/kendeji2.jpg\"));\n double raRatio = 0.33;\n for(ImageIcon icon: loginAdsIcons) {\n Utils.setIconByHeight(raRatio,rHeight,icon);\n }\n launchAdsLabel.setText(\"\");\n // set wifi icons\n wifiLaunchIcons[0] = new ImageIcon(rootPath + \"/img/launch1.png\");\n wifiLaunchIcons[1] = new ImageIcon(rootPath + \"/img/launch2.png\");\n wifiLaunchIcons[2] = new ImageIcon(rootPath + \"/img/launch3.png\");\n wifiLaunchIcons[3] = new ImageIcon(rootPath + \"/img/launch4.png\");\n double rlRatio = 0.2;\n for(ImageIcon icon: wifiLaunchIcons) {\n Utils.setIconByWidth(rlRatio,rWidth,icon);\n }\n launchIcon = wifiLaunchIcons[3];\n Utils.setIconByWidth(rlRatio,rWidth,rootPath.concat(\"/img/unLaunch.png\"));\n wifiIconLabel.setText(\"\");\n // set visibility\n connectStatusL.setVisible(false);\n connectStatusL.setText(\"\");\n // set connect status icon\n connectedIcon = new ImageIcon(rootPath + \"/img/connected.png\");\n connectedOpaqueIcon = new ImageIcon(rootPath + \"/img/connected_opaque.png\");\n unconnectedIcon = new ImageIcon(rootPath + \"/img/unconnected.png\");\n connectingIcon = new ImageIcon(rootPath + \"/img/connecting.png\");\n double rcRatio = 0.03;\n ImageIcon connIcons[] = {connectedIcon,connectedOpaqueIcon,unconnectedIcon,connectingIcon};\n for(ImageIcon icon: connIcons) {\n Utils.setIconByWidth(rcRatio,rWidth,icon);\n }\n // set icons\n connectStatusL.setIcon(connectedIcon);\n }",
"@Override\n public void mouseClicked(MouseEvent evt) {\n if (evt.getButton() == MouseEvent.BUTTON1 && parent.getExtendedState() == JFrame.ICONIFIED) {\n MensajeTrayIcon(\"Modulo Envio ejecutandose en segundo plano\", TrayIcon.MessageType.INFO);\n }\n }",
"private void buttonLaunchPause_MouseClicked(MouseEvent evt)\n {\n if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch\")))\n {\n buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\"));\n labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched\"));\n }\n else if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\")))\n {\n buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch\"));\n labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Paused\"));\n }\n }",
"private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }",
"@Override\n public boolean showTips() {\n return mesoCfgXML.getTipsOption();\n }",
"public void notify(final String caption, final String text,\n final MessageType type) {\n Tray.sysTray.displayMessage(caption, text, type);\n }",
"protected void setToolTip(String toolTip) {\n\tthis.toolTip = toolTip;\n }",
"public void replenishPaperTray()\n {\n printerSimulator.replenishPaperTray (\n Printer.PAPER_STACK_SIZE );\n }",
"public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }",
"public String getStatusIcon() {\n return isDone\n ? \"\\u2713\"\n : \"\\u2718\";\n }",
"private void initStatusBar() {\n ModelerSession.getStatusBarService().addStatusBarItem(\n getIdentifier(), selectedToolStatusBarItem, JideBoxLayout.FIX\n );\n }",
"private void showInfo(String message){ infoLabel.setText(message);}",
"public void update() {\n menu = new PopupMenu();\n\n final MenuItem add = new MenuItem(Messages.JOINCHANNEL);\n\n final MenuItem part = new MenuItem(Messages.PARTCHANNEL);\n\n final MenuItem reload = new MenuItem(Messages.RELOAD);\n\n final Menu language = new Menu(Messages.LANGUAGE);\n\n final MenuItem eng = new MenuItem(Messages.ENGLISH);\n\n final MenuItem fr = new MenuItem(Messages.FRENCH);\n\n final MenuItem sp = new MenuItem(Messages.SPANISH);\n\n final MenuItem debug = new MenuItem(Messages.DEBUG);\n\n final MenuItem about = new MenuItem(Messages.ABOUT);\n\n final MenuItem exit = new MenuItem(Messages.EXIT);\n exit.addActionListener(e -> Application.getInstance().disable());\n about.addActionListener(e -> JOptionPane.showMessageDialog(null,\n Messages.ABOUT_MESSAGE));\n add.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n if (Application.getInstance().getChrome().getToolbar()\n .getButtonCount() < 10) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this, e.getID(),\n \"add\"));\n } else {\n JOptionPane.showMessageDialog(null,\n \"You have reached the maximum amount of channels!\");\n }\n }\n });\n part.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n Application.getInstance().getChrome().getToolbar().parent\n .actionPerformed(new ActionEvent(this,\n ActionEvent.ACTION_PERFORMED, \"remove\"\n + \".\"\n + Application.getInstance().getChrome()\n .getToolbar().getCurrentTab()));\n }\n });\n debug.addActionListener(e -> {\n if (!LoadScreen.getDebugger().isVisible()) {\n LoadScreen.getDebugger().setVisible(true);\n } else {\n LoadScreen.getDebugger().setVisible(true);\n }\n });\n\n eng.addActionListener(arg0 -> {\n Messages.setLanguage(Language.ENGLISH);\n Application.getInstance().getTray().update();\n });\n\n fr.addActionListener(arg0 -> {\n Messages.setLanguage(Language.FRENCH);\n Application.getInstance().getTray().update();\n });\n\n sp.addActionListener(arg0 -> {\n Messages.setLanguage(Language.SPANISH);\n Application.getInstance().getTray().update();\n });\n\n if (eng.getLabel().equalsIgnoreCase(Messages.CURR)) {\n eng.setEnabled(false);\n }\n\n if (fr.getLabel().equalsIgnoreCase(Messages.CURR)) {\n fr.setEnabled(false);\n }\n\n if (sp.getLabel().equalsIgnoreCase(Messages.CURR)) {\n sp.setEnabled(false);\n }\n\n if (Application.getInstance().getChrome().getToolbar().getCurrentTab() == -1) {\n part.setEnabled(false);\n }\n if (!Application.getInstance().getChrome().getToolbar().isAddVisible()) {\n add.setEnabled(false);\n }\n\n language.add(eng);\n language.add(fr);\n language.add(sp);\n\n menu.add(add);\n menu.add(part);\n menu.add(reload);\n menu.addSeparator();\n menu.add(language);\n menu.addSeparator();\n menu.add(debug);\n menu.add(about);\n menu.addSeparator();\n menu.add(exit);\n Tray.sysTray.setPopupMenu(menu);\n }",
"public void showBoomKeyTip() {\n }",
"@Override\n public void setShowTips(boolean showFlag) {\n mesoCfgXML.setTipsOption(showFlag);\n }",
"@Override\r\n\tpublic void Update() {\n\t\tSystem.out.println(name+\",¹Ø±ÕNBA£¬¼ÌÐø¹¤×÷£¡\"+abstractNotify.getAction());\r\n\t}",
"public String getStatusIcon() {\n return (isDone ? \"✓\" : \"✘\"); //return tick or X symbols\n }",
"private void updateLabel(String text) {\r\n labelT.setText(text);\r\n labelT.setToolTipText(text);\r\n }",
"public String getStatusIcon() {\n return (isDone ? \"X\" : \" \"); //mark done task with X\n }",
"@FXML\n private void updateGUI(){\n\n spriteImage.setImage(new Image(Main.gang.getCarSpriteURL()));\n\n // updating labels\n distanceLabel.setText(\"Travelled: \"+ Main.gang.getDistance() +\"Mi\");\n conditionsLabel.setText(\"Health Cond: \"+ Main.gang.getHealthConditions());\n daysLabel.setText(\"Days: \"+ Main.gang.getDays());\n\n if (Main.gang.isMoving()) {\n setOutBtn.setText(\"Speedup\");\n statusLabel.setText(\"Status: Moving\");\n } else {\n setOutBtn.setText(\"Set out\");\n statusLabel.setText(\"Status: Resting\");\n }\n }",
"public String getStatusIcon() {\n return (isDone ? \"X\" : \" \");\n }",
"public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }",
"protected void hideNotify() {\n try {\n myJump.systemPauseThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }",
"private void updateTileState(int tileState, Tile tile) {\r\n CharSequence name = \"LTE\";\r\n switch (tileState){\r\n case Tile.STATE_ACTIVE:\r\n name = name + \" on\";\r\n break;\r\n case Tile.STATE_INACTIVE:\r\n name = name + \" off\";\r\n break;\r\n }\r\n\r\n Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.lte_text);\r\n tile.setIcon(icon);\r\n tile.setLabel(name);\r\n tile.setState(tileState);\r\n tile.updateTile();\r\n }",
"public String getStatusIcon() {\r\n return (isDone ? \"\\u2718\" : \" \");\r\n }"
]
| [
"0.7029735",
"0.6484738",
"0.64443743",
"0.6301863",
"0.6246847",
"0.59668463",
"0.59273696",
"0.5914442",
"0.59061855",
"0.5898063",
"0.58773804",
"0.58187985",
"0.57943666",
"0.57887703",
"0.5719084",
"0.5717178",
"0.57063866",
"0.5652862",
"0.55637646",
"0.5556901",
"0.55535895",
"0.5519539",
"0.550804",
"0.5501779",
"0.54944927",
"0.54843634",
"0.5479531",
"0.5471227",
"0.5407681",
"0.5392926",
"0.5377433",
"0.5374877",
"0.5360797",
"0.53469986",
"0.5337308",
"0.532745",
"0.52977794",
"0.52930665",
"0.5291097",
"0.52802384",
"0.52730346",
"0.52720594",
"0.52599436",
"0.5257115",
"0.52466893",
"0.52460694",
"0.5242622",
"0.5237453",
"0.52297246",
"0.52257526",
"0.52257526",
"0.52257526",
"0.5215153",
"0.52138114",
"0.51979864",
"0.51966697",
"0.51957124",
"0.5193773",
"0.51893514",
"0.5185301",
"0.5184626",
"0.5178011",
"0.51776314",
"0.5174033",
"0.51722616",
"0.51690793",
"0.5161682",
"0.5155836",
"0.51499903",
"0.5145191",
"0.51390964",
"0.5136668",
"0.5135415",
"0.5130116",
"0.51252663",
"0.5104344",
"0.5087213",
"0.5087079",
"0.50823987",
"0.50786996",
"0.50715035",
"0.50667894",
"0.5064774",
"0.5064375",
"0.5045926",
"0.50455636",
"0.5042482",
"0.5040784",
"0.50374633",
"0.50327307",
"0.5025519",
"0.50227576",
"0.50222224",
"0.5009441",
"0.50080645",
"0.500519",
"0.49974346",
"0.49915737",
"0.4984096",
"0.49794045"
]
| 0.8106868 | 0 |
Fix the size of a swing component | private void setSize(JComponent target, Dimension d)
{
target.setMinimumSize(d);
target.setMaximumSize(d);
target.setPreferredSize(d);
target.setSize(d);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }",
"public void setSize();",
"public void setfixedSize(){\n this.setPreferredSize( new Dimension( PANELWIDTH,0) );\n this.setMaximumSize( new Dimension( PANELWIDTH,0) );\n this.setMinimumSize( new Dimension( PANELWIDTH,0) );\n }",
"private void extendedSize(){\n setSize(600,400);\n }",
"private void actionModifySize() {\n CSizePanel csizePanel = new CSizePanel(layoutPanel.getLayoutSize(),\n false);\n int result = JOptionPane.showConfirmDialog(this, csizePanel,\n \"Modify layout size\", JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n try {\n int sizeX = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxX].getText());\n int sizeY = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxY].getText());\n if (sizeX >= LayoutPanel.minXCells\n && sizeX <= LayoutPanel.maxXCells\n && sizeY >= LayoutPanel.minYCells\n && sizeY <= LayoutPanel.maxYCells) {\n RepType rtype = RepType.CLEAR;\n if (csizePanel.newButton.isSelected()) {\n rtype = RepType.CLEAR;\n } else if (csizePanel.rptButton.isSelected()) {\n rtype = RepType.REPEAT;\n } else if (csizePanel.altButton.isSelected()) {\n rtype = RepType.ALT;\n }\n\n changeLayoutSize(new Dimension(sizeX, sizeY), rtype);\n } else {\n JOptionPane.showMessageDialog(null,\n \"Size x must be between \" + LayoutPanel.minXCells\n + \" and \" + LayoutPanel.maxXCells\n + \", or size y must be between \"\n + LayoutPanel.minYCells + \" and \"\n + LayoutPanel.maxYCells + \".\");\n }\n } catch (NumberFormatException ne) {\n JOptionPane.showMessageDialog(null, \"Invalid number.\");\n }\n }\n }",
"private void basicSize(){\n setSize(375,400);\n }",
"@Override\n public void componentResized(ComponentEvent e) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n int width = this.getWidth();\n this.jButton1.setLocation(width / 4 - this.jButton1.getWidth() / 2, this.jButton1.getY());\n this.jButton2.setLocation(width * 3 / 4 - this.jButton2.getWidth() / 2, this.jButton2.getY());\n this.jButton3.setLocation(width / 2 - this.jButton3.getWidth() / 2, this.jButton3.getY());\n }",
"@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}",
"protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }",
"@Override\n public void componentResized(final ComponentEvent e) {\n buttonWidth = position.isHorizontal() ? 150 : (parent.getWidth() / cells);\n relayout();\n }",
"public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }",
"public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"protected abstract void setSize();",
"@Override\n public void componentResized(ComponentEvent componentEvent) {\n ControlFrame.this.pack();\n }",
"private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }",
"@Override\r\n public Dimension getPreferredSize() {\n \r\n return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());\r\n }",
"@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}",
"public void resize() {\n\t\tsp.doLayout();\n\t}",
"private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }",
"public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }",
"public void componentResized(ComponentEvent e) {\n System.out.println(\"componentResized\");\n container.setPreferredSize(new Dimension(getWidth(), getHeight()));\n \t\tcontainer.imageContainer.setBounds(0, 30, container.getPreferredSize().width, container.getPreferredSize().height);\n \t\tcontainer.toolbar.setSize(container.getPreferredSize().width-16, 25);\n \t\tSystem.out.println(container.imageContainer.getPreferredSize());\n \t\trepaint();\n }",
"protected void resizePanel() {\n\t\tif (drawingAreaIsBlank) { // may have become blank after deleting the last node manually, so panel must still be shrunk\n\t\t\tsetPreferredSize(new Dimension(0,0)); // put back to small size so scrollbars disappear\n\t\t\trevalidate();\n\t\t\treturn;\n\t\t}\n\t\tgetMaxMin(); // get the extent of the tree to the left, right, bottom\n\t\tsetPreferredSize(new Dimension(maxX, maxY));\n\t\trevalidate();\n\t}",
"public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }",
"private void adapt(ComponentEvent e) {\n Dimension dimension = e.getComponent().getSize();\n _widthFrame = dimension.width;\n _heightFrame = dimension.height;\n _widthInternalPanel = _widthFrame - 20;\n _heightInternalPanel = _heightFrame - 30;\n setInternalBounds(_widthInternalPanel, _heightInternalPanel);\n internalScrollPane.setBounds(0, 0, _widthFrame, _heightFrame);\n // internalPanel.setBounds(0, 0, _widthFrame, _heightFrame);\n for (int i = 0; i < componentHacks.size(); i++) {\n componentHacks.get(i).update(_proportion);\n }\n }",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"public void setSize( int width, int height ) {\n checkWidget();\n int newHeight = height;\n int newWidth = width;\n Point point = parent.fixPoint( newWidth, newHeight );\n newWidth = Math.max( point.x, minimumWidth + MINIMUM_WIDTH );\n newHeight = Math.max( point.y, 0 );\n if ( !ideal ) {\n preferredWidth = newWidth;\n preferredHeight = newHeight;\n }\n itemBounds.width = requestedWidth = newWidth;\n itemBounds.height = newHeight;\n if ( control != null ) {\n int controlWidth = newWidth - MINIMUM_WIDTH;\n if ( (style & SWT.DROP_DOWN) != 0 && newWidth < preferredWidth ) {\n controlWidth -= CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM\n + CHEVRON_LEFT_MARGIN;\n }\n control.setSize( parent.fixPoint( controlWidth, newHeight ) );\n }\n parent.relayout();\n updateChevron();\n }",
"void setSize(Dimension size);",
"public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTERFACE_PANEL_HEIGHT + mpVis * CSub.MORE_PANEL_HEIGHT);\n\t\t\n\t\tsetPreferredSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t\tsetSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t}",
"public void setSize(int size);",
"public void componentResized(ComponentEvent e) {\n\t\t\t\t\n\t\t\t\tDimension size = e.getComponent().getSize();\n\t\t\t\tint infoWidth = 200;\n\t\t\t\tint tabPaneWidth = 200;\n\t\t\t\tint padY = 80;\n\t\t\t\tint padX = 40;\n\t\t\t\tint canvasWidth = (int) (size.width - padX - infoWidth - tabPaneWidth);\n\t\t\t\tint canvasHeight = (int) (size.height - padY);\n\t\t\t\tcanvas.setSize(canvasWidth, canvasHeight);\n\t\t\t\twindow.setSize(canvasWidth, canvasHeight);\n\t\t\t\tinfoPanel.setSize(infoWidth, canvasHeight); \n\t\t\t\t\n\t\t\t\tint tabPadX = 10;\n\t\t\t\tint tabPadY = 30;\n\t\t\t\ttabbedPane.setSize(tabPaneWidth, canvasHeight);\n\t\t\t\texplorerPanel.setSize(tabPaneWidth-tabPadX, canvasHeight-tabPadY);\n\t\t\t\tplanPanel.setSize(tabPaneWidth-tabPadX, canvasHeight-tabPadY);\n\t\t\t\tcanvas.revalidate();\n\t\t\t}",
"private void actionSmallerCells() {\n layoutPanel.changeCellSize(false);\n }",
"@Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }",
"public void doLayout() {\n\t if(editingComponent != null) {\n\t\tDimension cSize = getSize();\n\n\t\teditingComponent.getPreferredSize();\n\t\teditingComponent.setLocation(offset, 0);\n\t\teditingComponent.setBounds(offset, 0,\n\t\t\t\t\t cSize.width - offset,\n\t\t\t\t\t cSize.height);\n\t }\n\t}",
"@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}",
"private void layoutSwingComponents( double scale ) {\n// Component[] components = component.getComponents();\n// for( int i = 0; i < components.length; i++ ) {\n// Component component = components[i];\n// Point origLocation = (Point)componentOrgLocationsMap.get( component );\n// if( origLocation != null ) {\n// Point newLocation = new Point( (int)( origLocation.getX() * scale ), (int)( origLocation.getY() * scale ) );\n// component.setLocation( newLocation );\n// }\n// }\n }",
"public void setSize(Dimension comp_dim){\n\t\tswingComponent.setSize(comp_dim);\n\t}",
"@Override\r\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tsuper.componentResized(e);\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"private void setGuiSizeToWorldSize() {\n worldPanel.setPreferredSize(new Dimension(worldPanel.getWorld()\n .getWidth(), worldPanel.getWorld().getHeight()));\n worldPanel.setSize(new Dimension(worldPanel.getWorld().getWidth(),\n worldPanel.getWorld().getHeight()));\n this.getParentFrame().pack();\n }",
"public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }",
"@Override\r\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(400,400);\n\t}",
"public void componentResized(ComponentEvent e) {\r\n\r\n int width = getWidth();\r\n int height = getHeight();\r\n\r\n //we check if either the width\r\n //or the height are below minimum\r\n\r\n boolean resize = false;\r\n\r\n if (width < minWidth) {\r\n resize = true;\r\n width = minWidth;\r\n }\r\n if (height < minHeight) {\r\n resize = true;\r\n height = minHeight;\r\n }\r\n if (resize) {\r\n this.setSize(width, height);\r\n }\r\n }",
"private void buttonSize(JButton button) {\r\n\t\tbutton.setMaximumSize(new Dimension(150, 30));\r\n\t\tbutton.setMinimumSize(new Dimension(150, 30));\r\n\t\tbutton.setPreferredSize(new Dimension(150, 30));\r\n\t}",
"public void ResizeActionPerformed(ActionEvent evt){\r\n int w = Integer.parseInt(imageWidth.getText());\r\n int h = Integer.parseInt(imageHeight.getText());\r\n drawingPanel.setImageSize(w, h);\r\n }",
"@Override\n\tpublic void componentResized(ComponentEvent arg0) \n\t{\n\t\tif (arg0.getComponent() == this)\n\t\t{\n\t\t\tDimension size = this.getSize();\n\t\t\tthis.jbtnPreviousStep.setLocation(jbtnPreviousStep.getX(), size.height - jbtnPreviousStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(size.width - 6 - jbtnHelp.getWidth() - 10 - jbtnHelp.getWidth(), size.height - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jpanelStep5.setLocation(((size.width) / 2) + 3, jpanelStep5.getY());\n\t\t\tthis.jpanelStep5.setSize(size.width - jpanelStep5.getX() - 6, size.height - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnCalculate.setLocation((jpanelStep5.getWidth() / 2) - (jbtnCalculate.getWidth() / 2), jpanelStep5.getHeight() - 15 - jbtnCalculate.getHeight());\n\t\t\tthis.jProgressBar.setLocation((jpanelStep5.getWidth() / 2) - (jProgressBar.getWidth() / 2), jbtnCalculate.getY() - jProgressBar.getHeight() - 12);\n\t\t\tthis.jLabel1111.setLocation(jProgressBar.getX(), jProgressBar.getY() - 4 - jLabel1111.getHeight());\n\n\t\t\tthis.jlblTotalGradientDelayVolumeLabel.setLocation(jLabel1111.getX() + 16, jLabel1111.getY() - 12 - jlblTotalGradientDelayVolumeLabel.getHeight());\n\t\t\tthis.jlblNonMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblTotalGradientDelayVolumeLabel.getY() - 4 - jlblNonMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblNonMixingVolumeLabel.getY() - 4 - jlblMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblPreColumnVolume.setLocation(jLabel1111.getX(), jlblMixingVolumeLabel.getY() - 4 - jlblPreColumnVolume.getHeight());\n\t\t\t\n\t\t\tthis.jLabel111.setLocation(jLabel1111.getX(), jlblPreColumnVolume.getY() - 12 - jLabel111.getHeight());\n\t\t\tthis.jLabel11.setLocation(jLabel111.getX(), jLabel111.getY() - 4 - jLabel11.getHeight());\n\t\t\tthis.jLabel121.setLocation(jLabel11.getX(), jLabel11.getY() - 4 - jLabel121.getHeight());\n\t\t\tthis.jLabel12.setLocation(jLabel121.getX(), jLabel121.getY() - 4 - jLabel12.getHeight());\n\t\t\tthis.jLabel1.setLocation(jLabel12.getX(), jLabel12.getY() - 4 - jLabel1.getHeight());\n\t\t\tthis.jLabel.setLocation(jLabel1.getX(), jLabel1.getY() - 4 - jLabel.getHeight());\n\t\t\tthis.jScrollPane.setSize(jpanelStep5.getWidth() - 8 - 8, jLabel.getY() - 6 - jScrollPane.getY());\n\t\t\t\n\t\t\tthis.jlblTotalGradientDelayVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTotalGradientDelayVolume.getWidth(), jlblTotalGradientDelayVolumeLabel.getY());\n\t\t\tthis.jlblNonMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblNonMixingVolume.getWidth(), jlblNonMixingVolumeLabel.getY());\n\t\t\tthis.jlblMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblMixingVolume.getWidth(), jlblMixingVolumeLabel.getY());\n\n\t\t\tthis.jlblTimeElapsed.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTimeElapsed.getWidth(), jLabel111.getY());\n\t\t\tthis.jlblPhase.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPhase.getWidth(), jLabel11.getY());\n\t\t\tthis.jlblPercentImprovement.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPercentImprovement.getWidth(), jLabel121.getY());\n\t\t\tthis.jlblLastVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblLastVariance.getWidth(), jLabel12.getY());\n\t\t\tthis.jlblVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblVariance.getWidth(), jLabel1.getY());\n\t\t\tthis.jlblIterationNumber.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblIterationNumber.getWidth(), jLabel.getY());\n\t\t\tthis.jpanelGradientProfile.setSize(size.width - jpanelStep5.getX() - 6, (size.height - 6 - jbtnHelp.getHeight() - 6 - 6) / 2);\n\t\t\tthis.m_GraphControlGradient.setSize(jpanelGradientProfile.getWidth() - 3 - 5, jpanelGradientProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlGradient.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelGradientProfile.getY() + jpanelGradientProfile.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelGradientProfile.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.m_GraphControlFlowRate.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlFlowRate.repaint();\n\t\t\t/*this.jpanelStep4.setSize(this.jpanelStep4.getWidth(), size.height - 438);\n\t\t\tthis.jScrollPane1.setSize(this.jScrollPane1.getWidth(), size.height - 438 - 28);\n\t\t\tthis.jtableMeasuredRetentionTimes.revalidate();\n\t\t\tthis.jbtnNextStep.setLocation((int)size.getWidth() - this.jbtnNextStep.getWidth() - 6, (int)size.getHeight() - jbtnNextStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(this.jbtnNextStep.getLocation().x - this.jbtnHelp.getWidth() - 10, (int)size.getHeight() - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnPreloadedValues.setLocation(this.jbtnPreloadedValues.getLocation().x, (int)size.getHeight() - jbtnPreloadedValues.getHeight() - 6);\n\t\t\tthis.jpanelSimulatedChromatogram.setSize(size.width - jpanelSimulatedChromatogram.getLocation().x - 6, ((size.height - 6 - 6 - this.jbtnNextStep.getHeight()) * 5) / 10);\n\t\t\tthis.m_GraphControlTemp.setSize(jpanelSimulatedChromatogram.getWidth() - 3 - 5, jpanelSimulatedChromatogram.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlTemp.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelSimulatedChromatogram.getY() + jpanelSimulatedChromatogram.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelSimulatedChromatogram.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - 6 - this.jbtnNextStep.getHeight());\n\t\t\tthis.m_GraphControlHoldUp.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlHoldUp.repaint();*/\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void componentResized(ComponentEvent e) {\n }",
"public void componentResized(ComponentEvent e) {\n\t\tresizeBackgroundImage();\n\t\trepaint();\n\t}",
"private JPanel getJPanelOldSize() {\r\n\t\tif (jPanelOldSize == null) {\r\n\t\t\tjPanelOldSize = new JPanel();\r\n\t\t\t//jPanelOldSize.setLayout(new BoxLayout(jPanelOldSize, BoxLayout.X_AXIS));\r\n\t\t\tjPanelOldSize.setLayout(new FlowLayout(FlowLayout.CENTER, 30, 0));\r\n\t\t\tjPanelOldSize.setBorder(new TitledBorder(null, \"Original size\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\t\t\tjPanelOldSize.add(this.getJPanelOldWidth());\r\n\t\t\tjPanelOldSize.add(this.getJPanelOldHeight());\t\r\n\t\t}\r\n\t\treturn jPanelOldSize;\r\n\t}",
"public Dimension getPreferredSize(){\n return new Dimension(400,350);\n }",
"public Dimension getPreferredSize();",
"public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }",
"public Cool303ComponentsPastel()\n {\n super();\n Dimension size = getPreferredSize();\n size.width = size.height = Math.max(size.width, size.height);\n setPreferredSize(size);\n setContentAreaFilled(false);\n\n }",
"public Point getPreferredSize() {\n checkWidget();\n return parent.fixPoint( preferredWidth, preferredHeight );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMaximumSize(new java.awt.Dimension(500, 32767));\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentResized(java.awt.event.ComponentEvent evt) {\n formComponentResized(evt);\n }\n });\n addHierarchyBoundsListener(new java.awt.event.HierarchyBoundsListener() {\n public void ancestorMoved(java.awt.event.HierarchyEvent evt) {\n }\n public void ancestorResized(java.awt.event.HierarchyEvent evt) {\n formAncestorResized(evt);\n }\n });\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 abstract void resizeFrame(JFrame frame, int fontSize);",
"public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }",
"private void resize() {\n }",
"private void initComponents() {\n setBorder(new javax.swing.border.CompoundBorder(\n new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\n \"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\n javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\n java.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\n\n setLayout(null);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < getComponentCount(); i++) {\n Rectangle bounds = getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n setMinimumSize(preferredSize);\n setPreferredSize(preferredSize);\n }\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public void setSizeModifier(Dimension size) {\n\t\tthis.size = size;\n\t}",
"public abstract void resetToPreferredSizes(JSplitPane jc);",
"@SuppressWarnings(\"unchecked\")\n public void centralizarComponente() {\n Dimension ds = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dw = getSize();\n setLocation((ds.width - dw.width) / 2, (ds.height - dw.height) / 2);\n }",
"@Override\r\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\r\n\t\t\t}",
"public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }",
"public void setPreferredSize(Dimension d)\n {\n fileName.setPreferredSize(d);\n }",
"@Override\n protected void sizeChanged () {\n }",
"@Override\r\n public void setPreferredSize(Dimension preferredSize) {\r\n int min = min(preferredSize.width, preferredSize.height);\r\n super.setPreferredSize(new Dimension(min, min));\r\n }",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"@Override\n\t\t\t\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(800,600);\n\t}",
"private synchronized void resize(int topLeftX, int topLeftY,\n\t\t\tComponent component, int compWidth, int compHeigh) {\n\t\tDimension d = null;\n\n\t\td = component.getPreferredSize();\n\t\tif (compHeigh < d.height) {\n\t\t\td.width = (int) ((double) compHeigh / d.height * d.width);\n\t\t\td.height = compHeigh;\n\t\t}\n\t\tif (compWidth < d.width) {\n\t\t\td.height = (int) ((double) compWidth / d.width * d.height);\n\t\t\td.width = compWidth;\n\t\t}\n\n\t\td.width = compWidth;\n\t\td.height = compHeigh;\n\t\tcomponent.setBounds(topLeftX, topLeftY, d.width, d.height);\n\t}",
"public void updateBounds() {\n this.setBounds(left, top, width, height);\n }",
"public MySWsDecoderSizesAutoLayoutTests() {\n initComponents();\n \n \n }",
"public void setSize(Dimension newSize) {\n\t\tif(newSize.height<80)\n\t\t\tnewSize.height=80;\n\t\tif (newSize != null) {\n\t\t\tsize.setSize(newSize);\n\t\t\tfirePropertyChange(Props.SIZE_PROP.getValue(), null, size);\n\t\t}\n\t}",
"protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}",
"public void componentResized(ComponentEvent e) \r\n\t{\r\n\t\t//System.out.println(\"Resized: \" + e);\r\n\t\tsuper.componentResized(e);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMinimumSize(new java.awt.Dimension(400, 300));\n setLayout(new java.awt.BorderLayout());\n }",
"private void cbxSizeActionPerformed(java.awt.event.ActionEvent evt) {\n\n String size = (String) cbxSize.getSelectedItem();\n if (size.contains(\"4\")) {\n panelSize = 4;\n } else if (size.contains(\"5\")) {\n panelSize = 5;\n } else {\n panelSize = 3;\n }\n initPanel();\n }",
"public Dimension getPreferredSize()\r\n {\r\n return new Dimension(100, 550);\r\n }",
"public void setSize(float width, float height);",
"public Dimension getPreferredSize()\n {\n return new Dimension( FRAME_WIDTH-20, FRAME_HEIGHT-40 );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMinimumSize(new java.awt.Dimension(100, 100));\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 }",
"private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }",
"private void setComponentBounds() {\n float width = this.getWidth();\n float height = this.getHeight();\n\n int fontSize = height / 30 > 16 ? 16 : (int) (height / 30);\n int buttonWidth = width / 4.5 > 200 ? 200 : (int) (width / 4.5);\n int buttonHeight = height / 14.15 > 35 ? 35 : (int) (height / 14.15);\n int horMargin = (int) (width / 38.15);\n int verMargin = (int) (height / 21.2);\n\n registerButton.setBounds(horMargin, verMargin, buttonWidth, buttonHeight);\n registerButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n editButton.setBounds(horMargin + buttonWidth + 30, verMargin, buttonWidth, buttonHeight);\n editButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n deleteButton.setBounds((int) (width - (horMargin + buttonWidth)), verMargin, buttonWidth, buttonHeight);\n deleteButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n partidaScrollPane.setBounds(horMargin, (int) (height / 7), (int) (width - (horMargin * 2)), (int) (height - ((height / 21.2 * 3) + (height / 14.15))));\n partidaTable.setFont(new Font(\"Arial\", Font.PLAIN, fontSize));\n partidaTable.packAll();\n }",
"@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\tcardPanel.setPreferredSize(new Dimension(appFrame.getWidth(), appFrame.getCentrePanel().getHeight() * 2 / 3));\n\t\tsummaryPanel.setPreferredSize(new Dimension(appFrame.getWidth(), appFrame.getCentrePanel().getHeight() / 3));\n\t\t\n\t\tcardPanel.repaint();\n\t\tcardPanel.revalidate();\n\t\tsummaryPanel.repaint();\n\t\tsummaryPanel.revalidate();\n\t}",
"@Override\n\tpublic Dimension getSize() \n\t{\n\t\treturn panel.getSize();\n\t}",
"public abstract void adjustSize(long size);",
"protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }",
"@Override\r\n\tprotected void update_display_size(double radius_of_system) {\r\n\t\tdouble tempRadius = radius/radius_of_system *2_500_000;\r\n\t\tthis.setSize((int)tempRadius, (int)tempRadius);\r\n\t}",
"@Override\n public void componentResized(ComponentEvent e) {\n setShape(new Ellipse2D.Double(0,0,FRAME_WIDTH,FRAME_WIDTH));\n }",
"private void reSize(int x, int y, ChessBorder c) {\n\t\tc.top = y - 2 < c.top ? (y - 2 < 0 ? 0 : y - 2) : c.top;\r\n\t\tc.left = x - 2 < c.left ? (x - 2 < 0 ? 0 : x - 2) : c.left;\r\n\t\tc.bottom = y + 2 > c.bottom ? (y + 2 >= size ? size : y + 2) : c.bottom;\r\n\t\tc.right = x + 2 > c.right ? (x + 2 >= size ? size : x + 2) : c.right;\r\n\r\n\t}",
"private JPanel getJPanelNewSize() {\r\n\t\tif (jPanelNewSize == null) {\r\n\t\t\tjPanelNewSize = new JPanel();\r\n\t\t\tjPanelNewSize.setLayout(new BoxLayout(jPanelNewSize, BoxLayout.Y_AXIS));\r\n\t\t\t//jPanelNewSize.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\t\tjPanelNewSize.setBorder(new TitledBorder(null, \"New size\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\t\t\r\n\t\t\tJPanel pl = new JPanel();\r\n\t\t\tpl.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5));\r\n\t\t\tpl.add(this.getJPanelNewWidth());\r\n\t\t\tpl.add(this.getJPanelNewHeight());\t\r\n\t\t\t\r\n\t\t\tjPanelNewSize.add(pl);\t\r\n\t\t\tjPanelNewSize.add(getJButtonMaxImgSize());\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jPanelNewSize;\r\n\t}",
"public abstract void setSize(Dimension d);",
"private void changeLayoutSize(Dimension newSize, RepType rtype) {\n layoutPanel.inhNList = repPattern(newSize, layoutPanel.inhNList, rtype);\n layoutPanel.activeNList = repPattern(newSize, layoutPanel.activeNList,\n rtype);\n layoutPanel.probedNList = repPattern(newSize, layoutPanel.activeNList,\n rtype);\n\n layoutPanel.changeLayoutSize(newSize);\n }",
"@Override\n\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\n\n\t\t}"
]
| [
"0.7286934",
"0.700465",
"0.6828053",
"0.6781718",
"0.6751755",
"0.67465794",
"0.6723085",
"0.6705922",
"0.6703896",
"0.66000164",
"0.6574225",
"0.6574225",
"0.6556418",
"0.6556418",
"0.65501475",
"0.65226823",
"0.6513124",
"0.64938384",
"0.64479655",
"0.64337575",
"0.63847417",
"0.63462514",
"0.63304746",
"0.6329337",
"0.6328161",
"0.6322889",
"0.63216096",
"0.62800586",
"0.6273982",
"0.6245584",
"0.6240193",
"0.6223002",
"0.6218549",
"0.6206236",
"0.61767054",
"0.61746335",
"0.61745423",
"0.6172211",
"0.6166926",
"0.6162037",
"0.6158394",
"0.6143487",
"0.6125717",
"0.61222154",
"0.6100107",
"0.61000156",
"0.60811436",
"0.60805005",
"0.606817",
"0.60670197",
"0.60647786",
"0.60456955",
"0.602662",
"0.60197484",
"0.60184586",
"0.6014161",
"0.60058385",
"0.60027266",
"0.59999317",
"0.5995484",
"0.5991184",
"0.59909993",
"0.59778476",
"0.59721214",
"0.59551543",
"0.5947372",
"0.5945536",
"0.5942289",
"0.59402466",
"0.59384036",
"0.59321624",
"0.5929381",
"0.5925511",
"0.5925511",
"0.5920315",
"0.5917645",
"0.59040564",
"0.58743954",
"0.58543336",
"0.58541733",
"0.5849637",
"0.5844607",
"0.5840099",
"0.5840041",
"0.5838691",
"0.58363974",
"0.58354664",
"0.58305645",
"0.5825418",
"0.5821596",
"0.5811666",
"0.5810732",
"0.5798989",
"0.5797318",
"0.57928455",
"0.5782687",
"0.57811165",
"0.5768579",
"0.57683486",
"0.57599306"
]
| 0.6416349 | 20 |
apply BurrowsWheeler transform, reading from standard input and writing to standard output | public static void transform() {
String input = BinaryStdIn.readString();
CircularSuffixArray csa = new CircularSuffixArray(input);
int first = 0;
for (int i = 0; i < csa.length(); i++) {
if (csa.index(i) == 0) {
first = i;
break;
}
}
BinaryStdOut.write(first);
for (int i = 0; i < csa.length(); i++) {
if (csa.index(i) == 0) {
BinaryStdOut.write(input.charAt(csa.length() - 1));
}
else BinaryStdOut.write(input.charAt(csa.index(i) - 1));
}
BinaryStdOut.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT2.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT2.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT2[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT3.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT3.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT3[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n BurrowsWheeler.transform();\n }\n else {\n BurrowsWheeler.inverseTransform();\n }\n }",
"@Test\n public void testInverseTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT.length(), decoded.length());\n assertEquals(DECODED_INPUT, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testInverseTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT2));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT2.length(), decoded.length());\n assertEquals(DECODED_INPUT2, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testInverseTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT3));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT3.length(), decoded.length());\n assertEquals(DECODED_INPUT3, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"void perform(LineReader input, OutputStream output) throws IOException;",
"public static void main(String[] args) throws IOException {\n BmpFile c = new ImageReader().read();\n \n BmpFileTransformer t = new BmpFileTransformer();\n c = t.transform(c);\n \n new ImageInHtmlWriter().create(c);\n BmpFileWriter w = new BmpFileWriter();\n w.write(c);\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader bin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tFrodoPillows l = new FrodoPillows();\n\t\tl.readData(bin);\n\t\tl.calculate();\n\t\tl.printRes();\n\t}",
"@Override\n\tpublic void pipeOutput() {\n\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n BufferedOutputStream out = new BufferedOutputStream(System.out);\n StringBuilder res = new StringBuilder();\n\n while (true) {\n // skip blank lines and end when no more input\n String line = in.readLine();\n if (line == null)\n break;\n else if (line.equals(\"\"))\n continue;\n\n int b = Integer.valueOf(line);\n int p = Integer.valueOf(in.readLine());\n int m = Integer.valueOf(in.readLine());\n\n res.append(modPow(b, p, m));\n res.append('\\n');\n }\n\n out.write(res.toString().getBytes());\n\n out.close();\n in.close();\n }",
"private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }",
"public static void main(String[] args) throws IOException{\n\t\tSystem.exit((new BitCompresser()).run(args));\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString genome = MyFileReader.loadGenome(\"data/testgenome.txt\");\n\t\tgenome += \"$\";\n\t\t\t\t\n\t\tBurrowsWheelerStructure bws = new BurrowsWheelerStructure(genome);\n\t\tbws.init();\n\t\t\n//\t\tbwt.printTable(bwt.suffixArray);\n//\t\tbwt.printTable(bwt.L);\n//\t\tbwt.printTable(bwt.F);\n//\t\tbwt.printTable(bwt.encode());\n\t\tSystem.out.println(bws.map);\n\t\tSystem.out.println(bws.first);\n//\t\tbwt.printTable(bwt.ranks);\n\t\t\n\t\tbws.find(new Seed(\"ggg\"));\n\t\t\n\n\t}",
"public void run() throws IOException {\n\t\tint STRAND = PARAM.getStrand();\n\t\tif (PARAM.getOutputType() != 0) {\n\t\t\tif (STRAND == 0) {\n\t\t\t\t// Set FileName\n\t\t\t\tString NAME0;\n\t\t\t\tString NAME1;\n\t\t\t\tif (outMatrixBasename == null) {\n\t\t\t\t\tNAME0 = PARAM.getOutputDirectory() + File.separator + generateFileName(BED.getName(), BAM.getName(), 0);\n\t\t\t\t\tNAME1 = PARAM.getOutputDirectory() + File.separator + generateFileName(BED.getName(), BAM.getName(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tNAME0 = generateFileName(outMatrixBasename, 0);\n\t\t\t\t\tNAME1 = generateFileName(outMatrixBasename, 1);\n\t\t\t\t}\n\t\t\t\t// Build streams\n\t\t\t\tif (PARAM.getOutputGZIP()) {\n\t\t\t\t\tOUT_S1 = new OutputStreamWriter(new GZIPOutputStream(new FileOutputStream(NAME0)), \"UTF-8\");\n\t\t\t\t\tOUT_S2 = new OutputStreamWriter(new GZIPOutputStream(new FileOutputStream(NAME1)), \"UTF-8\");\n\t\t\t\t} else {\n\t\t\t\t\tOUT_S1 = new PrintWriter(NAME0);\n\t\t\t\t\tOUT_S2 = new PrintWriter(NAME1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Set FileName\n\t\t\t\tString NAME2;\n\t\t\t\tif (outMatrixBasename == null) {\n\t\t\t\t\tNAME2 = PARAM.getOutputDirectory() + File.separator + generateFileName(BED.getName(), BAM.getName(), 2);\n\t\t\t\t} else {\n\t\t\t\t\tNAME2 = generateFileName(outMatrixBasename, 2);\n\t\t\t\t}\n\t\t\t\tif (PARAM.getOutputGZIP()) {\n\t\t\t\t\tOUT_S1 = new OutputStreamWriter(new GZIPOutputStream(new FileOutputStream(NAME2)), \"UTF-8\");\n\t\t\t\t} else {\n\t\t\t\t\tOUT_S1 = new PrintWriter(NAME2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tprintPS(getTimeStamp()); // Timestamp process\n\t\tprintPS(BAM.getName()); // Label stat object with what BAM file is generating it\n\n\t\t// Validate and load BED coordinates\n\t\tSystem.err.println(\"Validating BED: \" + BED.getName());\n\t\tVector<BEDCoord> INPUT = validateBED(loadCoord(BED), BAM);\n\n\t\t// Split up job and send out to threads to process\n\t\tint CPU = PARAM.getCPU();\n\t\tExecutorService parseMaster = Executors.newFixedThreadPool(CPU);\n\t\tif (INPUT.size() < CPU)\n\t\t\tCPU = INPUT.size();\n\t\tint subset = 0;\n\t\tint currentindex = 0;\n\t\tfor (int x = 0; x < CPU; x++) {\n\t\t\tcurrentindex += subset;\n\t\t\tif (CPU == 1) {\n\t\t\t\tsubset = INPUT.size();\n\t\t\t} else if (INPUT.size() % CPU == 0) {\n\t\t\t\tsubset = INPUT.size() / CPU;\n\t\t\t} else {\n\t\t\t\tint remainder = INPUT.size() % CPU;\n\t\t\t\tif (x < remainder)\n\t\t\t\t\tsubset = (int) (((double) INPUT.size() / (double) CPU) + 1);\n\t\t\t\telse\n\t\t\t\t\tsubset = (int) (((double) INPUT.size() / (double) CPU));\n\t\t\t}\n\t\t\t// System.out.println(\"CPU: \" + x + \"\\tInterval: \" + currentindex + \"\\t\" +\n\t\t\t// subset);\n\t\t\tPileupExtract extract = new PileupExtract(PARAM, BAM, INPUT, currentindex, subset);\n\t\t\tparseMaster.execute(extract);\n\t\t}\n\t\tparseMaster.shutdown();\n\t\twhile (!parseMaster.isTerminated()) {\n\t\t}\n\n\t\tDOMAIN = new double[getMaxBEDSize(INPUT)];\n\t\tAVG_S1 = new double[DOMAIN.length];\n\t\tAVG_S2 = null;\n\t\tif (STRAND == 0)\n\t\t\tAVG_S2 = new double[DOMAIN.length];\n\n\t\t// Account for the shifted oversized window produced by binning and smoothing\n\t\tint OUTSTART = 0;\n\t\tif (PARAM.getTrans() == 1) {\n\t\t\tOUTSTART = PARAM.getSmooth();\n\t\t} else if (PARAM.getTrans() == 2) {\n\t\t\tOUTSTART = (PARAM.getStdSize() * PARAM.getStdNum());\n\t\t}\n\n\t\t// Write headers\n\t\tif (PARAM.getOutputType() == 2) {\n\t\t\tif (OUT_S1 != null)\n\t\t\t\tOUT_S1.write(\"YORF\\tNAME\");\n\t\t\tif (OUT_S2 != null)\n\t\t\t\tOUT_S2.write(\"YORF\\tNAME\");\n\t\t\tdouble[] tempF = INPUT.get(0).getFStrand();\n\n\t\t\tfor (int i = OUTSTART; i < tempF.length - OUTSTART; i++) {\n\t\t\t\tint index = i - OUTSTART;\n\t\t\t\tif (OUT_S1 != null)\n\t\t\t\t\tOUT_S1.write(\"\\t\" + index);\n\t\t\t\tif (OUT_S2 != null)\n\t\t\t\t\tOUT_S2.write(\"\\t\" + index);\n\t\t\t}\n\t\t\tif (OUT_S1 != null)\n\t\t\t\tOUT_S1.write(\"\\n\");\n\t\t\tif (OUT_S2 != null)\n\t\t\t\tOUT_S2.write(\"\\n\");\n\t\t}\n\n\t\t// Output individual sites\n\t\tfor (int i = 0; i < INPUT.size(); i++) {\n\t\t\tdouble[] tempF = INPUT.get(i).getFStrand();\n\t\t\tdouble[] tempR = INPUT.get(i).getRStrand();\n\t\t\tif (OUT_S1 != null)\n\t\t\t\tOUT_S1.write(INPUT.get(i).getName());\n\t\t\tif (OUT_S2 != null)\n\t\t\t\tOUT_S2.write(INPUT.get(i).getName());\n\n\t\t\tif (PARAM.getOutputType() == 2) {\n\t\t\t\tif (OUT_S1 != null)\n\t\t\t\t\tOUT_S1.write(\"\\t\" + INPUT.get(i).getName());\n\t\t\t\tif (OUT_S2 != null)\n\t\t\t\t\tOUT_S2.write(\"\\t\" + INPUT.get(i).getName());\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < tempF.length; j++) {\n\t\t\t\t// Output values outside of window overhang\n\t\t\t\tif (j >= OUTSTART && j < tempF.length - OUTSTART) {\n\t\t\t\t\tif (OUT_S1 != null)\n\t\t\t\t\t\tOUT_S1.write(\"\\t\" + tempF[j]);\n\t\t\t\t\tif (OUT_S2 != null)\n\t\t\t\t\t\tOUT_S2.write(\"\\t\" + tempR[j]);\n\t\t\t\t}\n\t\t\t\t// Sum positions across BED coordinates\n\t\t\t\tAVG_S1[j] += tempF[j];\n\t\t\t\tif (AVG_S2 != null)\n\t\t\t\t\tAVG_S2[j] += tempR[j];\n\t\t\t}\n\t\t\tif (OUT_S1 != null) OUT_S1.write(\"\\n\");\n\t\t\tif (OUT_S2 != null) OUT_S2.write(\"\\n\");\n\t\t}\n\n\t\tif (OUT_S1 != null) OUT_S1.close();\n\t\tif (OUT_S2 != null) OUT_S2.close();\n\n\t\t// Calculate average and domain here\n\t\tint temp = (int) (((double) AVG_S1.length / 2.0) + 0.5);\n\t\tfor (int i = 0; i < AVG_S1.length; i++) {\n\t\t\tDOMAIN[i] = (double) ((temp - (AVG_S1.length - i)) * PARAM.getBin()) + 1;\n\t\t\tAVG_S1[i] /= INPUT.size();\n\t\t\tif (AVG_S2 != null)\n\t\t\t\tAVG_S2[i] /= INPUT.size();\n\t\t}\n\n\t\t// Transform average given transformation parameters\n\t\tif (PARAM.getTrans() == 1) {\n\t\t\tAVG_S1 = ArrayUtilities.windowSmooth(AVG_S1, PARAM.getSmooth());\n\t\t\tif (AVG_S2 != null)\n\t\t\t\tAVG_S2 = ArrayUtilities.windowSmooth(AVG_S2, PARAM.getSmooth());\n\t\t} else if (PARAM.getTrans() == 2) {\n\t\t\tAVG_S1 = ArrayUtilities.gaussSmooth(AVG_S1, PARAM.getStdSize(), PARAM.getStdNum());\n\t\t\tif (AVG_S2 != null)\n\t\t\t\tAVG_S2 = ArrayUtilities.gaussSmooth(AVG_S2, PARAM.getStdSize(), PARAM.getStdNum());\n\t\t}\n\n\t\t// Trim average here and output to statistics pane\n\t\tdouble[] AVG_S1_trim = new double[AVG_S1.length - (OUTSTART * 2)];\n\t\tdouble[] AVG_S2_trim = null;\n\t\tif (STRAND == 0)\n\t\t\tAVG_S2_trim = new double[AVG_S1_trim.length];\n\t\tdouble[] DOMAIN_trim = new double[AVG_S1_trim.length];\n\t\tfor (int i = OUTSTART; i < AVG_S1.length - OUTSTART; i++) {\n\t\t\tif (AVG_S2 != null) {\n\t\t\t\tprintPS(DOMAIN[i] + \"\\t\" + AVG_S1[i] + \"\\t\" + AVG_S2[i]);\n\t\t\t\tAVG_S2_trim[i - OUTSTART] = AVG_S2[i];\n\t\t\t} else {\n\t\t\t\tprintPS(DOMAIN[i] + \"\\t\" + AVG_S1[i]);\n\t\t\t}\n\t\t\tAVG_S1_trim[i - OUTSTART] = AVG_S1[i];\n\t\t\tDOMAIN_trim[i - OUTSTART] = DOMAIN[i];\n\t\t}\n\t\tAVG_S1 = AVG_S1_trim;\n\t\tAVG_S2 = AVG_S2_trim;\n\t\tDOMAIN = DOMAIN_trim;\n\n\t\t// Output composite data file setup\n\t\tCOMPOSITE = PARAM.getCompositePrintStream();\n\n\t\t// Output composite data to tab-delimited file\n\t\tif (COMPOSITE != null) {\n\t\t\tfor (int a = 0; a < DOMAIN.length; a++) {\n\t\t\t\tCOMPOSITE.print(\"\\t\" + DOMAIN[a]);\n\t\t\t}\n\t\t\tCOMPOSITE.println();\n\t\t\tif (STRAND == 0) {\n\t\t\t\tCOMPOSITE.print(generateFileName(BED.getName(), BAM.getName(), 0));\n\t\t\t\tfor (int a = 0; a < AVG_S1.length; a++) {\n\t\t\t\t\tCOMPOSITE.print(\"\\t\" + AVG_S1[a]);\n\t\t\t\t}\n\t\t\t\tCOMPOSITE.println();\n\t\t\t\tCOMPOSITE.print(generateFileName(BED.getName(), BAM.getName(), 1));\n\t\t\t\tfor (int a = 0; a < AVG_S2.length; a++) {\n\t\t\t\t\tCOMPOSITE.print(\"\\t\" + AVG_S2[a]);\n\t\t\t\t}\n\t\t\t\tCOMPOSITE.println();\n\t\t\t} else {\n\t\t\t\tCOMPOSITE.print(generateFileName(BED.getName(), BAM.getName(), 2));\n\t\t\t\tfor (int a = 0; a < AVG_S1.length; a++) {\n\t\t\t\t\tCOMPOSITE.print(\"\\t\" + AVG_S1[a]);\n\t\t\t\t}\n\t\t\t\tCOMPOSITE.println();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n filter(\"blup\");\n }",
"public static void inverseTransform() {\n int[] count = new int[R + 1]; // used for count/cumulates for decoding\n @SuppressWarnings(\"unchecked\")\n Queue<Integer>[] fifoIndices = new Queue[R];\n for (int r = 0; r < R; r++) {\n fifoIndices[r] = new Queue<Integer>();\n }\n String binaryInputString = \"\";\n int length; // length of input\n int first;\n // Get input binary stream\n first = BinaryStdIn.readInt();\n while (!BinaryStdIn.isEmpty()) {\n binaryInputString = BinaryStdIn.readString();\n // binaryInputChar = BinaryStdIn.readChar();\n // binaryInputString = binaryInputString.append(binaryInputChar);\n // count[binaryInputChar + 1]++; // update counts\n // fifoIndices[binaryInputChar].enqueue(counter++); // array of FIFOs of indices of binaryInputChar in input binary stream\n }\n length = binaryInputString.length();\n for (int i = 0; i < length; i++) {\n count[binaryInputString.charAt(i) + 1]++;\n // store indices for each character as they appear in FIFO order\n fifoIndices[binaryInputString.charAt(i)].enqueue(i);\n }\n \n // update cumulates\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n \n // sorted first column\n char[] tAux = new char[length];\n \n // move items from string into first column array in sorted order\n for (int i = 0; i < length; i++) {\n tAux[count[binaryInputString.charAt(i)]++] = binaryInputString.charAt(i);\n }\n \n // store corresponding index for relative order\n // i < j --> next[i] < next[j]\n int[] next = new int[length];\n for (int i = 0; i < length; i++) {\n next[i] = fifoIndices[tAux[i]].dequeue();\n }\n \n for (int i = 0; i < length; i++) {\n BinaryStdOut.write(tAux[first]);\n first = next[first];\n }\n BinaryStdOut.flush();\n }",
"public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }",
"public static void main(String[] args) throws IOException {\r\n ObjectInputStream in = null; // reads in the compressed file\r\n FileWriter out = null; // writes out the decompressed file\r\n\r\n // Check for the file names on the command line.\r\n if (args.length != 2) {\r\n System.out.println(\"Usage: java Puff <in fname> <out fname>\");\r\n System.exit(1);\r\n }\r\n\r\n // Open the input file.\r\n try {\r\n in = new ObjectInputStream(new FileInputStream(args[0]));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Can't open file \" + args[0]);\r\n System.exit(1);\r\n }\r\n\r\n // Open the output file.\r\n try {\r\n out = new FileWriter(args[1]);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Can't open file \" + args[1]);\r\n System.exit(1);\r\n }\r\n \r\n Puff pf = new Puff();\r\n pf.getFrequencies(in);\r\n // Create a BitReader that is able to read the compressed file.\r\n BitReader reader = new BitReader(in);\r\n\r\n\r\n /****** Add your code here. ******/\r\n pf.createTree();\r\n pf.unCompress(reader,out);\r\n \r\n /* Leave these lines at the end of the method. */\r\n in.close();\r\n out.close();\r\n }",
"public static void main(String[] args) throws IOException {\n\t\tString line = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\t\t\n\t\tFiles.write(Paths.get(\"outputh.txt\"), getOutput(line).getBytes(), StandardOpenOption.CREATE);\n\t\t\n\t}",
"public static void main(String[] args) {\n \t\n \t args = new String[2];\n\t args[0] = \"output.txt\";\n\t args[1] = \"1\";\n\t new BoundedBuffer().go(args);\n \t\n }",
"public static void transform() {\r\n \tString str = BinaryStdIn.readString();;\r\n \tCircularSuffixArray suffixArr = new CircularSuffixArray(str);\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tif (suffixArr.index(i) == 0) {\r\n \t\t\tBinaryStdOut.write(i);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tint pos = suffixArr.index(i);\r\n \t\tif (pos == 0) {\r\n \t\t\tpos = suffixArr.length();\r\n \t\t}\r\n \t\tBinaryStdOut.write(str.charAt(pos - 1), 8);\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"int spinTheWheel();",
"public static void main(String[] args) {\n System.out.println(bitsToFlipAtoB(29,15));\n }",
"public LMScrambleShift (RandomStream stream) {\n super(stream);\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader bin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tSantaClausRobot l = new SantaClausRobot();\n\t\tl.readData(bin);\n\t\tl.calculate();\n\t\tl.printRes();\n\t}",
"public PipedWriter(java.io.PipedReader snk) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"@Override\n public void run () {\n try {\n int i = 0;\n String tupleString = this.inReadEnds[i].getNextString();\n while (tupleString != null && i < this.inReadEnds.length - 1){\n BMap tempStore = BMap.makeBMap(tupleString);\n mapStore = BMap.or(mapStore, tempStore);\n i++;\n tupleString = this.inReadEnds[i].getNextString();\n }\n \n BMap tempStore = BMap.makeBMap(tupleString);\n this.mapStore = BMap.or(mapStore, tempStore);\n \n this.outWriteEnd.putNextString(mapStore.getBloomFilter());\n this.outWriteEnd.close();\n } \n catch (Exception e) {\n ReportError.msg(this.getClass().getName() + \" \" + e);\n }\n }",
"@Override\n public void run() {\n System.out.println(\"The KWIC Index System contains:\");\n \n String outputFileName = \"output.txt\";\n BufferedWriter bw = null;\n \n try {\n bw = new BufferedWriter(new FileWriter(outputFileName));\n while (true) {\n if (isInputEmpty()) {\n delay();\n } else {\n Data data = pullFromInput();\n if (data.isLast()) {\n break;\n }\n bw.write(data.getValue());\n bw.newLine();\n System.out.println(data.getValue());\n }\n }\n bw.close();\n } catch (IOException e) {\n System.out.println(\"Error writing to output file.\");\n } finally {\n try {\n if (bw != null) {\n bw.close();\n }\n } catch (IOException e) {\n System.out.println(\"Unrecoverable error from Output::run()\");\n }\n }\n \n }",
"public interface OutputProcessor {\n\n void process(Reader reader, Writer writer) throws IOException;\n\n}",
"protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }",
"protected abstract void provideObjectReading(List<SensedObject> objects, List<Double> output);",
"public static void main(String []args)\r\n\t{\n\t\tString url = \"https://cis.temple.edu/~jfiore/2017/fall/1068/assignments/07/files/jaws.txt\";\r\n\t\tString fullStr =getWebContents(url);\r\n\t\r\n\t\tString newScript = changeToBostie(fullStr);\r\n\t\tSystem.out.println(newScript);\r\n\t\tsaveDoc(newScript, \"Jaws.txt\");\r\n\t}",
"public GaussDecayFunctionBuilder(StreamInput in) throws IOException {\n super(in);\n }",
"public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }",
"private static void pipe(Reader reader, Writer writer) throws IOException {\n char[] buf = new char[1024];\n int read = 0;\n while ( (read = reader.read(buf) ) >= 0) {\n writer.write(buf, 0, read);\n }\n writer.flush();\n }",
"public static void transform() {\n String s = BinaryStdIn.readString();\n CircularSuffixArray circularSuffixArray = new CircularSuffixArray(s);\n for (int i = 0; i < s.length(); i++) {\n if (circularSuffixArray.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n for (int i = 0; i < s.length(); i++) {\n int index = circularSuffixArray.index(i);\n if (index == 0) {\n BinaryStdOut.write(s.charAt(s.length() - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(index - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"public RunShoulder(Climber climber, DoubleSupplier climb) {\n this.climber = climber;\n this.climb = climb; // init climber \n }",
"public ShooterWheel() {\n configureWheelFalcons();\n }",
"public void feedAndCut() throws IOException {\n feed();\n cut();\n writer.flush();\n }",
"public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void transform() {\n String s = BinaryStdIn.readString();\n\n CircularSuffixArray csa = new CircularSuffixArray(s);\n\n for (int i = 0; i < csa.length(); i++) {\n \n if (csa.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(s.charAt(csa.length() + csa.index(i) - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(csa.index(i) - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"public static void main(String[] args) throws IOException {\n\t\tPipedOutputStream pout = new PipedOutputStream();\n\t\tPipedInputStream pin = new PipedInputStream();\n\t\tpout.connect(pin);\n\t\tpipeout po = new pipeout(pout);\n\t\tpipein pi = new pipein(pin);\n\t\tThread t1 = new Thread(po);\n\t\tThread t2 = new Thread(pi);\n\t\tt1.start();\n\t\tt2.start();\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tString txtFileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\not_today.txt\";\r\n\t\tString img1FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts1.jpg\";\r\n\t\tString img2FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts2.jpg\";\r\n\t\t\r\n\t\t// file name String - output\r\n\t\tString result_txt = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_not_today.txt\";\r\n\t\tString result_img1 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts1_img.jpg\";\r\n\t\tString result_img2 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts2_img.jpg\";\r\n\t\t\r\n\t\t// node stream - input\r\n\t\tFileReader fr = new FileReader(txtFileName);\r\n\t\tFileInputStream fis1 = new FileInputStream(img1FileName);\r\n\t\tFileInputStream fis2 = new FileInputStream(img2FileName);\r\n\t\t\r\n\t\t// filter stream - input\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\tDataInputStream dis1 = new DataInputStream(fis1);\r\n\t\tDataInputStream dis2 = new DataInputStream(fis2);\r\n\t\t\r\n\t\t// node stream - output\r\n\t\tFileOutputStream fos1 = new FileOutputStream(result_img1);\r\n\t\tFileOutputStream fos2 = new FileOutputStream(result_img2);\r\n\t\tPrintWriter pw = new PrintWriter(result_txt);\r\n\t\t\r\n\t\t// filter strea - output\r\n\t\tDataOutputStream dos1 = new DataOutputStream(fos1);\r\n\t\tDataOutputStream dos2 = new DataOutputStream(fos2);\r\n\t\t\r\n\t\t// Data reading & Stream closing\r\n\t\tString contents = null;\r\n\t\twhile((contents = br.readLine()) != null){\r\n\t\t\tpw.write(contents + \"\\n\");\r\n\t\t}\t\t\r\n\t\t\r\n\t\tpw.close();\r\n\t\t\r\n\t\tint data = 0;\r\n\t\ttry {\r\n\t\t\twhile((data = dis1.readInt()) != -1){\r\n\t\t\t\tdos1.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (EOFException e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos1.close();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdata = 0;\r\n\t\t\twhile((data = dis2.readInt()) != -1){\r\n\t\t\t\tdos2.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos2.close();\r\n\t\t}\r\n\t\t\t\r\n\t}",
"public void processStreamInput() {\n }",
"public static void main(String[] args) throws IOException {\n\n int aCount = Integer.parseInt(scanner.nextLine().trim());\n\n int[] a = new int[aCount];\n\n for (int aItr = 0; aItr < aCount; aItr++) {\n int aItem = Integer.parseInt(scanner.nextLine().trim());\n a[aItr] = aItem;\n }\n\n double[] result = runningMedian(a);\n\n for (int resultItr = 0; resultItr < result.length; resultItr++) {\n //bufferedWriter.write(String.valueOf(result[resultItr]));\n //O problema de fazer sort no array pela performance está no print abaixo\n //por resultado\n System.out.println(String.valueOf(result[resultItr]));\n\n if (resultItr != result.length - 1) {\n //bufferedWriter.write(\"\\n\");\n }\n }\n\n //bufferedWriter.newLine();\n\n //bufferedWriter.close();\n }",
"public static void main(String[] arg) {\n\t\tBufferedReader br = new BufferedReader(\r\n\t\t new FileReader(\"input.in\"));\r\n\r\n\t\t// PrintWriter class prints formatted representations\r\n\t\t// of objects to a text-output stream.\r\n\t\tPrintWriter pw = new PrintWriter(new\r\n\t\t BufferedWriter(new FileWriter(\"output.in\")));\r\n\r\n\t\t// Your code goes Here\r\n\r\n\t\tpw.flush();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString x = sc.nextLine();\r\n\r\n\t\tSystem.out.println(\"hello world \" + x);\r\n\t}",
"private FilterPipeline createPipeline() {\n Filter filterZero = createDefaultPatternFilter(0);\n Filter filterTwo = createDefaultPatternFilter(2); \n Sorter sorter = new ShuttleSorter();\n Filter[] filters = new Filter[] {filterZero, filterTwo, sorter};\n FilterPipeline pipeline = new FilterPipeline(filters);\n return pipeline;\n }",
"public static void main(String[] args) {\n PipelineOptions options = PipelineOptionsFactory.create();\n\n // Then create the pipeline.\n Pipeline pipeline = Pipeline.create(options);\n\n PCollection<String> lines = pipeline.apply(\"quotes\", TextIO.read().from(\"data/naruto_data.txt\"))\n .apply(\"uppercase\", ParDo.of(new UpperCase()))\n .apply(\"dededed\", ParDo.of(new DoFn<String, String>() {\n @ProcessElement\n public void processElement(@Element String word, OutputReceiver<String> out) {\n System.out.println(word);\n out.output(word);\n }\n }));\n\n\n pipeline.run().waitUntilFinish();\n \n }",
"public RobotCompressor(){\n \n robotCompressor = new Compressor(RobotMap.PRESSURE_SWITCH, RobotMap.COMPRESSOR_SPIKE);\n robotCompressor.start();\n }",
"public static void testNewBBFArchitecture(){\n\t\t\n\t\tString outputDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\test orientation fix\\\\\";\n\t\tString inputFileName = outputDir+\"Berlin@Berlin_2NDs_B_Square_SW_96-160_201411201541.prejav\";\n\t\t\t\n\t\tExperiment ex = new Experiment(inputFileName);\n\t\t\n\t\t\n\t\tBackboneFitter bbf = new BackboneFitter(ex.getTrackFromInd(50));\n\t\tbbf.fitTrack();\n\t\t\n\t\tBackboneFitter bbfOld = new BackboneFitter();\n\t\t///method no longer exists\n\t\t//bbfOld.fitTrack(ex.getTrackFromInd(50));\n\t\t///\n\t\t\n\t\tSystem.out.println(\"Done\");\n\t}",
"@FunctionalInterface\npublic interface BufferedReaderProcessor {\n String process(BufferedReader b) throws IOException;\n \n}",
"@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}",
"protected void transform()\n\t{\n\t\tFileSummary summary = getFileSummary();\n\t\tFileCloser.close(summary.getFile());\n\n\t\tsuper.transform();\n\t}",
"public static void rewrite(ExecutableReader reader, byte[] data) throws Exception {\n\t\treader.exStr = new ExecutableStream(data);\n\t\treader.read(reader.exStr);\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tdo {\n\t\t\tSystem.out.println(\"Page Replacement Algorithms:\\n\"\n\t\t\t\t\t+ \"1. FIFO with file input\\n\"\n\t\t\t\t\t+ \"2. LRU with file input\\n\"\n\t\t\t\t\t+ \"3. Optimal Algorithm with file input\\n\"\n\t\t\t\t\t+ \"4. FIFO, LRU, Optimal Algorithm with randomly generated input\\n\"\n\t\t\t\t\t+ \"5. Exit\");\n\t\t\tinput = keyboard.next();\n\t\t\tif(Integer.parseInt(input) == 1) {\n\t\t\t\tfirstInFirstOut();\n\t\t\t} else if(Integer.parseInt(input) == 2) {\n\t\t\t\tleastRecentlyUsed();\n\t\t\t} else if(Integer.parseInt(input) == 3) {\n\t\t\t\toptimalAlgorithm();\n\t\t\t} else if(Integer.parseInt(input) == 4) {\n\t\t\t\trandomlyGeneratedInput();\n\t\t\t} else if(Integer.parseInt(input) == 5) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} while(!input.matches(\"5\"));\n\t\tkeyboard.close();\n\t}",
"public StreamGobbler(InputStream from, PrintStream to) {\n\t\tinput = from;\n\t\toutput = to;\n\t}",
"public static void main(String []args) throws IOException {\n\tFastScanner in = new FastScanner(System.in);\n\tPrintWriter out = \n\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); \n\tsolve(in, out);\n\tin.close();\n\tout.close();\n }",
"@Override\n\tprotected void processInput() {\n\t}",
"OutputStream getStdin();",
"public void feed() throws IOException {\n // 下面指令为打印完成后自动走纸\n writer.write(27);\n writer.write(100);\n writer.write(4);\n writer.write(10);\n\n writer.flush();\n\n }",
"public static void main(String[] args) throws IOException {\n PopulationModelDefinition def = new PopulationModelDefinition(\n new EvaluationEnvironment(),\n ChordModel::generatePopulationRegistry,\n ChordModel::getRules,\n ChordModel::getMeasures,\n (e, r) -> new HashMap<>(),\n ChordModel::states);\n def.setParameter(\"N\",new SibillaDouble(1000));\n PopulationModel model = def.createModel();\n\n List<Trajectory> trajectories = new LinkedList();\n byte[] trajectoryBytes = BytearrayToFile.fromFile(\".\", \"chordTrajectory_Samplings100_Deadline600_N1000_Samples6\");\n\n Trajectory toAdd = TrajectorySerializer.deserialize(trajectoryBytes, model);\n Sample firstSample =(Sample) toAdd.getData().get(0);\n PopulationState firstState = (PopulationState) firstSample.getValue();\n System.out.printf(\"Population model registry size: %d\", model.stateByteArraySize() / 4);\n System.out.printf(\"\\nChord with externalizable\\nSamples: %d\\nState population vector size: %d\", toAdd.getData().size(), firstState.getPopulationVector().length);\n trajectories.add(toAdd);\n\n ComputationResult result = new ComputationResult(trajectories);\n\n byte[] customBytes = ComputationResultSerializer.serialize(result, model);\n byte[] customBytesCompressed = Compressor.compress(customBytes);\n byte[] apacheBytes = Serializer.getSerializer(SerializerType.APACHE).serialize(result);\n byte[] apacheBytesCompressed = Compressor.compress(apacheBytes);\n byte[] fstBytes = Serializer.getSerializer(SerializerType.FST).serialize(result);\n byte[] fstBytesCompressed = Compressor.compress(fstBytes);\n\n System.out.printf(\"\\nCustom bytes: %d\\nApache bytes: %d\\nFst bytes: %d\", customBytes.length, apacheBytes.length, fstBytes.length);\n System.out.printf(\"\\nCustom bytes compressed: %d\\nApache bytes compressed: %d\\nFst bytes compressed: %d\", customBytesCompressed.length, apacheBytesCompressed.length, fstBytesCompressed.length);\n }",
"public File preProcessFile(InputStream in) throws IOException {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tLOG.info(\"BIOPAX Conversion started \"\n\t\t\t\t+ sdf.format(Calendar.getInstance().getTime()));\n\n\t\tif (in == null) {\n\t\t\tthrow new IllegalArgumentException(\"Input File: \" + \" is not found\");\n\t\t}\n\n\t\tSimpleIOHandler simpleIO = new SimpleIOHandler(BioPAXLevel.L3);\n\n\t\t// create a Paxtools Model from the BioPAX L3 RDF/XML input file (stream)\n\t\torg.biopax.paxtools.model.Model model = simpleIO.convertFromOWL(in);\n\t\t// - and the input stream 'in' gets closed inside the above method call\n\n\t\t// set for the IO to output full URIs:\n\n\t\tsimpleIO.absoluteUris(true);\n\n\t\tFile fullUriBiopaxInput = File.createTempFile(\"paxtools\", \".owl\");\n\n\t\tfullUriBiopaxInput.deleteOnExit(); // delete on JVM exits\n\t\tFileOutputStream outputStream = new FileOutputStream(fullUriBiopaxInput);\n\n\t\t// write to an output stream (back to RDF/XML)\n\n\t\tsimpleIO.convertToOWL((org.biopax.paxtools.model.Model) model,\toutputStream); // it closes the stream internally\n\n\t\tLOG.info(\"BIOPAX Conversion finished \" + sdf.format(Calendar.getInstance().getTime()));\n\t\treturn fullUriBiopaxInput;\n\t}",
"public void run() {\r\n\t\twhile(true) {\r\n\t\t\twhile(base.isEnabled()){\r\n\t\t\t\tif(pressureSwitch.get() == false){\r\n\t\t\t\t\tcompressor.set(Value.kOn);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tcompressor.set(Value.kOff);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void craft2by2(ItemStack input, ItemStack output)\r\n\t{\r\n\t\tGameRegistry.addRecipe(output, new Object[] { \"##\", \"##\", '#', input });\r\n\t}",
"public static void main(String[] args) {\n Properties props = new Properties();\n props.put(StreamsConfig.APPLICATION_ID_CONFIG, \"branch-output-dumper\");\n props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, Resources.getInstance().getConfig(KAFKA_BOOTSTRAP_SERVER));\n props.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n props.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n\n final StreamsBuilder builder = new StreamsBuilder();\n KStream<String, String> stream = builder.stream(\"simple-input\");\n\n /* Here, the stream's branches are defined. */\n KStream<String, String>[] branches = stream.branch(\n // A branch for \"a\"\n (key, value) -> value.toLowerCase().startsWith(\"a\"),\n // A branch for \"b\"\n (key, value) -> value.toLowerCase().startsWith(\"b\"),\n // And a branch for everything else.\n (key, value) -> true\n );\n \n // Add a transformation for all the branches.\n branches[0].foreach((key, value) -> System.out.printf(\"Starts with A: %s\\n\", value));\n branches[1].foreach((key, value) -> System.out.printf(\"Starts with B: %s\\n\", value));\n branches[2].foreach((key, value) -> System.out.printf(\"Starts with something else: %s\\n\", value));\n\n final Topology topology = builder.build();\n\n final KafkaStreams streams = new KafkaStreams(topology, props);\n\n final CountDownLatch latch = new CountDownLatch(1);\n Runtime.getRuntime().addShutdownHook(new Thread(\"streams-shutdown-hook\") {\n @Override\n public void run() {\n streams.close();\n latch.countDown();\n }\n });\n\n try {\n streams.start();\n latch.await();\n } catch (Throwable e) {\n System.exit(1);\n }\n\n System.exit(0);\n }",
"public interface flyweight {\n\n public String output(String s);\n}",
"public abstract void outputBmp(FastStringBuffer buf);",
"public static void main(String arg[]) {\n\t\ttry {\n\t\t\tSource transformSource = new StreamSource(arg[0]);\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance(\"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl\", null);\n\t\t\tTransformer transformer = tf.newTransformer(transformSource);\n\t\t\tStreamSource inputSource = new StreamSource(arg[1]);\n\t\t\tStreamResult outputResult = new StreamResult(new File(arg[2]));\n\t\t\ttransformer.transform(inputSource,outputResult);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t}\n\t}",
"@Override\n\tpublic void input() {\n\t\t\n\t}",
"public void doWrite() throws IOException {\n\t\tbbout.flip();\n\t\tsc.write(bbout);\n\t\tbbout.compact();\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}",
"private void m13726b(ExtractorInput extractorInput) throws IOException, InterruptedException {\n int i = ((int) this.f11102u) - this.f11103v;\n if (this.f11104w != null) {\n extractorInput.readFully(this.f11104w.f6929a, 8, i);\n m13714a(new C3638b(this.f11101t, this.f11104w), extractorInput.getPosition());\n } else {\n extractorInput.skipFully(i);\n }\n m13710a(extractorInput.getPosition());\n }",
"public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n int numBoards = Integer.parseInt(f.readLine());\n \n StringTokenizer st = new StringTokenizer(f.readLine());\n \n int[] towers = new int[1000];\n \n for(int i = 0; i < numBoards; i++)\n {\n int board = Integer.parseInt(st.nextToken());\n towers[board-1]++;\n }\n \n int max = 0;\n int numTowers = 0;\n \n for(int i = 0; i < 1000; i++)\n {\n if(towers[i]>0)\n {\n if(towers[i]>max)\n max = towers[i];\n numTowers++;\n }\n }\n \n output = max + \" \" + numTowers;\n //Code here\n\n //out.println(output);\n \n writer.println(output);\n writer.close();\n System.exit(0);\n \n }",
"public void run() throws IOException;",
"public void processOutput() {\n\n\t}",
"void run() throws IOException {\n solve(out);\n // out.flush();\n }",
"public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }",
"public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"private void processIn() throws IOException {\n for (; ; ) {\n var status = fr.process(bbin);\n switch (status) {\n case ERROR:\n silentlyClose();\n return;\n case REFILL:\n return;\n case DONE:\n Frame frame = fr.get();\n fr.reset();\n treatFrame(frame);\n break;\n }\n }\n }",
"protected void runOverride() throws IOException,ClassNotFoundException {\n\t\twhile (running) {\n\t\t\twhile (running && !outQueue.isEmpty())\n\t\t\t\tgetOutputStream().writeObject(outQueue.dequeue());\n\t\t\twhile (running && getInputStream().read() > 0)\n\t\t\t\tinQueue.enqueue(getInputStream().readObject());\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {\n\t\tJob job= Job.getInstance(new Configuration());\n \t\tjob.setJarByClass(BallsPerBoundaryConfig.class);\n \t\tjob.setJobName(\"Hard Hitting Analysis\");\n\t\tjob.setMapperClass(BallsPerBoundaryMapper.class);\n\t\tjob.setReducerClass(BallsPerBoundaryReducer.class);\n\t\tjob.setMapOutputKeyClass(Text.class);\n\t\tjob.setMapOutputValueClass(Text.class);\n \t\tjob.setOutputKeyClass(Text.class);\n\t\tjob.setOutputValueClass(DoubleWritable.class);\n\t\tjob.setInputFormatClass(TextInputFormat.class);\n\t\tjob.setOutputFormatClass(TextOutputFormat.class);\n\t\tFileInputFormat.setInputPaths(job, new Path(args[0]));\n\t\tFileOutputFormat.setOutputPath(job, new Path(args[1]));\n\t\tboolean status = job.waitForCompletion(true);\n\t\tif (status) {\n\t\t\tSystem.exit(0);\n\t\t} \n\t\telse {\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public abstract InputStream stdout();",
"private void loadOutput(InputStream in) throws IOException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\tint c;\r\n\t\twhile((c=in.read())!= -1) \r\n\t\t{\t\t \r\n\t\t\tsb.append((char)c);\r\n\t\t}\t \r\n\t\toutput=sb.toString();\t\t\r\n\t\tlogger.debug(\"output is : \"+output);\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t}",
"@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\r\n System.out.print(BinaryReversalMethod(s.nextLine()));\r\n s.close();\r\n }",
"public void run() \n\t{\n\t\ttry\n\t\t{\n\t\t\t// Record the time-taken to execute the filter\n\t\t\tstartTime.set(System.nanoTime());\n\t\t\t\n\t\t\treadInput(); \n\t\t\t\n\t\t\tstopTime.set(System.nanoTime());\n\t\t\tlogger.recordData(\"ComputeTermFrequencyFilter\", startTime.get(), stopTime.get());\n\t\t\tcomponentWaiter.countDown();\n\t\t}\n\t\tcatch (InterruptedException | IOException e) \n\t\t{ \n\t\t\t//e.printStackTrace(); \n\t\t\tThread.currentThread().interrupt();\n\t\t} \n\t}",
"public void run() {\n\t\tGenRandomString generator = new GenRandomString();\n\t\tStringToInt converter = new StringToInt();\n\t\t\n\t\tint rawData;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\trawData = converter.convert(generator.generate());\n\t\t\t\n\t\t\t//synchronization to make sure that queue is filled up in the correct order.\n\t\t\tsynchronized(GlobalInfo.enqueueLock){\n\t\t\t\tSystem.out.format(\"%d got the lock.\\n\",deviceNumber);\n\t\t\t\tGlobalInfo.inputs[deviceNumber] = rawData;\n\t\t\t\tGlobalInfo.pipeLine.add(GlobalInfo.inputs);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"void gobble(IReader reader) throws IOException;",
"public abstract void useOutput(double output);",
"public abstract void useOutput(double output);",
"public static void main(String args[]) { We must set the RMI security manager to allow downloading of code\n // which, in this case, is the Blitz proxy amongst other things\n //\n try {\n// if (System.getSecurityManager() == null)\n// System.setSecurityManager(new RMISecurityManager());\n\n new Writer().exec();\n } catch (Exception anE) {\n System.err.println(\"Whoops\");\n anE.printStackTrace(System.err);\n }\n }",
"public static void main(String[] args) throws Exception {\n\t\tObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"beagle.txt\")));\r\n\t\tos.writeObject(new Beagle());\r\n\t\t\r\n\t\t ObjectInputStream in=new ObjectInputStream(new FileInputStream(new File(\"beagle.txt\")));\r\n\t\t Beagle b=(Beagle)in.readObject();\r\n\t}",
"public static void main(String[] args) throws FileNotFoundException, IOException{\n InputStream inputStream = new FileInputStream(new File(\"./src/B-large.in\"));\n OutputStream outputStream = new FileOutputStream(new File(\"./src/B-large.out\"));\n InputReaderRevengePancakes in = new InputReaderRevengePancakes(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskRevengePancakes solver = new TaskRevengePancakes();\n solver.solve(1, in, out);\n out.close();\n }",
"void runUsingEncoder(double xTarget, double yTarget, double inputPower);",
"Future<RpcResult<MakeScrambledWithWheatOutput>> makeScrambledWithWheat(MakeScrambledWithWheatInput input);",
"public static void main(String[] args){\n subThing st = new subThing(\"RAWR\");\n st.ep.start(Executors.newCachedThreadPool());\n for(;;){\n // try {\n // Thread.sleep(1);\n // } catch (InterruptedException e) {\n // e.printStackTrace();\n // }\n st.ep.execute();\n Thread.yield();\n }\n/*\n try {\n st.ep.listen(Constants.PROXY_PORT);\n // System.out.println((String) t.p.invoke(\"roar\"));\n for(;;) {\n st.ep.accept();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n */\n /*Command cmdTwo = null;\n Command cmd = new Command(\"concat\",\"-nyan\");\n\n Method[] m = String.class.getMethods();\n Map<String,Method> coolMap = new HashMap<String,Method>();\n for (Method M: m){\n coolMap.put(M.getName(),M);\n }\n\n Object o = \" and again\";\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(\"./cmd.ser\")));\n oos.writeObject(cmd);\n oos.flush();\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(\"./cmd.ser\")));\n cmdTwo = (Command)ois.readObject();\n System.out.println(coolMap.get(cmdTwo.method).invoke(\"rawr\", cmdTwo.args));\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n */\n }",
"public static void main(String[] args) throws Exception {\n FastReader in = new FastReader();\n BufferedWriter output = new BufferedWriter(new OutputStreamWriter(System.out));\n // Read the number of test casese.\n int T = in.nextInt();\n int[] N = new int[T];\n while (T-- > 0) {\n // Read the numbers a and b.\n N[T] = in.nextInt();\n }\n// output.write(Arrays.toString(N));\n// quickSort(N,0,N.length-1);\n// System.out.println(Arrays.toString(N));\n// output.write(Arrays.toString(N));\n Arrays.stream(N).sorted().forEach(System.out::println);\n output.flush();\n }",
"void setBioAssemblyTrans(int bioAssemblyIndex, int[] inputChainIndices, double[] inputTransform, String name);"
]
| [
"0.65564066",
"0.6362747",
"0.6328882",
"0.61198163",
"0.5496498",
"0.54042095",
"0.5400635",
"0.52985686",
"0.5147185",
"0.50070834",
"0.49071744",
"0.48080468",
"0.47502562",
"0.474352",
"0.47095534",
"0.46704552",
"0.46001875",
"0.45831734",
"0.45824432",
"0.45684716",
"0.45336163",
"0.4521181",
"0.44790828",
"0.43837562",
"0.43767694",
"0.43754202",
"0.43721303",
"0.43694103",
"0.43569744",
"0.43392172",
"0.43213814",
"0.4307175",
"0.4305356",
"0.43002892",
"0.42739946",
"0.42720294",
"0.42643267",
"0.42604783",
"0.4257872",
"0.4252838",
"0.42462948",
"0.42451602",
"0.42422533",
"0.42292428",
"0.42263865",
"0.42235503",
"0.4219186",
"0.4215884",
"0.42133498",
"0.4208202",
"0.42051706",
"0.4204526",
"0.42032826",
"0.41944033",
"0.4186637",
"0.4183261",
"0.41797078",
"0.4178843",
"0.41743952",
"0.41718876",
"0.41686997",
"0.41612574",
"0.41592473",
"0.41578168",
"0.4153987",
"0.41515985",
"0.4147753",
"0.41471037",
"0.41439107",
"0.41411254",
"0.4137812",
"0.41316232",
"0.4130071",
"0.41227317",
"0.41202062",
"0.41142598",
"0.41108143",
"0.410352",
"0.410352",
"0.41025212",
"0.40995824",
"0.40994206",
"0.40974337",
"0.40949008",
"0.40896508",
"0.408524",
"0.40831375",
"0.40781412",
"0.40682766",
"0.40621334",
"0.4061242",
"0.4061242",
"0.4060782",
"0.40585625",
"0.4057407",
"0.40510893",
"0.40461746",
"0.40447074",
"0.4044588",
"0.4039594"
]
| 0.41213092 | 74 |
apply BurrowsWheeler inverse transform, reading from standard input and writing to standard output | public static void inverseTransform() {
int first = BinaryStdIn.readInt();
String t = BinaryStdIn.readString();
int N = t.length();
char[] b = new char[N];
for (int i = 0; i < N; i++) b[i] = t.charAt(i);
Arrays.sort(b);
int[] next = new int[N];
int[] count = new int[R + 1];
for (int i = 0; i < N; i++) {
count[t.charAt(i) + 1]++;
}
for (int r = 0; r < R; r++) {
count[r + 1] += count[r];
}
for (int i = 0; i < N; i++) {
next[count[t.charAt(i)]++] = i;
}
int number = 0;
for (int i = first; number < N; i = next[i]) {
BinaryStdOut.write(b[i]);
number++;
}
BinaryStdOut.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testInverseTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT.length(), decoded.length());\n assertEquals(DECODED_INPUT, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testInverseTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT2));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT2.length(), decoded.length());\n assertEquals(DECODED_INPUT2, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testInverseTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT3));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT3.length(), decoded.length());\n assertEquals(DECODED_INPUT3, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Test\n public void testTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT2.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT2.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT2[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n BurrowsWheeler.transform();\n }\n else {\n BurrowsWheeler.inverseTransform();\n }\n }",
"@Test\n public void testTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT3.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT3.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT3[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"public static void inverseTransform() {\n int[] count = new int[R + 1]; // used for count/cumulates for decoding\n @SuppressWarnings(\"unchecked\")\n Queue<Integer>[] fifoIndices = new Queue[R];\n for (int r = 0; r < R; r++) {\n fifoIndices[r] = new Queue<Integer>();\n }\n String binaryInputString = \"\";\n int length; // length of input\n int first;\n // Get input binary stream\n first = BinaryStdIn.readInt();\n while (!BinaryStdIn.isEmpty()) {\n binaryInputString = BinaryStdIn.readString();\n // binaryInputChar = BinaryStdIn.readChar();\n // binaryInputString = binaryInputString.append(binaryInputChar);\n // count[binaryInputChar + 1]++; // update counts\n // fifoIndices[binaryInputChar].enqueue(counter++); // array of FIFOs of indices of binaryInputChar in input binary stream\n }\n length = binaryInputString.length();\n for (int i = 0; i < length; i++) {\n count[binaryInputString.charAt(i) + 1]++;\n // store indices for each character as they appear in FIFO order\n fifoIndices[binaryInputString.charAt(i)].enqueue(i);\n }\n \n // update cumulates\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n \n // sorted first column\n char[] tAux = new char[length];\n \n // move items from string into first column array in sorted order\n for (int i = 0; i < length; i++) {\n tAux[count[binaryInputString.charAt(i)]++] = binaryInputString.charAt(i);\n }\n \n // store corresponding index for relative order\n // i < j --> next[i] < next[j]\n int[] next = new int[length];\n for (int i = 0; i < length; i++) {\n next[i] = fifoIndices[tAux[i]].dequeue();\n }\n \n for (int i = 0; i < length; i++) {\n BinaryStdOut.write(tAux[first]);\n first = next[first];\n }\n BinaryStdOut.flush();\n }",
"public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n String st = BinaryStdIn.readString();\n char[] t1 = st.toCharArray();\n int length = t1.length;\n\n int[] count = new int[R + 1];\n int[] next = new int[length];\n\n for (int i = 0; i < length; i++)\n count[t1[i] + 1]++;\n for (int r = 0; r < R; r++)\n count[r + 1] += count[r];\n for (int i = 0; i < length; i++)\n next[count[t1[i]]++] = i;\n\n\n for (int i = 0; i < length; i++) {\n first = next[first];\n BinaryStdOut.write(t1[first]);\n\n }\n BinaryStdOut.close();\n }",
"public static void inverseTransform()\r\n {\r\n \tint first = BinaryStdIn.readInt();\r\n \tString s = BinaryStdIn.readString();\r\n \tBinaryStdIn.close();\r\n \t\r\n \tchar[] t = s.toCharArray();\r\n \r\n \tchar[] firstCharacters = t.clone();\r\n \tArrays.sort(firstCharacters);\r\n \t\r\n \t// Construction next[] using t[] and first\r\n \tint[] next = constructNext(t, firstCharacters, first);\r\n \t\r\n \t// Writing original string to StdOut using next[] and first\r\n \tint index = first;\r\n \tfor (int i = 0; i < t.length; i++)\r\n \t{\r\n \t\tBinaryStdOut.write(firstCharacters[index]);\r\n \t\tindex = next[index];\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n List<Integer> chars = new ArrayList<>();\n Map<Integer, Queue<Integer>> charPosition = new HashMap<>();\n int currentIndex = 0;\n\n while (!BinaryStdIn.isEmpty()) {\n int i = BinaryStdIn.readInt(8);\n chars.add(i);\n Queue<Integer> position = charPosition.get(i);\n\n if (position == null) {\n position = new Queue<>();\n charPosition.put(i, position);\n }\n\n position.enqueue(currentIndex);\n currentIndex += 1;\n }\n\n int N = chars.size();\n int R = 256;\n int[] count = new int[R + 1];\n\n for (int i = 0; i < N; i++) {\n count[chars.get(i) + 1]++;\n }\n\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n\n int[] h = new int[N];\n\n for (int i = 0; i < N; i++) {\n h[count[chars.get(i)]++] = chars.get(i);\n }\n\n int[] next = new int[N];\n\n for (int i = 0; i < N; i++) {\n int index = charPosition.get(h[i]).dequeue();\n next[i] = index;\n }\n\n int current = first;\n\n for (int i = 0; i < N; i++) {\n BinaryStdOut.write(h[current], 8);\n current = next[current];\n }\n\n BinaryStdOut.flush();\n }",
"public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }",
"void perform(LineReader input, OutputStream output) throws IOException;",
"public static void main(String[] args) throws IOException {\n BmpFile c = new ImageReader().read();\n \n BmpFileTransformer t = new BmpFileTransformer();\n c = t.transform(c);\n \n new ImageInHtmlWriter().create(c);\n BmpFileWriter w = new BmpFileWriter();\n w.write(c);\n }",
"public static void transform() {\r\n \tString str = BinaryStdIn.readString();;\r\n \tCircularSuffixArray suffixArr = new CircularSuffixArray(str);\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tif (suffixArr.index(i) == 0) {\r\n \t\t\tBinaryStdOut.write(i);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tint pos = suffixArr.index(i);\r\n \t\tif (pos == 0) {\r\n \t\t\tpos = suffixArr.length();\r\n \t\t}\r\n \t\tBinaryStdOut.write(str.charAt(pos - 1), 8);\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader bin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tFrodoPillows l = new FrodoPillows();\n\t\tl.readData(bin);\n\t\tl.calculate();\n\t\tl.printRes();\n\t}",
"public static void transform() {\n String s = BinaryStdIn.readString();\n CircularSuffixArray circularSuffixArray = new CircularSuffixArray(s);\n for (int i = 0; i < s.length(); i++) {\n if (circularSuffixArray.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n for (int i = 0; i < s.length(); i++) {\n int index = circularSuffixArray.index(i);\n if (index == 0) {\n BinaryStdOut.write(s.charAt(s.length() - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(index - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n BufferedOutputStream out = new BufferedOutputStream(System.out);\n StringBuilder res = new StringBuilder();\n\n while (true) {\n // skip blank lines and end when no more input\n String line = in.readLine();\n if (line == null)\n break;\n else if (line.equals(\"\"))\n continue;\n\n int b = Integer.valueOf(line);\n int p = Integer.valueOf(in.readLine());\n int m = Integer.valueOf(in.readLine());\n\n res.append(modPow(b, p, m));\n res.append('\\n');\n }\n\n out.write(res.toString().getBytes());\n\n out.close();\n in.close();\n }",
"public static void transform() {\n String s = BinaryStdIn.readString();\n\n CircularSuffixArray csa = new CircularSuffixArray(s);\n\n for (int i = 0; i < csa.length(); i++) {\n \n if (csa.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(s.charAt(csa.length() + csa.index(i) - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(csa.index(i) - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"public static void main(String[] args) {\n System.out.println(bitsToFlipAtoB(29,15));\n }",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\r\n System.out.print(BinaryReversalMethod(s.nextLine()));\r\n s.close();\r\n }",
"@Override\n public void Invert() {\n\t \n }",
"private Bitmap flipImage(byte[] input, FileOutputStream fos){\n\n\t\t\t\tMatrix rotate_matrix = new Matrix();\n\t\t\t\trotate_matrix.preScale(-1.0f, 1.0f);\n\t\t\t\tBitmapFactory bmf = new BitmapFactory();\n\t\t\t\tBitmap raw_bitmap = bmf.decodeByteArray(input, 0, input.length);\n\t\t\t\tBitmap result = Bitmap.createBitmap(raw_bitmap, 0, 0, raw_bitmap.getWidth(), raw_bitmap.getHeight(), rotate_matrix, true);\n\t\t\t\treturn result;\n\t\t\t\t/*\n\t\t\t\tresult.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n\t\t\t\ttry {\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}",
"public static void transform() {\n String input = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(input);\n int first = 0;\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n first = i;\n break;\n }\n }\n BinaryStdOut.write(first);\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(input.charAt(csa.length() - 1));\n }\n else BinaryStdOut.write(input.charAt(csa.index(i) - 1));\n }\n BinaryStdOut.close();\n }",
"@Override\n\tpublic void pipeOutput() {\n\n\t}",
"public static void main(String[] args) throws IOException {\r\n ObjectInputStream in = null; // reads in the compressed file\r\n FileWriter out = null; // writes out the decompressed file\r\n\r\n // Check for the file names on the command line.\r\n if (args.length != 2) {\r\n System.out.println(\"Usage: java Puff <in fname> <out fname>\");\r\n System.exit(1);\r\n }\r\n\r\n // Open the input file.\r\n try {\r\n in = new ObjectInputStream(new FileInputStream(args[0]));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Can't open file \" + args[0]);\r\n System.exit(1);\r\n }\r\n\r\n // Open the output file.\r\n try {\r\n out = new FileWriter(args[1]);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Can't open file \" + args[1]);\r\n System.exit(1);\r\n }\r\n \r\n Puff pf = new Puff();\r\n pf.getFrequencies(in);\r\n // Create a BitReader that is able to read the compressed file.\r\n BitReader reader = new BitReader(in);\r\n\r\n\r\n /****** Add your code here. ******/\r\n pf.createTree();\r\n pf.unCompress(reader,out);\r\n \r\n /* Leave these lines at the end of the method. */\r\n in.close();\r\n out.close();\r\n }",
"@Override\n public void invert() {\n getInvertibles().parallelStream().forEach(Invertible::invert);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Prueba Ejecucion\");\r\n\t\tScanner entrada = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Escriba la palabra o frase: \");\r\n\t\tInvertirpalabra inv = new Invertirpalabra();\r\n\t\tinv.invertirPalabra(entrada.nextLine());\r\n\t\tSystem.out.println(\"La Palabra Invertida es: \" + inv.invertirPalabra(entrada.nextLine()));\r\n\t\tentrada.close();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tString line = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\t\t\n\t\tFiles.write(Paths.get(\"outputh.txt\"), getOutput(line).getBytes(), StandardOpenOption.CREATE);\n\t\t\n\t}",
"public static void transform() {\n String st = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(st);\n int length = csa.length();\n int[] index = new int[length];\n for (int i = 0; i < length; i++) {\n index[i] = csa.index(i);\n if (index[i] == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < length; i++) {\n if (index[i] != 0) BinaryStdOut.write(st.charAt(index[i] - 1));\n else BinaryStdOut.write(st.charAt(length - 1));\n }\n BinaryStdOut.close();\n }",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"@Override\n public void transform(IDoubleArray in, IDoubleArray out)\n {\n // if necessary, flatten input data\n if (in.columns() != 1)\n {\n in = doublesNew.array(in.getArray());\n }\n\n // subtract mean\n IDoubleArray x = alg.subtract(in, moments.getMean());\n \n // make a row\n if (x.rows() > 1)\n x = alg.transposeToNew(x);\n \n IDoubleArray y = alg.product(x, evecTICA);\n int d = Math.min(in.size(),out.size());\n for (int i=0; i<d; i++)\n out.set(i, y.get(i));\n }",
"OutputStream getStdin();",
"int spinTheWheel();",
"@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}",
"public LMScrambleShift (RandomStream stream) {\n super(stream);\n }",
"protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }",
"public abstract BufferedImage transform();",
"@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}",
"public RMTransform getTransformInverse() { return getTransform().invert(); }",
"public static void rewrite(ExecutableReader reader, byte[] data) throws Exception {\n\t\treader.exStr = new ExecutableStream(data);\n\t\treader.read(reader.exStr);\n\t}",
"public static void main(String[] args) {\n filter(\"blup\");\n }",
"private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }",
"public static void main(String[] args) throws IOException{\n\t\tSystem.exit((new BitCompresser()).run(args));\n\t}",
"void setBioAssemblyTrans(int bioAssemblyIndex, int[] inputChainIndices, double[] inputTransform, String name);",
"@Override\n\tpublic String lireFichierReverse() throws IOException {\n\t\treturn null;\n\t}",
"private void m13726b(ExtractorInput extractorInput) throws IOException, InterruptedException {\n int i = ((int) this.f11102u) - this.f11103v;\n if (this.f11104w != null) {\n extractorInput.readFully(this.f11104w.f6929a, 8, i);\n m13714a(new C3638b(this.f11101t, this.f11104w), extractorInput.getPosition());\n } else {\n extractorInput.skipFully(i);\n }\n m13710a(extractorInput.getPosition());\n }",
"public GaussDecayFunctionBuilder(StreamInput in) throws IOException {\n super(in);\n }",
"double passer();",
"public static void main(String[] args) throws FileNotFoundException, IOException{\n InputStream inputStream = new FileInputStream(new File(\"./src/B-large.in\"));\n OutputStream outputStream = new FileOutputStream(new File(\"./src/B-large.out\"));\n InputReaderRevengePancakes in = new InputReaderRevengePancakes(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskRevengePancakes solver = new TaskRevengePancakes();\n solver.solve(1, in, out);\n out.close();\n }",
"public static void main(String[] args) {\n\n\t\tScanner l = new Scanner(new FilterInputStream(System.in) {\n\t\t\t@Override\n\t\t\tpublic void close () {}\n\t\t});\n\n\t\tSystem.out.println(\"wspak: \");\n\t\tString napis = l.nextLine();\n\t\tStringBuffer napis1 = new StringBuffer(napis);\n\t\tSystem.out.println(napis1.reverse());\n\t\t\n\t\tSystem.out.println(napis.length());\n\t\t\n\t}",
"public void runLighten() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 5.3f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public File preProcessFile(InputStream in) throws IOException {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tLOG.info(\"BIOPAX Conversion started \"\n\t\t\t\t+ sdf.format(Calendar.getInstance().getTime()));\n\n\t\tif (in == null) {\n\t\t\tthrow new IllegalArgumentException(\"Input File: \" + \" is not found\");\n\t\t}\n\n\t\tSimpleIOHandler simpleIO = new SimpleIOHandler(BioPAXLevel.L3);\n\n\t\t// create a Paxtools Model from the BioPAX L3 RDF/XML input file (stream)\n\t\torg.biopax.paxtools.model.Model model = simpleIO.convertFromOWL(in);\n\t\t// - and the input stream 'in' gets closed inside the above method call\n\n\t\t// set for the IO to output full URIs:\n\n\t\tsimpleIO.absoluteUris(true);\n\n\t\tFile fullUriBiopaxInput = File.createTempFile(\"paxtools\", \".owl\");\n\n\t\tfullUriBiopaxInput.deleteOnExit(); // delete on JVM exits\n\t\tFileOutputStream outputStream = new FileOutputStream(fullUriBiopaxInput);\n\n\t\t// write to an output stream (back to RDF/XML)\n\n\t\tsimpleIO.convertToOWL((org.biopax.paxtools.model.Model) model,\toutputStream); // it closes the stream internally\n\n\t\tLOG.info(\"BIOPAX Conversion finished \" + sdf.format(Calendar.getInstance().getTime()));\n\t\treturn fullUriBiopaxInput;\n\t}",
"public static void decode() {\n char[] seq = new char[R];\n\n for (int i = 0; i < R; i++)\n seq[i] = (char) i;\n\n while (!BinaryStdIn.isEmpty()) {\n int index = BinaryStdIn.readChar();\n char c = seq[index];\n BinaryStdOut.write(seq[index]);\n\n for (int i = index; i > 0; i--)\n seq[i] = seq[i - 1];\n seq[0] = c;\n }\n BinaryStdOut.close();\n }",
"public Object transform(Object input) {\n try {\n iExecutor.execute(input);\n return input;\n\n } catch (ExecutorException ex) {\n throw new TransformerException(\"ExecutorTransformer: \" + ex.getMessage(), ex);\n }\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n transform();\n }\n else if (args[0].equals(\"+\")) {\n inverseTransform();\n }\n }",
"public static void main(String[] args)\r\n {\r\n \t\r\n \tif (args[0].equals(\"-\"))\r\n \t\ttransform();\r\n \tif (args[0].equals(\"+\"))\r\n \t\tinverseTransform();\r\n\r\n\r\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) transform();\n else if (args[0].equals(\"+\")) inverseTransform();\n else throw new IllegalArgumentException(\"Illegal command line argument\");\n }",
"public static void main(String[] args) throws Exception {\n /////\n /////\n /////\n /////\n /////\n ///// the easy way \n /////\n /////\n /////\n /////\n /////\n /////\n /////\n /////\n\n Scanner inputs = new Scanner(System.in);\n System.out.println(\"enter a number to to turn into binary form\");\n int n ;\n n = inputs.nextInt();\n int[] b= new int[100];\n int i =0;\n while(n > 0)\n \n {\n b[i++] = n%2;\n n = n/2;\n } \n b = Arrays.copyOfRange(b, 0, i-1);\n System.out.println(Arrays.toString(b).replace(\",\", \"\").replace(\"[\", \"\").replace(\"]\", \"\") );\n // System.out.println(\"at first array was \");\n // System.out.println(\"array reverse is \");\n\n // /////\n // /////\n // /////\n // /////\n // /////\n // /////\n // ///// the HARD way \n // /////\n // /////\n // /////\n // /////\n // /////\n // /////\n // /////\n // /////\n // for (int i = 0; i < n/2; i++) {\n // int x = data[i];\n // int y = data[n-i-1];\n // x = x - y;\n // y =x+y;\n // x = y-x;\n // data[i] = x;\n // data[n-i-1] = y;\n // }\n \n // System.out.println(\"HARD IS \"+Arrays.toString(data) );\n\n\n inputs.close();\n\n }",
"public final static void pipe(final InputStream in, final OutputStream out)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n IOUtils.copy(in, out);\n }\n catch (IOException e)\n {\n // Do nothing\n }\n }\n }).start();\n }",
"OUT apply( IN in );",
"private void loadOutput(InputStream in) throws IOException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\tint c;\r\n\t\twhile((c=in.read())!= -1) \r\n\t\t{\t\t \r\n\t\t\tsb.append((char)c);\r\n\t\t}\t \r\n\t\toutput=sb.toString();\t\t\r\n\t\tlogger.debug(\"output is : \"+output);\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t}",
"void runUsingEncoder(double xTarget, double yTarget, double inputPower);",
"public static void testNewBBFArchitecture(){\n\t\t\n\t\tString outputDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\test orientation fix\\\\\";\n\t\tString inputFileName = outputDir+\"Berlin@Berlin_2NDs_B_Square_SW_96-160_201411201541.prejav\";\n\t\t\t\n\t\tExperiment ex = new Experiment(inputFileName);\n\t\t\n\t\t\n\t\tBackboneFitter bbf = new BackboneFitter(ex.getTrackFromInd(50));\n\t\tbbf.fitTrack();\n\t\t\n\t\tBackboneFitter bbfOld = new BackboneFitter();\n\t\t///method no longer exists\n\t\t//bbfOld.fitTrack(ex.getTrackFromInd(50));\n\t\t///\n\t\t\n\t\tSystem.out.println(\"Done\");\n\t}",
"public void runDarken() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 0.5f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tint n=scn.nextInt();\r\n\t\tint[] arr=takeinput(n);\r\nint[] ans=Inverse(arr);\r\nfor(int val:ans)\r\n\tSystem.out.println(val);\r\n\t}",
"public native MagickImage flipImage() throws MagickException;",
"public static void main(String[] args) throws IOException{\n\t\tString txtFileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\not_today.txt\";\r\n\t\tString img1FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts1.jpg\";\r\n\t\tString img2FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts2.jpg\";\r\n\t\t\r\n\t\t// file name String - output\r\n\t\tString result_txt = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_not_today.txt\";\r\n\t\tString result_img1 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts1_img.jpg\";\r\n\t\tString result_img2 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts2_img.jpg\";\r\n\t\t\r\n\t\t// node stream - input\r\n\t\tFileReader fr = new FileReader(txtFileName);\r\n\t\tFileInputStream fis1 = new FileInputStream(img1FileName);\r\n\t\tFileInputStream fis2 = new FileInputStream(img2FileName);\r\n\t\t\r\n\t\t// filter stream - input\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\tDataInputStream dis1 = new DataInputStream(fis1);\r\n\t\tDataInputStream dis2 = new DataInputStream(fis2);\r\n\t\t\r\n\t\t// node stream - output\r\n\t\tFileOutputStream fos1 = new FileOutputStream(result_img1);\r\n\t\tFileOutputStream fos2 = new FileOutputStream(result_img2);\r\n\t\tPrintWriter pw = new PrintWriter(result_txt);\r\n\t\t\r\n\t\t// filter strea - output\r\n\t\tDataOutputStream dos1 = new DataOutputStream(fos1);\r\n\t\tDataOutputStream dos2 = new DataOutputStream(fos2);\r\n\t\t\r\n\t\t// Data reading & Stream closing\r\n\t\tString contents = null;\r\n\t\twhile((contents = br.readLine()) != null){\r\n\t\t\tpw.write(contents + \"\\n\");\r\n\t\t}\t\t\r\n\t\t\r\n\t\tpw.close();\r\n\t\t\r\n\t\tint data = 0;\r\n\t\ttry {\r\n\t\t\twhile((data = dis1.readInt()) != -1){\r\n\t\t\t\tdos1.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (EOFException e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos1.close();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdata = 0;\r\n\t\t\twhile((data = dis2.readInt()) != -1){\r\n\t\t\t\tdos2.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos2.close();\r\n\t\t}\r\n\t\t\t\r\n\t}",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) transform();\n else if (args[0].equals(\"+\")) inverseTransform();\n else throw new IllegalArgumentException(\"Illegal Argument!\");\n }",
"private InputStream interposeActivityDetector(InputStream out) {\n\tfinal NotifyingInputSteam notifier = new NotifyingInputSteam(out);\n\tnotifier.setListener(new NotifyingInputSteam.Listener () {\n\t public void activity () {\n\t\tif (DebuggerOption.FRONT_PIO.isEnabled(\n\t\t\t NativeDebuggerManager.get().globalOptions()))\n\t\t OldTermComponent.this.requestVisible();\n\t }\n\t});\n\tnotifier.arm();\n\n\tout = notifier;\n\treturn out;\n }",
"private void process(ByteBuffer output, final byte[] input, int inPos, KeyStream keyStream) {\n ByteBuffer buf = ByteBuffer.allocate(BLOCK_SIZE_IN_BYTES).order(ByteOrder.LITTLE_ENDIAN);\n int pos = inPos;\n int inLen = input.length - inPos;\n int todo;\n while (inLen > 0) {\n todo = inLen < BLOCK_SIZE_IN_BYTES ? inLen : BLOCK_SIZE_IN_BYTES;\n buf.asIntBuffer().put(keyStream.next());\n for (int j = 0; j < todo; j++, pos++) {\n output.put((byte) (input[pos] ^ buf.get(j)));\n }\n inLen -= todo;\n }\n }",
"void run() throws IOException {\n solve(out);\n // out.flush();\n }",
"private static void rev() {\n\t\tScanner sc = null;\r\n\t\ttry {\r\n\t\t\tsc = new Scanner(new File(\"C:/Users/Aloy Aditya Sen/workspace/test_20/src/thought_render/though1\"));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tif (!sc.hasNext()) {\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tString n=sc.next();\r\n\t\t\tSystem.out.println(\"hitch\");\r\n\t\t\trev();\r\n\t\t\tSystem.out.print(n);\r\n\t\t}\r\n\t\t\r\n\t}",
"public Object transform(Object object) {\n for (int i = 0; i < iTransformers.length; i++) {\n object = iTransformers[i].transform(object);\n }\n return object;\n }",
"public void setInverseOutput(boolean inverseOutput) {\r\n\t\tthis.inverseOutput = inverseOutput;\r\n\t}",
"protected void transform()\n\t{\n\t\tFileSummary summary = getFileSummary();\n\t\tFileCloser.close(summary.getFile());\n\n\t\tsuper.transform();\n\t}",
"@Override\n\tpublic void run(ImageProcessor ip) {\n\t\twidth = ip.getWidth();\n\t\theight = ip.getHeight();\n\n\t\tbyte[] pixels = (byte[]) ip.getPixels();\n\t\tij.gui.Roi[] rois = new ij.gui.Roi[0];\n\t\tbyte[] output = trimSperm(pixels, width, height, rois);\n\n\t\tByteProcessor bp = new ByteProcessor(width, height, output);\n\t\tip.copyBits(bp, 0, 0, Blitter.COPY);\n\t\timage.show();\n\t\timage.updateAndDraw();\n\t}",
"public InvertFilter(String name)\n {\n super(name);\n }",
"void unsetWheel();",
"private void processIn() throws IOException {\n for (; ; ) {\n var status = fr.process(bbin);\n switch (status) {\n case ERROR:\n silentlyClose();\n return;\n case REFILL:\n return;\n case DONE:\n Frame frame = fr.get();\n fr.reset();\n treatFrame(frame);\n break;\n }\n }\n }",
"public Object transform(Object object) {\r\n for (int i = 0; i < iTransformers.length; i++) {\r\n object = iTransformers[i].transform(object);\r\n }\r\n return object;\r\n }",
"public static void invert(ImageProcessor output) {\r\n\t\tfor (int x = 0; x < output.getWidth(); x++) {\r\n\t\t\tfor (int y = 0; y < output.getHeight(); y++) {\r\n\t\t\t\tboolean a = output.get(x, y) > 127;\r\n\t\t\t\toutput.set(x, y, (!a) ? WHITE : BLACK);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String transform(String input);",
"public Object transform(Object input) {\n return input;\n }",
"public static void main(String []args) throws IOException {\n\tFastScanner in = new FastScanner(System.in);\n\tPrintWriter out = \n\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); \n\tsolve(in, out);\n\tin.close();\n\tout.close();\n }",
"public Intake() {\n motor_0.setInverted(true);\n }",
"@Override\n\tpublic void input() {\n\t\t\n\t}",
"public interface OutputProcessor {\n\n void process(Reader reader, Writer writer) throws IOException;\n\n}",
"PseudoFuncOutput restore(PseudoFuncInput input);",
"public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}",
"public static void flipVertical (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(i,ySize-j-1, rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }",
"public void rewrite() throws FitsException, IOException;",
"public static void reverseInput() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tbf.reverse();\n\t\t\tSystem.out.println(\"Chuỗi ngược: \" + bf);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(Y/N):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}",
"void turnUsingEncoder(double degrees, double power);",
"static <A, B, R> BiFunction<B, A, R> flip(BiFunction<A, B, R> f) {\n return (a, b) -> f.apply(b, a);\n }",
"public static void main(String[] args) throws Exception {\n String svg_URI_input = Paths.get(\"chessboard.svg\").toUri().toURL().toString();\n TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);\n //Step-2: Define OutputStream to PNG Image and attach to TranscoderOutput\n OutputStream png_ostream = new FileOutputStream(\"chessboard.png\");\n TranscoderOutput output_png_image = new TranscoderOutput(png_ostream);\n // Step-3: Create PNGTranscoder and define hints if required\n PNGTranscoder my_converter = new PNGTranscoder();\n // Step-4: Convert and Write output\n my_converter.transcode(input_svg_image, output_png_image);\n // Step 5- close / flush Output Stream\n png_ostream.flush();\n png_ostream.close();\n }",
"Activity getTransformBackwardActivity();",
"public static void main(String[] args) throws Exception {\r\n if(args.length != 2){\r\n System.err.println(\"Usage: Inverted <in> <out>\");\r\n System.exit(2);\r\n }\r\n /**\r\n * Load hadoop configuration (Only taking XML files that have a summary tag present)\r\n */\r\n Configuration conf = new Configuration();\r\n conf.set(\"xmlinput.start\", \"<movies>\");\r\n conf.set(\"xmlinput.end\", \"</movies>\");\r\n\r\n //define and submit job\r\n Job job = new Job(conf, \"Movies\");\r\n job.setJarByClass(Inverted.class);\r\n\r\n //define mappers, combiners and reducers\r\n job.setMapperClass(Movies.MoviesMapper.class);\r\n job.setCombinerClass(Movies.MoviesCombiner.class);\r\n job.setReducerClass(Movies.MoviesReducer.class);\r\n\r\n //set input type\r\n job.setInputFormatClass(XMLInputFormat.class);\r\n\r\n //define output type\r\n job.setOutputKeyClass(Text.class);\r\n job.setOutputValueClass(Text.class);\r\n\r\n //set concatenated paths\r\n String paths = new String();\r\n for (int i = 0; i < args.length-1; i++) {\r\n if (i > 0) {\r\n paths += \",\";\r\n }\r\n paths += args[i];\r\n }\r\n\r\n //set input and output\r\n org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPaths(job, paths);\r\n FileOutputFormat.setOutputPath(job, new Path(args[args.length-1]));\r\n\r\n System.exit(job.waitForCompletion(true) ? 0 : 1);\r\n }",
"protected void runOverride() throws IOException,ClassNotFoundException {\n\t\twhile (running) {\n\t\t\twhile (running && !outQueue.isEmpty())\n\t\t\t\tgetOutputStream().writeObject(outQueue.dequeue());\n\t\t\twhile (running && getInputStream().read() > 0)\n\t\t\t\tinQueue.enqueue(getInputStream().readObject());\n\t\t}\n\t}"
]
| [
"0.69826484",
"0.6816762",
"0.67806256",
"0.6734761",
"0.66478264",
"0.65675867",
"0.6542327",
"0.59532785",
"0.58001983",
"0.5776313",
"0.54837036",
"0.5200868",
"0.50022066",
"0.49973074",
"0.49494058",
"0.49403203",
"0.48900276",
"0.48812687",
"0.4852544",
"0.47806376",
"0.47657606",
"0.4745434",
"0.47244555",
"0.47113046",
"0.4696912",
"0.46577692",
"0.4601958",
"0.45715472",
"0.45018813",
"0.45016283",
"0.44989973",
"0.44378182",
"0.44160286",
"0.44056407",
"0.43952712",
"0.43945527",
"0.4388741",
"0.43835816",
"0.43729147",
"0.4372237",
"0.4370193",
"0.4360821",
"0.43562648",
"0.4351761",
"0.43446544",
"0.43394879",
"0.43331394",
"0.4317752",
"0.4300397",
"0.4294849",
"0.42902917",
"0.42813942",
"0.4277233",
"0.4243836",
"0.42402157",
"0.42400008",
"0.42337617",
"0.42275298",
"0.42244676",
"0.42105088",
"0.42103994",
"0.42031312",
"0.42001194",
"0.41859722",
"0.4184542",
"0.41844624",
"0.41811255",
"0.4170925",
"0.41699654",
"0.41678458",
"0.4164033",
"0.41618973",
"0.41597447",
"0.41596895",
"0.4144135",
"0.41302308",
"0.41260925",
"0.4125794",
"0.41240388",
"0.41237944",
"0.41234317",
"0.41228658",
"0.41181135",
"0.41179866",
"0.41165805",
"0.41159165",
"0.41138843",
"0.41013113",
"0.4094317",
"0.40938684",
"0.40908825",
"0.4076245",
"0.40751544",
"0.40707475",
"0.40689316",
"0.40586516",
"0.4057912",
"0.40517616",
"0.40504938",
"0.4049468"
]
| 0.5875049 | 8 |
if args[0] is "", apply BurrowsWheeler transform if args[0] is "+", apply BurrowsWheeler inverse transform | public static void main(String[] args) {
if (args[0].equals("-")) transform();
else if (args[0].equals("+")) inverseTransform();
else throw new IllegalArgumentException("Illegal Argument!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n BurrowsWheeler.transform();\n }\n else {\n BurrowsWheeler.inverseTransform();\n }\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n transform();\n }\n else if (args[0].equals(\"+\")) {\n inverseTransform();\n }\n }",
"public static void main(String[] args)\r\n {\r\n \t\r\n \tif (args[0].equals(\"-\"))\r\n \t\ttransform();\r\n \tif (args[0].equals(\"+\"))\r\n \t\tinverseTransform();\r\n\r\n\r\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) transform();\n else if (args[0].equals(\"+\")) inverseTransform();\n else throw new IllegalArgumentException(\"Illegal command line argument\");\n }",
"public static void main(String[] args) {\r\n \tif (args.length > 0) {\r\n \t\tString operator = args[0];\r\n \t\tif (operator.equals(\"-\")) {\r\n \t\t\ttransform();\r\n \t\t} else if (operator.equals(\"+\")) {\r\n \t\t\tinverseTransform();\r\n \t\t} else {\r\n \t\t\tthrow new IllegalArgumentException();\r\n \t\t}\r\n \t}\r\n }",
"public static void main(String[] args)\n {\n String c = args[0];\n if(c.equals(\"-\"))\n encode();\n else if(c.equals(\"+\"))\n decode();\n \n }",
"public static void main (String[] args) {\n if (args[0].equals(\"-\"))\n encode();\n if (args[0].equals(\"+\"))\n decode();\n }",
"public static void main(String[] args) {\n if (args[0].equals(\"-\")) encode();\n else if (args[0].equals(\"+\")) decode();\n else throw new IllegalArgumentException(\"Command line argument error !!!\");\n }",
"public String visit(BinOp n, Object argu)\r\n\t {\r\n switch(n.f0.f0.which)\r\n\t {\r\n\t case 0:return \"slt\";\r\n\t case 1:return \"add\";\r\n\t case 2:return \"sub\";\r\n\t case 3:return \"mul\";\r\n\t default:break;\r\n\t }\r\n return null;\r\n\t }",
"public final native void transform(String transform, Element node) /*-{ this.transform(transform, node) }-*/;",
"public static void main(String[] args) {\n filter(\"blup\");\n }",
"protected Float additionalTransformation(String term, Float value){\n\t\tif(!ENABLE_ADD_NORMALIZATION) return value;\n\t\t\n\t\tFloat result = value;\n\t\t//result *= this.weightTermUniqeness(term); \n\t\tresult = this.sigmoidSmoothing(result);\n\t\t\n\t\treturn result;\n\t}",
"public static void main(String[] args)\n {\n switch (args[0]) {\n case \"-\":\n encode();\n break;\n case \"+\":\n decode();\n break;\n default:\n System.out.println(\"Invalid arguments, needs to be a '-' or '+'\");\n break;\n }\n }",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"public static void main(String[] args) {\n System.out.println(bitsToFlipAtoB(29,15));\n }",
"OUT apply(IN argument);",
"private void convert() {\n\t\tList<Node> e = findNextElements();\n\t\twhile(e != null) {\n\t\t\tNode parent = e.get(0).getParentNode();\n\t\t\tNode apply = doc.createElement(\"apply\");\n\t\t\tparent.insertBefore(apply, e.get(0));\n\t\t\tString fun = e.get(0).getTextContent().equals(\"|\")? \"abs\" : \"ceiling\";\n\t\t\tapply.appendChild(doc.createElement(fun));\n\t\t\tfor(Node n : e) {\n\t\t\t\tapply.appendChild(n);\n\t\t\t}\n\t\t\tapply.removeChild(e.get(0));\n\t\t\tapply.removeChild(e.get(e.size() - 1));\n\t\t\te = findNextElements();\n\t\t}\n\t}",
"public static void main(String[] args) {\n System.out.println(transform(\"\"));\n System.out.println(transform(\"I cän ©onvë®t - things & stuff: ½. ®\"));\n }",
"@Override\n\tpublic void visit(Subtraction arg0) {\n\n\t}",
"int spinTheWheel();",
"double passer();",
"private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }",
"@Override\n\tpublic void visit(Subtraction arg0) {\n\t\t\n\t}",
"public static int transformCoordenate(int floor, byte axis) {\n switch (floor) {\n case 0:\n switch (axis) {\n case X_COORD:\n return 0;\n case Y_COORD:\n return -103;\n }\n break;\n case 1:\n return 0;\n case 2:\n switch (axis) {\n case X_COORD:\n return -321;\n case Y_COORD:\n return -23;\n }\n break;\n case 3:\n switch (axis) {\n case X_COORD:\n return -137;\n case Y_COORD:\n return -241;\n }\n break;\n case 4:\n switch (axis) {\n case X_COORD:\n return 0;\n case Y_COORD:\n return -13;\n }\n break;\n case 5:\n switch (axis) {\n case X_COORD:\n return 0;\n case Y_COORD:\n return -90;\n }\n break;\n case 6:\n switch (axis) {\n case X_COORD:\n return -116;\n case Y_COORD:\n return -223;\n }\n break;\n }\n return 0;\n }",
"public static void main(String[] args) {\n\n Function<Integer, String> parOuImpar = n -> n % 2 == 0 ? \"Par\" : \"Ímpar\";\n\n System.out.println(parOuImpar.apply(27));\n\n Function<String, String> oResutladoE = v -> \"O resultado é: \" + v;\n\n Function<String, String> empolgado = x -> x + \"!!\";\n\n Function<String, String> duvida = v -> v + \"??\";\n\n String resultadoFinal = parOuImpar\n .andThen(oResutladoE) //Função encadeada\n .andThen(empolgado) //Função encadeada\n .apply(27);\n System.out.println(resultadoFinal);\n\n String resutladoFinal2 = parOuImpar\n .andThen(duvida)\n .apply(33);\n System.out.println(resutladoFinal2);\n\n }",
"public static void main(String[] args) {\r\n String operation = args[0];\r\n switch (operation) {\r\n case \"+\": // decode\r\n decode();\r\n break;\r\n case \"-\": // encode\r\n encode();\r\n break;\r\n default: // invalid command-line argument\r\n StdOut.println(\"Invalid command line argument: \" + operation);\r\n break;\r\n } \r\n }",
"@Override\n public Object calculate(final List<Object> args) {\n VString value = (VString) args.get(0);\n String newName = null;\n if (value != null) {\n newName = value.getValue();\n }\n\n // If the name does not match, disconnect and connect\n if (!Objects.equals(newName, previousName)) {\n // Disconnect previous\n if (currentExpression != null) {\n getDirector().disconnectReadExpression(currentExpression);\n currentExpression = null;\n }\n\n // Connect new\n if (newName != null) {\n currentExpression = channel(newName, Object.class);\n getDirector().connectReadExpression(currentExpression);\n }\n previousName = newName;\n }\n\n // Return value\n if (newName == null) {\n return null;\n }\n return currentExpression.getFunction().readValue();\n }",
"void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}",
"public static void main(String[] args) {\n\t\tprepare(45, d -> d > 5 || d < -5);\t// k2\n\t}",
"@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}",
"@Override\r\n\tpublic String pipeTwoCommands(String... args) {\r\n\t\treturn pipeCaller(args);\r\n\t}",
"public Squarelotron sideFlip(String side);",
"public static void configure(SnapShop theShop)\r\n{\r\n \r\n\r\n theShop.setDefaultFilename(\"C:/Users/An Nguyen/Documents/billg.jpg\");\r\n theShop.addFilter(new FlipHorizontalFilter(), \"Flip Horizontal\");\r\n // add your other filters below\r\n \r\n theShop.addFilter(theShop.new FlipVerticalFilter(), \"Flip Vertical\");\r\n theShop.addFilter(theShop.new Gaussian(), \"Gaussian\");\r\n theShop.addFilter(theShop.new Lapcian(), \"Lapcian\");\r\n theShop.addFilter(theShop.new UnsharpMasking(), \"UnsharpMasking\");\r\n theShop.addFilter(theShop.new Edgy(), \"Edgy\");\r\n \r\n \r\n \r\n \r\n}",
"public static void main(String[] args) {\n\t\tnew RotateMatrix().rotate90AntiClockwise(new RotateMatrix().matrix);\n\t}",
"Activity getTransformBackwardActivity();",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\tPlayer player = (Player) sender;\n\t\t// if console\n\t\tif (!(sender instanceof Player)) {\n\t\t\tsender.sendMessage(\"You Cant Use This In Here DUDE!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// first argument specified\n\t\tString argumentOne;\n\t\t// try this out instead of 100% doing it, because it could give an error if it doesnt exist\n\t\ttry {\n\t\t\t// String[] args are the arguments that were provided after the command\n\t\t\t// like \"/dab mystats\" has one argument, \"mystats\"\n\t\t\t// arrays start at 0, so the first argument is args[0]\n\t\t\targumentOne = args[0];\n\t\t} catch (Exception e) {\n\t\t\t// if the argument does not exist, scream and return\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify An Argument! \" + ChatColor.RED + \">:-(\");\n\t\t\treturn false;\n\t\t}\n\t\t// now that we have secured that argumentOne is the first argument\n\t\t// if the first argument is \"buy\" (/zuccbucc buy), do stuff\n\t\tif (argumentOne.equalsIgnoreCase(\"buy\")) {\n\t\t\t// you'll need to specify an amount, like \"/zuccbucc buy 5\"\n\t\t\t// so we need to do the same thing with that amount\n\t\t\t// argumentTwo is what is typed\n\t\t\tString argumentTwo;\n\t\t\t// amountOfZuccBuccs is the integer that represents this value\n\t\t\tint amountOfZuccBuccs;\n\t\t\ttry {\n\t\t\t\targumentTwo = args[1];\n\t\t\t\t// you can't use a string as a number, so you have to turn the number given into an integer\n\t\t\t\t// parseInt(string) turns a string into an integer\n\t\t\t\tamountOfZuccBuccs = Integer.parseInt(argumentTwo);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// scream and return if doesnt work\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify How Many ZuccBuccs! \" + ChatColor.RED + \">:-(\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if the amount given is too much to buy at one time, tell them to stop\n\t\t\tif (amountOfZuccBuccs > 50) {\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"No! You Cant Buy This menay. Grrr...\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// string name of the player\n\t\t\tString owner = player.getName();\n\t\t\t// add the amount of ZuccBuccs specified to the BuccHandler\n\t\t\t// loop through and create a new ZuccBucc each number between 0 and amountOfZuccBuccs\n\t\t\tfor (int i = 0; i < amountOfZuccBuccs; i++) {\n\t\t\t\tZuccBucc zuccBucc = new ZuccBucc(owner);\n\t\t\t\tZuccBuccPlugin.getHandler().addZuccBucc(zuccBucc);\n\t\t\t}\n\t\t\t// congrats\n\t\t\tplayer.sendMessage(ChatColor.GREEN + \"You just bought \" + amountOfZuccBuccs + \" ZuccBuccs! Nice!\");\n\t\t\treturn true;\n\t\t}\n\t\t// check the amount of ZuccBuccs you have, and the value of them\n\t\tif (argumentOne.equalsIgnoreCase(\"amount\")) { \n\t\t\t// get the list of ZuccBuccs that the player owns (method created in BuccHandler)\n\t\t\tList<ZuccBucc> zuccBuccs = ZuccBuccPlugin.getHandler().getZuccBuccs(player);\n\t\t\t// you got that amount of ZuccBuccs total\n\t\t\tplayer.sendMessage(ChatColor.GRAY + String.valueOf(zuccBuccs.size()) + \" ZuccBuccs total!\");\n\t\t\t// value of each ZuccBucc is added to this double\n\t\t\tdouble value = 0;\n\t\t\t// loop through each ZuccBucc you own and add it to the total value\n\t\t\tfor (ZuccBucc zuccBucc : zuccBuccs) {\n\t\t\t\tvalue = value + zuccBucc.getValue();\n\t\t\t}\n\t\t\t// now that you have the total value, send it to them\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Your ZuccBuccs are valued at \" + String.valueOf(value) + \"!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void testTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT2.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT2.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT2[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }",
"public static void main(String[] args) throws IOException{\n\t\tSystem.exit((new BitCompresser()).run(args));\n\t}",
"@Test\n public void testTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Override\n protected void execute() {\n //Activate both lifters, throttled by height\n if (Robot.myLifter.getLeftEncoder() > 75) {\n Robot.myLifter.setLeftSpeed(-0.3);\n Robot.myLifter.setRightSpeed(-0.3);\n } else {\n Robot.myLifter.setLeftSpeed(-0.5);\n Robot.myLifter.setRightSpeed(-0.5);\n }\n \n }",
"@Override\n\tpublic void tanCongKeXau() {\n\n\t}",
"protected void lowerBot() {\n lowerBot(-.3);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tBasicRLECompression compress = new BasicRLECompression('$');\n\t\t//String res = compress.compress(str);\n\t\t//System.out.println(res);\n\t\tString out = compress.uncompress(\"a$4g$4e$4f$1e$1a$f6\");\n\t\t//System.out.println(out);\n\t\t//System.out.println(str);\n\t\t//System.out.print(out.equals(str));\n\t}",
"@Override\n\tpublic double applyFunction(double in) {\n\t\treturn 0;\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public Expression asExpression(Rule rule, Deque<Value<Expression>> args) {\n if (args.size() == 1) {\n // a single term is not a sum\n return args.pollFirst().getTarget();\n } else {\n Expression signedTerm = args.removeFirst().getTarget();\n if (! (signedTerm instanceof Term<?>)\n || ! (((Term<?>) signedTerm).operation instanceof Additive)) {\n // force \"x\" to be \"+x\"\n signedTerm = new Term<>(Additive.PLUS, signedTerm);\n }\n List<Term<Additive>> arguments = new LinkedList<>();\n arguments.add((Term<Additive>) signedTerm);\n args.stream()\n // next arguments are all Term<Additive>\n .map(v -> (Term<Additive>) v.getTarget())\n .forEachOrdered(arguments::add);\n return new Sum(arguments);\n }\n }",
"static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {\n return arg -> op.apply(f1.apply(arg));\n }",
"@Override\n public Matrix4 calculateTransform(long now, float deltaSeconds) {\n transform.idt();\n for (final Action action : pressed.values().toArray()) {\n action.perform(deltaSeconds);\n }\n scrollAction.perform();\n return transform;\n }",
"public void handler() {\n int t = B();\n int r = (konami.cc & CC_C) | t << 1;\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n B(r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rolb :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 }",
"@Override\n public boolean apply$mcZF$sp (float arg0)\n {\n return false;\n }",
"public static void main(String[] args) {\n shift();\n\n }",
"@Test\n public void testTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input\n System.setIn(new ByteArrayInputStream(DECODED_INPUT3.getBytes()));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.transform();\n byte[] encoded = baos.toByteArray();\n assertEquals(ENCODED_INPUT3.length, encoded.length);\n for (int i = 0; i < encoded.length; i++) {\n assertEquals(ENCODED_INPUT3[i], encoded[i]);\n }\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"public static void main(String[] args) {\n\t\tString[] operations = { \"0 0 L\", \"2 2 L\", \"0 2 R\" };\r\n\t\tSystem.out.println(rollingString(\"abc\", operations));\r\n\r\n\t}",
"@Override\n public void testTransform() {\n BinaryStringStringPipe b1 = randomInstance();\n Expression newExpression = randomValueOtherThan(b1.expression(), () -> randomBinaryStringStringExpression());\n BinaryStringStringPipe newB = new BinaryStringStringPipe(\n b1.source(),\n newExpression,\n b1.left(),\n b1.right(),\n b1.operation());\n assertEquals(newB, b1.transformPropertiesOnly(v -> Objects.equals(v, b1.expression()) ? newExpression : v, Expression.class));\n \n BinaryStringStringPipe b2 = randomInstance();\n Source newLoc = randomValueOtherThan(b2.source(), () -> randomSource());\n newB = new BinaryStringStringPipe(\n newLoc,\n b2.expression(),\n b2.left(),\n b2.right(),\n b2.operation());\n assertEquals(newB,\n b2.transformPropertiesOnly(v -> Objects.equals(v, b2.source()) ? newLoc : v, Source.class));\n }",
"Lab apply();",
"void sharpen();",
"void sharpen();",
"@Override\n public void input(float delta) {\n\n }",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tif(scale != 1.0) {\n\t\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n\t\t\tPoint2D.Double worldPoint = new Point2D.Double();\n\t\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n\t\t\tviewToWorld.transform(view, worldPoint);\n\t\t\t\n\t\t\twX = worldPoint.getX();\n\t\t\twY = worldPoint.getY();\n\t\n\t\t\tdouble diffX = wDragStartX - wX;\n\t\t\tdouble diffY = wDragStartY - wY;\n\t\t\tdouble wulX = worldUpperLeft.getX();\n\t\t\tdouble wulY = worldUpperLeft.getY();\n\t\t\tdouble newUpX = diffX + wulX;\n\t\t\tdouble newUpY = diffY + wulY;\n\t\t\t\n\t\t\tif(newUpX < 0)\n\t\t\t\tnewUpX = 0;\n\t\t\tif(newUpY < 0)\n\t\t\t\tnewUpY = 0;\n\t\t\tif(scale == 2.0 && newUpX > 512)\n\t\t\t\tnewUpX = 512;\n\t\t\tif(scale == 2.0 && newUpY > 512)\n\t\t\t\tnewUpY = 512;\n\t\t\tif(scale == 4.0 && newUpX > 768)\n\t\t\t\tnewUpX = 768;\n\t\t\tif(scale == 4.0 && newUpY > 768)\n\t\t\t\tnewUpY = 768;\n\t\t\t\n\t\t\tworldUpperLeft = new Point2D.Double(newUpX, newUpY);\n\t\t\t\n\t\t\tif(worldUpperLeft.getX() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setHScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setHScrollBarPosit((int) worldUpperLeft.getX());\n\t\t\t\n\t\t\tif(worldUpperLeft.getY() + scrollbarSize > MAXSCROLLBARSIZE) \n\t\t\t\tGUIFunctions.setVScrollBarPosit(MAXSCROLLBARSIZE - scrollbarSize);\n\t\t\telse \n\t\t\t\tGUIFunctions.setVScrollBarPosit((int) worldUpperLeft.getY());\n\t\t\tGUIFunctions.refresh();\n\t\t}\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t//Calling normal method with 2 arguments\r\n\t\tint a = incBy1AndMul(5, 100);\r\n\t\tSystem.out.println(a);\r\n \r\n\t\t//Calling BiFunction i.e. passing 2 arguments\r\n\t\tint b = biIncBy1andMulByY.apply(5, 100);\r\n\t\tSystem.out.println(b);\r\n\t}",
"@Override\n\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tif(args[1].equalsIgnoreCase(\"R\")){\n\t\t\thacerConVector(args[0],Double.parseDouble(args[2]),Double.parseDouble(args[3]));\n\t\t}\n\t\t//Hacer busqueda por pares\n\t\tif(args[1].equalsIgnoreCase(\"P\")){\n\t\t\thacerConLista(args[0],args[2],Double.parseDouble(args[3]));\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tFunction<Integer, Double> half = a -> a / 2.0;\n\t\t\n\t\tSystem.out.println(half.apply(10));\n\t\t\n\t\t\n\t\t//example of andThen()\n\t\t\n\t\thalf = half.andThen(a -> 3 * a);\n\t\t\n\t\tSystem.out.println(half.apply(10));\n\t\t\n\t\t//example of compose()\n\t\t//This returns a composed function wherein the parameterized function\n\t\t//will be executed first and the nthe first one. If evaluation of either\n\t\t//function throws an error, it is relayed to the caller of the composed function\n\t\t\n\t\t\n\t}",
"public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }",
"@Test\n public void testInverseTransform2() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT2));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT2.length(), decoded.length());\n assertEquals(DECODED_INPUT2, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public static void main(String[] args) {\n unaryAndBinaryOperator();\n }",
"public static void main(String[] args) {\n System.out.println(\"Nombre d'arguments : \" + args.length);\n for(int i = 0; i < args.length; i++) {\n System.out.println(\"Argument \" + i + \" : \" + args[i]);\n }\n \n if(args.length > 2) {\n float res = 0;\n \n switch(args[1]) {\n case \"+\":\n res = Float.parseFloat(args[0]) + Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"-\":\n res = Float.parseFloat(args[0]) - Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"x\":\n res = Float.parseFloat(args[0]) * Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"/\":\n res = Float.parseFloat(args[0]) / Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n default:\n res = Float.parseFloat(args[0]) + Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" + \" + args[2] + \" = \" + res);\n }\n } else {\n System.out.println(\"Pas assez d'arguments pour effectuer un calcul.\");\n }\n \n \n /*\n //Exo 3\n //A.\n int i = 1294;\n String str = Integer.toString(i);\n System.out.println(i);\n \n //B.\n int j = 0;\n if(args.length != 0) j = Integer.parseInt(args[0]);\n \n //C.\n float f = 0;\n if(args.length != 0) f = Float.parseFloat(args[0]);\n \n //D.\n System.out.println(\"Entrez un nom de ville : \");\n */\n \n Scanner sc1 = new Scanner(System.in);\n \n /*\n String str1 = sc1.nextLine();\n System.out.println(str1.toUpperCase());\n \n //E.\n System.out.println(\"Entrez une chaîne s1 : \");\n String s1 = sc1.nextLine();\n String s2 = sc1.nextLine();\n if(s1.charAt(0) == s2.charAt(0)) System.out.println(\"Ces deux chaînes commencent par le même caractère : \" + s1.charAt(0));\n else System.out.println(\"Ces deux chaînes ne commencent pas par le même caractère !\");\n \n //F.\n System.out.println(\"s1 == s2 renvoie : \" + (s1 == s2));\n System.out.println(\"s1.equals(s2) renvoie : \" + s1.equals(s2));\n System.out.println(\"s1.compareTo(s2) renvoie : \" + s1.compareTo(s2));\n System.out.println(\"s1.compareToIgnoreCase(s2) renvoie : \" + s1.compareToIgnoreCase(s2));\n \n //G.\n if(s1.startsWith(s2)) System.out.println(\"s1 commence par s2\");\n else System.out.println(\"s1 ne commence pas par s2\");\n \n if(s1.endsWith(s2)) System.out.println(\"s1 finit par s2\");\n else System.out.println(\"s1 ne finit pas par s2\");\n \n if(s1.contains(s2)) System.out.println(\"s1 contient s2\");\n else System.out.println(\"s1 ne contient pas s2\");\n \n //H.\n if(s1.contains(s2)) System.out.println(\"s1 sans s2 : \" + s1.replace(s2, \"\"));\n else System.out.println(\"s1 ne contient pas s2 : opération impossible !\");\n \n //I.\n s1 = s1.intern();\n s2 = s2.intern();\n System.out.println(\"s1.equals(s2) apprès intern() : \" + s1.equals(s2));\n System.out.println(\"s1 == s2 apprès intern() : \" + (s1 == s2));\n */\n \n /*\n //Exo 4\n System.out.println(\"Combien de nombres aléatoires voulez-vous : \");\n int nbNombres = sc1.nextInt();\n int[] n = new int[nbNombres];\n for(int b = 0; b < nbNombres; b++) {\n n[b] = (int) (Math.random() * 1000);\n }\n \n System.out.println(\"Etude de 100 000 nombres aléatoires compris entre 1 et \" + nbNombres + \" : \");\n \n double sum = 0;\n double q = 0;\n double m;\n double et;\n \n for(int b = 0; b < nbNombres; b++) {\n sum += n[b];\n q += n[b] * n[b];\n }\n \n m = sum / nbNombres;\n et = q / nbNombres - m * m;\n et = Math.sqrt(et);\n System.out.println(\"Moyenne : \" + m);\n System.out.println(\"Ecart-type : \" + et);\n */\n \n /*\n //Exo 5\n System.out.println(\"Entrez le nombre dont vous voulez avoir la factorielle : \");\n int nb = sc1.nextInt();\n Fact fact = new Fact(nb);\n */\n \n //Exo 6\n //Chrono chr = new Chrono();\n }",
"@Override\r\n\tprotected String doBackward(List<Emotion> b) {\n\t\treturn null;\r\n\t}",
"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}",
"public void fly(float fly){\n\t}",
"private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }",
"@Test\n public void testInverseTransform() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT.length(), decoded.length());\n assertEquals(DECODED_INPUT, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"Transform<A, B> getTransform();",
"boolean getWheel();",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter one number :\");\n\t\tdouble num=scan.nextDouble();\n\t\t\n//\t\tif(num>=0) {\n//\t\t\tSystem.out.println(\"Pozitive or Notr\");\n//\t\t}else {\n//\t\t\tSystem.out.println(\"Negative\");\n//\t\t}\n//\t\t\n\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t//Ternary Operator\n\t\t// \t\t\t\tCondition soru isareti Condition dogru ise\t\t\tiki nokta ustuse\tcondition yanlis ise \n\t\t\n\t\tString sonuc = (num>=0) ? \"Pozitive or Notr\"\t\t:\t\t\t\t\t\"Negative\";\n\t\tSystem.out.println(sonuc);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\tscan.close();\t\n\t}",
"public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }",
"public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"private static String determineOperation(String[] args)\n {\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) { //$NON-NLS-1$\n return arg;\n }\n }\n return null;\n }",
"@Override\r\n\tpublic Node visitPipeSkel(PipeSkelContext ctx) {\n\t\treturn super.visitPipeSkel(ctx);\r\n\t}",
"@Test\n public void testInverseTransform3() {\n InputStream standardIn = System.in;\n PrintStream standardOut = System.out;\n try {\n // setup new input with encoded message\n System.setIn(new ByteArrayInputStream(ENCODED_INPUT3));\n // create new output stream as byte array and assign to standard\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(baos));\n\n BurrowsWheeler.inverseTransform();\n String decoded = baos.toString();\n // check length and chars\n assertEquals(DECODED_INPUT3.length(), decoded.length());\n assertEquals(DECODED_INPUT3, decoded);\n } finally {\n // return standard input and output\n System.setIn(standardIn);\n System.setOut(standardOut);\n }\n }",
"public ResultTransform(org.xms.g.utils.XBox param0) {\n super(param0);\n wrapper = true;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public void Invert() {\n\t \n }",
"void setKeyWheel(boolean keyWheel);",
"public static void main(String[] args) {\n\t\tshiftValues();\n\t}",
"@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n tr_z -= 0.01f;\n }\n }",
"private void reverseCompSpeed() {\n this.compSpeed = -this.compSpeed;\n }",
"public static void main(String[] args) {\n\t\treverseAlternate(\"Hello Good Morning nanshu\");\n\t\t\t//reverseWords1(\"Hello Good Morning\");\n\t\t\t\n\t\t\t\n\t\t\t//String str1 = \"nashu\";\n\t\t\t//Middle(str1);\n\t}",
"@Override\n public <A> Function1<Object, A> andThen$mcZJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n\tpublic void input(float delta) {\n\t\t\n\t}",
"public static BinaryExpression leftShift(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void apply();",
"public void apply();",
"public void apply();",
"protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }",
"public void chase(Rabbit rabbit, Grid grid) {\n // get the x and y distances from cheetah to rabbit\n int x = rabbit.getPosition().getX() - getPosition().getX();\n int y = rabbit.getPosition().getY() - getPosition().getY();\n\n // move along the axis which still has the furthest to travel\n if (Math.abs(x) > Math.abs(y)) {\n if (x > 0) {\n move(Direction.RIGHT, grid);\n }\n else if (x < 0){\n move(Direction.LEFT, grid);\n }\n }\n else {\n if (y > 0) {\n move(Direction.DOWN, grid);\n }\n else if (y < 0){\n move(Direction.UP, grid);\n }\n }\n }",
"private double f(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretador.getResultado(\"!\"+x1);\r\n }\r\n return interpretador.getResultado(x);\r\n }"
]
| [
"0.7432263",
"0.64872825",
"0.63750136",
"0.6084334",
"0.58750206",
"0.5100899",
"0.50037",
"0.48549414",
"0.4704609",
"0.46756247",
"0.46682248",
"0.45533323",
"0.45432884",
"0.45301113",
"0.45165583",
"0.44966048",
"0.4496364",
"0.44875208",
"0.44563207",
"0.44214654",
"0.44121015",
"0.44084793",
"0.43930006",
"0.4389077",
"0.43849677",
"0.4375714",
"0.43723574",
"0.4357113",
"0.43451464",
"0.43438873",
"0.4337986",
"0.43368596",
"0.42953673",
"0.4292895",
"0.42819402",
"0.42761904",
"0.4272031",
"0.42610636",
"0.4238354",
"0.42190343",
"0.4217198",
"0.42135316",
"0.42128676",
"0.42113924",
"0.42083743",
"0.42078668",
"0.4205799",
"0.420009",
"0.4189496",
"0.4188553",
"0.41865218",
"0.41857696",
"0.41791958",
"0.417242",
"0.41708198",
"0.4168685",
"0.4168685",
"0.41652593",
"0.41613844",
"0.4160092",
"0.4157305",
"0.4153872",
"0.41515738",
"0.41507962",
"0.41458455",
"0.41456982",
"0.41396827",
"0.41334915",
"0.41319516",
"0.41291508",
"0.41158357",
"0.41146713",
"0.4110571",
"0.4104138",
"0.41023967",
"0.40960437",
"0.40946624",
"0.4094446",
"0.40920073",
"0.40904862",
"0.4087615",
"0.40870872",
"0.4086942",
"0.40860623",
"0.40803716",
"0.40745497",
"0.40738884",
"0.40721107",
"0.4061156",
"0.40602213",
"0.40572265",
"0.40545103",
"0.4053639",
"0.4053346",
"0.40516442",
"0.40516442",
"0.40516442",
"0.40503553",
"0.40497953",
"0.404863"
]
| 0.646912 | 2 |
TODO Autogenerated method stub | @Override
public Celular buscarPeloId(String id) throws Exception {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void atualizar(Celular celular) throws Exception {
} | {
"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 |
arr[0][0] = 1 + Math.min(Math.min(arr[1][1], arr[1][0]), arr[0][1]); | public static void main(String[] args) {
String s1 = "dabc"; int l1 = s1.length();
String s2 = "abcd"; int l2 = s2.length();
// System.out.println(findED(s1, s2, l1, l2));
System.out.println(findEDdp(s1, s2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int minCost(int[][] costs) {\n\nif(costs== null || costs.length == 0)\nreturn 0;\n// int n_houses = costs.length ;\nint lastR = costs[0][0];\nint lastB = costs[0][1];\nint lastG = costs[0][2];\nint currR,currB,currG ;\nfor(int i = 1; i< costs.length ; i++ ){\ncurrR = costs[i][0] + Math.min(lastB,lastG);\ncurrB = costs[i][1] + Math.min(lastR,lastG);\ncurrG = costs[i][2] + Math.min(lastR,lastB);\nlastR = currR;\nlastB = currB;\nlastG = currG;\n}\n// return Math.min(Math.min(lastR,lastB),lastG);\nreturn Math.min(Math.min(lastR,lastB),lastG);\n}",
"private static int findMinInArr(int[] arr) {\n\t\tint min = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem < min) {\n\t\t\t\tmin = elem;\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"public static int getMin(int arr[][]) {\n\t\tint minNum;\n\t\t\n\t\tminNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] < minNum) {\n\t\t\t\t\tminNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn minNum;\n\t}",
"public static int findMin(){\n int min = array[0];\n for(int x = 1; x<array.length; x++ ){\n if(array[x]<min){\n min=array[x];\n }\n }\n return min;\n}",
"public int minDifference2(int[] array) {\n\t\tint sum = sum(array);\n\t\tboolean[][] matrix = new boolean[array.length][sum + 1];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j <= sum; j++) {\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tmatrix[i][j] = (j == 0) || (array[i] == j);\n\t\t\t\t} else {\n\t\t\t\t\tmatrix[i][j] = matrix[i - 1][j] || (j - array[i] >= 0 && matrix[i - 1][j - array[i]]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// post processing\n\t\tint offset = 0, index = sum / 2;\n\t\twhile (!matrix[array.length - 1][index + offset] && !matrix[array.length - 1][index - offset]) {\n\t\t\toffset++;\n\t\t}\n\t\treturn Math.min(\n\t\t\t\t(matrix[array.length - 1][index - offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index - offset)),\n\t\t\t\t(matrix[array.length - 1][index + offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index + offset)));\n\t}",
"private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }",
"public static int getMin(int[] inputArray){\n int minValue = inputArray[0];\n for(int i=1; i<inputArray.length;i++){\n if(inputArray[i] < minValue){\n minValue=inputArray[i];\n }\n }\n return minValue;\n }",
"public static int minValue(int[] numArr) {\r\n\t\tint temp = numArr[0] < numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp < numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"public static int minScoreTriangulation(int[] values) {\n return recursion(0, values.length - 1, 1, values);\n }",
"public void minimum(int[] arr){\n int min = arr[0];\n for(int i = 1; i< arr.length-1; i++){ //why i = 1 means because we have already taken the arr[0] as minimum\n if(arr[i] < min){\n min = arr[i];\n }\n } \n System.out.println(\"The minimum Element in the array is : \"+min);\n }",
"public static void plus1(int[]arr)\r\n\t{\r\n\t\tint i=arr.length-1;\r\n\t\twhile(i>=0&&arr[i]==1)\r\n\t\t\tarr[i--]=0;\r\n\t\tif(i>=0)\r\n\t\t\tarr[i]=1;\r\n\t}",
"public int findMinII(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n while (r > 0 && nums[r] == nums[r-1]) r --;\n while (l < n-1 && nums[l] == nums[l+1]) l ++;\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"public static int getMin(int[] array) {\n //TODO: write code here\n int min = array[0];\n for(int a : array) {\n min = a < min ? a : min;\n }\n return min;\n }",
"public int min(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int min = array[0];\n for(int i = 0; i < array.length; i++){\n if (array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public int singles(int [] arr){\n HashMap<Integer, Integer> hm = new HashMap<>();\n long s1 = 0, s2 = 0;\n for(int x = 0; x < arr.length; x++){\n if(!hm.containsKey(arr[x])){\n s1 += arr[x];\n hm.put(arr[x], 1);\n }\n s2 += arr[x];\n }\n return (int)(2* s1 - s2);\n }",
"int minSum(int[] arr){\n\t\tint sum=0;\n\t\tint arrayMax = findMax(arr);\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i] != arrayMax) {\n\t\t\t\tsum += arr[i];\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}",
"public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"public int findMin2(int[] arr) {\n\t\tint left = 0;\n\t\t// We use arr[right] as binary search condition later. right = arr.length would\n\t\t// be out of bound.\n\t\tint right = arr.length - 1;\n\t\tint mid = 0;\n\n\t\t// while (left < right) causes a problem that the last element cannot be\n\t\t// reached when R=len-1 used.\n\t\twhile (left <= right) {\n\t\t\tmid = left + (right - left) / 2;\n\n\t\t\t// There is one element.\n\t\t\t// Since R=M is used, this is needed to avoid infinite loop.\n\t\t\tif (left == right) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (arr[mid] > arr[right]) {\n\t\t\t\t// Search on the right.\n\t\t\t\tleft = mid + 1;\n\t\t\t} else {\n\t\t\t\t// Search on the left.\n\t\t\t\t// R=M because that mid can be the minimum and\n\t\t\t\t// infinite loop that is caused by R=M and while (left <= right) is avoided\n\t\t\t\t// since there is a return when left == right.\n\t\t\t\tright = mid;\n\t\t\t}\n\t\t}\n\n\t\t// Return the last one.\n\t\treturn arr[left];\n\t}",
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"private static void min(int[] a) {\n int min = a[0];\n for(int i=1; i<a.length; i++){\n if(min > a[i]){\n min = a[i];\n }\n }\n System.out.println(\"Min\" + min);\n\n }",
"public int findLHSOrigin(int[] nums) {\n if (nums.length < 2)\n return 0;\n\n Map<Double, Integer> map = new HashMap<>();\n Set<Integer> set = new HashSet<>();\n for (int i = 0; i < nums.length; i++) {\n map.put(nums[i] - 0.5, map.getOrDefault(nums[i] - 0.5, 0) + 1);\n map.put(nums[i] + 0.5, map.getOrDefault(nums[i] + 0.5, 0) + 1);\n set.add(nums[i]);\n }\n\n int ans = 0;\n for (Double d : map.keySet()) {\n// System.out.println(d +\" \"+ map.get(d));\n if (set.contains((int) (d - 0.5)) && set.contains((int) (d + 0.5))) {\n ans = ans < map.get(d) ? map.get(d) : ans;\n }\n }\n return ans;\n }",
"public static int cmpCost(int arr[][]) {\n\n\t\t//storage\n\t\tint f[][] = new int[arr.length][arr[0].length];\n\n\t\t//traverse and (define problem could have been done earlier\n\t\tfor (int i = arr.length - 1; i >= 0; i--) {\n\t\t\tfor (int j = arr[0].length - 1; j >= 0; j--) {\n\t\t\t\t//define smaller problem\n\t\t\t\tif (i == arr.length - 1 && j == arr[0].length - 1) {\n\t\t\t\t\tf[i][j] = arr[i][j];\n\t\t\t\t} else if (i == arr.length - 1) {\n\t\t\t\t\tf[i][j] = f[i][j + 1] + arr[i][j];\n\t\t\t\t}\n\n\t\t\t\telse if (j == arr[0].length - 1) {\n\t\t\t\t\tf[i][j] = f[i + 1][j] + arr[i][j];\n\t\t\t\t} else {\n\t\t\t\t\tf[i][j] = Math.min(f[i + 1][j], f[i][j + 1]) + arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//result\n\t\treturn f[0][0];\n\t}",
"static int minimumSwaps(int[] arr) {\n int arrLen = arr.length;\n int minSwaps = 0;\n boolean visited[] = new boolean[arrLen];\n for ( int i = 0; i < arrLen ; i++){\n if ( arr[i] == i+1){\n visited[i] = true;\n continue;\n }\n else if ( !visited[arr[i] - 1]){\n visited[i] = true;\n int temp = arr[i];\n int hops = 1;\n while ( temp != i+1 ){\n visited[temp - 1] = true;\n temp = arr[temp -1];\n hops++;\n }\n minSwaps += hops - 1;\n }\n }\n return minSwaps;\n }",
"public int findMin(int[] nums) {\n\t\t// corner\n\t\tif (nums.length == 1) {\n\t\t\treturn nums[0];\n\t\t}\n\t\t// Not rotated.\n\t\tif (nums[0] < nums[nums.length - 1]) {\n\t\t\treturn nums[0];\n\t\t}\n\n\t\t// Binary Search.\n\t\tint left = 0;\n\t\tint right = nums.length - 1;\n\t\t// int right = nums.length; // NG! (R = M version)\n\t\twhile (left <= right) {\n\t\t\t// while (left < right) { // NG! (R = M version)\n\t\t\tint mid = left + (right - left) / 2;\n\n\t\t\t// Find the valley.\n\t\t\t// nums[mid + 1] could cause array index out of bound when nums[mid] is the last\n\t\t\t// element.\n\t\t\t// However, for this problem, when nums[mid] is the second to the last, it\n\t\t\t// returns and\n\t\t\t// nums[mid] never reaches to the last element.\n\t\t\t// R = M version is NG because nums[mid] skips the second to the last and hits\n\t\t\t// the last\n\t\t\t// element depending on the case, in which case, nums[mid + 1] causes array\n\t\t\t// index out of bound.\n\t\t\tif (nums[mid] > nums[mid + 1]) {\n\t\t\t\treturn nums[mid + 1];\n\t\t\t}\n\t\t\t// Assert nums[mid] < nums[mid + 1] (no duplicates)\n\n\t\t\t// nums[mid - 1] could cause array index out of bound when the target is the\n\t\t\t// first element or\n\t\t\t// the second element.\n\t\t\t// However, for this problem, the code above returns when mid is equal to 0.\n\t\t\t// To be exact, when you use R = M - 1 version, mid is approaching index 0 as\n\t\t\t// the following:\n\t\t\t// 1. 2 -> 0 -> 1\n\t\t\t// 2. 3 -> 1 -> 0\n\t\t\t// ex) 1. [ 5, 1, 2, 3, 4 ], 2. [ 6, 1, 2, 3, 4, 5]\n\t\t\t// For case 1, the code above returns when mid is equal to 0, and nums[-1] never\n\t\t\t// occurs.\n\t\t\t// For case 2, the code below returns when mid is equal to 1, and nums[-1] never\n\t\t\t// occurs.\n\t\t\t//\n\t\t\t// Be careful!\n\t\t\t// Not rotated array can cause nums[-1] here for both of the two cases above\n\t\t\t// because\n\t\t\t// the code above does not return when mid is equal to 0, which causes index out\n\t\t\t// of bound here.\n\t\t\t// So, eliminate this case in advance.\n\t\t\tif (nums[mid - 1] > nums[mid]) {\n\t\t\t\treturn nums[mid];\n\t\t\t}\n\n\t\t\t// If the mid does not hit the valley, then keep searching.\n\t\t\t// I don't know why nums[mid] > nums[0] is ok in the LeetCode solution yet.\n\t\t\t// (No need to explore any further)\n\t\t\tif (nums[mid] > nums[left]) {\n\t\t\t\t// The min is in the right subarray.\n\t\t\t\tleft = mid + 1;\n\t\t\t} else {\n\t\t\t\t// The min is in the left subarray.\n\t\t\t\tright = mid - 1;\n\t\t\t\t// right = mid; // NG! (R = M version)\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"public int minMoves(int[] nums) { // score 7\n if (nums == null || nums.length == 0 || nums.length == 1) {\n return 0;\n }\n int sum = 0;\n int min = nums[0];\n for (int n : nums) {\n sum += n;\n if (min > n) {\n min = n;\n }\n }\n return sum - nums.length * min;\n }",
"public static int min(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n if( m > a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public int minimumSwaps(int[] arr){\n\t\t/*\n\t\t * for each element check it's ideal position then swap with ideal position, if swap needed swap and increment swap count.\n\t\t */\n\t\tint swapCount = 0;\n\t\tif(arr==null || arr.length <2){\n\t\t\treturn swapCount;\n\t\t}\n\t\tfor(int i=0; i<arr.length; i++){\n\t\t\tint element = arr[i];\n\t\t\tint idealIndex = element-1;\n\t\t\tif(i!=idealIndex) {\n\t\t\t\tint temp = arr[i];\n\t\t\t\tarr[i] = arr[idealIndex];\n\t\t\t\tarr[idealIndex] = temp;\n\t\t\t\tswapCount++;\n\t\t\t}\n\t\t}\n\t\treturn swapCount;\n\t}",
"public static int min(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n \n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int Min(int[] array) {\r\n\t\tint minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++) {\r\n\t\t\tif (array[i] < minValue) {\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minValue;\r\n\t}",
"static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"static void miniMaxSum(int[] arr) {\n int min=arr[0];\n int max=0;\n long maxsum=0,minsum=0;\n for(int i:arr)\n {\n if(i<min)\n {\n min=i;\n }\n if(i>max)\n {\n max=i;\n }\n }\n for(int i:arr)\n {\n if(i==max)\n {\n max=0;\n continue;\n }\n else\n {\n minsum+=i;\n }\n }\n for(int i:arr)\n {\n if(i==min)\n {\n min=0;\n continue;\n }\n else\n {\n maxsum+=i;\n }\n }\n System.out.println(minsum+\" \"+maxsum);\n }",
"private double[] getMin(double[][] res) {\r\n\t\tdouble min[] = new double [3];\r\n\t\t\tmin[0] = res[0][0];\r\n\t\tfor(int i = 0 ; i < res.length ; i ++){\r\n\t\t\tfor(int j = 0 ; j < res.length ; j++)\r\n\t\tif(res[i][j] < min[0] && res[i][j] != -1){\r\n\t\t\tmin[0] = res[i][j];\r\n\t\t\tmin[1] = i;\r\n\t\t\tmin[2] = j;\r\n\t\tSystem.out.println(\"test\" + res[i][j]);\r\n\t\t}\r\n\t\t}\r\n\t\treturn min;\r\n\t}",
"public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public static int minArray(int[] arr) {\n int min_value = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length; i++) {\n if (min_value > arr[i]) {\n min_value = arr[i];\n }\n }\n return min_value;\n }",
"static void miniMaxSum(int[] arr) {\n Arrays.sort(arr);\n long sum = 0;\n for (int i : arr) {\n sum += i;\n }\n System.out.println((sum - arr[4]) + \" \" + (sum - arr[0]));\n }",
"static int minimumSwaps(int[] arr) {\r\n int result = 0;\r\n \r\n // Gets the length of the input array\r\n int size = arr.length;\r\n \r\n // Cycles through the input array\r\n for (int i = 0; i < size; i++) {\r\n // Checks if the element is in the right position\r\n if (arr[i] != i+1) {\r\n result += 1; // The element ISN'T in the right position. A new swap is needed!\r\n \r\n // Cycles through the remaining input array\r\n for (int j = i+1; j < size; j++) {\r\n if (arr[j] == i+1) { // Gets the element that should be in the place of arr[i] and swaps it!\r\n int swap = arr[j];\r\n arr[j] = arr[i];\r\n arr[i] = swap;\r\n break;\r\n }\r\n } \r\n }\r\n }\r\n \r\n return result;\r\n}",
"int findMin(int[] arr){\n\t\tint minimum=1000;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]<minimum) {\n\t\t\t\tminimum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"protected int findMinIndex(int[] arr)\n\t{\n\t\tint minIndex = arr.length;\n\t\tSet<Integer> set = new HashSet<>();\n\n\t\tfor (int i = arr.length - 1; i >= 0; i--) {\n\t\t\tif (set.contains(arr[i])) {\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tset.add(arr[i]);\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\n\t}",
"static int minimumAbsoluteDifferenceSlower(int[] arr) {\n int smallest = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n int current = Math.abs(arr[i] - arr[j]);\n if (i == 0) {\n smallest = current;\n } else if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"public int findMin(int[] num) {\n \t\n \tif (num.length == 1) {\n \t return num[0];\n \t}\n \t\n \tint up = num.length - 1,\n \t low = 0,\n \t mid = (up + low) / 2;\n \twhile (up > low) {\n \t if (mid + 1 < num.length && mid - 1 >= 0 && num[mid] < num[mid - 1] && num[mid] < num[mid + 1]) {\n \t return num[mid];\n \t }\n \t if (num[mid] > num[up]) {\n \t low = mid + 1;\n \t } else {\n \t up = mid - 1;\n \t }\n \t \n \t mid = (up + low) / 2;\n \t}\n \treturn num[mid];\n\t}",
"public static int min(int[] mainArray) {\r\n\t\tint min1 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray[lessThan]<mainArray[min1]) {\r\n\t\t\t\tmin1 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn min1;\r\n\t}",
"static int minimumDistances(int[] a) {\n int l = a.length;\n Map<Integer, List<Integer>> map = new HashMap<>();\n for (int i = 0; i <l ; i++) {\n List<Integer> val = map.get(a[i]);\n if(val == null){\n val = new ArrayList<>();\n }\n val.add(i);\n map.put(a[i], val);\n }\n int min = Integer.MAX_VALUE;\n for (List<Integer> value:\n map.values()) {\n int c = value.size();\n if(c>1){\n for (int i = 0; i < c-1 ; i++) {\n min = Math.min(min, value.get(i+1)- value.get(i));\n }\n }\n }\n if(min == Integer.MAX_VALUE) min = -1;\n return min;\n\n\n }",
"private static int MinCostPath(int arr[][],int i,int j) {\n\t\tint m = arr.length;\n\t\tint n = arr[0].length;\n\t\t\n\t\tif(i==m-1 && j==n-1) {\n\t\t\treturn arr[i][j];\n\t\t}\n\t\tif(i>=m || j>=n) {\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\tint op1 = MinCostPath(arr, i,j+1);\n\tint op2 = MinCostPath(arr,i+1,j+1);\n\tint op3 = MinCostPath(arr,i+1,j);\n\t\n\treturn arr[i][j] + Math.min(op1,Math.min(op2,op3));\n}",
"static int minimumSwaps(int[] arr) {\n int length = arr.length;\n int swaps = 0;\n int ind = 0;\n int temp = 0;\n int count = 0;\n for(int i=0;i<length;i++)\n {\n if(i+1 != arr[i])\n {\n count++;\n ind = index(arr,i+1,i);\n if(ind != -1){\n temp = arr[i];\n arr[i] = arr[ind];\n arr[ind] = temp;\n }\n }\n }\n\n return count;\n }",
"public int mctFromLeafValues(int[] arr) {\n int ans = 0;\n Stack<Integer> stack = new Stack<>();\n stack.push(Integer.MAX_VALUE);\n for (int i : arr) {\n while (i >= stack.peek()) {\n int mid = stack.pop();\n ans += mid * Math.min(i, stack.peek());\n }\n stack.push(i);\n }\n while (stack.size() > 2) {\n ans += stack.pop() * stack.peek();\n }\n return ans;\n }",
"public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }",
"public static int argmin(double[] array) {\n\t\tdouble min = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]<min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"static int minimumSwaps2(int[] arr) {\n Map<Integer, Integer> backward = new HashMap<>();\n Map<Integer, Integer> forward = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n int move = i + 1 - arr[i];\n if (move > 0)\n forward.put(arr[i], move);\n else if (move < 0)\n backward.put(arr[i], move);\n }\n\n //count swap in pairs\n int pairs = 0;\n for (Integer bk : backward.keySet()) {\n for (Integer fk : forward.keySet()) {\n if (backward.get(bk) * (-1) == forward.get(fk)) {\n pairs = pairs + 1;\n continue;\n }\n }\n }\n //count swap others\n int swapCount = forward.size() + backward.size() - (2 * pairs);\n if (swapCount > 0) swapCount = swapCount - 1;\n\n System.out.println(String.format(\n \"forward(%d):%s\\nbackeward(%d):%s\\neach: %d, swap: %d\"\n , forward.size(), forward, backward.size(), backward,\n pairs, swapCount\n ));\n\n return swapCount + pairs;\n }",
"public int minJump(int[] array) {\n if (array == null || array.length <= 1) {\n return 0;\n }\n int[] minJump = new int[array.length];\n minJump[0] = 0;\n for (int i = 1; i < array.length; i++) {\n minJump[i] = -1;\n for (int j = i - 1; j >= 0; j--) {\n if (j + array[j] >= i && minJump[j] != -1) {\n if (minJump[j] + 1 < minJump[i] || minJump[i] == -1) {\n minJump[i] = minJump[j] + 1;\n }\n }\n }\n }\n return minJump[minJump.length - 1];\n }",
"public static int findMinimum(int[] array) {\n\n int min;\n\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n } else {\n min = array[0];\n for (int i= 0; i<array.length; i++) {\n if (min > array[i]) {\n min = array[i];\n }\n }\n return min;\n }\n \n }",
"static void miniMaxSum(int[] arr) {\n long minSum=0,maxSum=0;\n int temp=0;\n for(int k=0; k<arr.length-1; k++) {\n for(int i=0; i <arr.length-k-1;i++) {\n if(arr[i]>arr[i+1] ) {\n temp=arr[i];\n arr[i]=arr[i+1];\n arr[i+1]=temp;\n }\n }\n }\n for(int i=1;i<arr.length;i++){\n minSum+=arr[i-1];\n maxSum+=arr[i];\n }\n System.out.print(minSum+\" \"+maxSum);\n\n }",
"public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return nums[0];\n }\n int l = 0;\n int r = nums.length - 1;\n while (l < r) {\n int m = (l + r) / 2;\n if (m > 0 && nums[m] < nums[m - 1]) {\n return nums[m];\n }\n if (nums[l] <= nums[m] && nums[m] > nums[r]) {\n l = m + 1;\n } else {\n r = m - 1;\n }\n }\n return nums[l];\n }",
"public int minMoves(int[] nums) {\n int min = nums[0], sum = 0;\n for (int num : nums) {\n min = Math.min(min, num);\n }\n for (int num : nums) {\n sum += num - min;\n }\n return sum;\n }",
"public int minJump(int[] array) {\n if (array == null || array.length == 0) {\n return 0;\n }\n int[] minJump = new int[array.length];\n for (int i = array.length - 1; i >= 0; i--) {\n if (i + array[i] >= array.length) {\n minJump[i] = 1;\n } else {\n for (int j = array[i]; j >= 1; j--) {\n if (minJump[i + j] > 0 && (minJump[i + j] + 1 < minJump[i] || minJump[i] == 0)) {\n minJump[i] = minJump[i + j] + 1;\n }\n }\n }\n }\n return minJump[0] == 0 ? -1 : minJump[0];\n }",
"public static int minMoves(int[] nums) {\n if(nums.length==0) return 0;\n int res=0, len=nums.length,min=Integer.MAX_VALUE;\n for(int i:nums) min=Math.min(min,i);\n for(int i:nums) res+=i-min;\n return res;\n }",
"private int findMin(int[] nums) {\n if (nums == null || nums.length == 0) return -1;\n int left = 0;\n int right = nums.length - 1;\n while (left < right) {\n int mid = left + (right - left) / 2;\n if (nums[mid] >= nums[left] && nums[mid] > nums[right]) {\n left = mid + 1;\n } else if (nums[mid] == nums[right]) {\n while (mid < right && nums[mid] == nums[right]) {\n right--;\n }\n } else {\n right = mid;\n }\n }\n return nums[left];\n }",
"public static int minPathSum(int[][] grid) {\n if (grid == null || grid.length == 0 || grid[0].length == 0)\n return 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[0].length; j++) {\n if (i == 0 && j == 0) {\n } else if (i == 0 && j > 0)\n grid[i][j] += grid[i][j-1];\n else if (j == 0 && i > 0)\n grid[i][j] += grid[i-1][j];\n else \n grid[i][j] += Math.min(grid[i][j-1], grid[i-1][j]);\n }\n }\n return grid[grid.length-1][grid[0].length-1];\n }",
"public static int minimumAbsoluteDifference(int[] arr) {\n Arrays.sort(arr);\n int smallest = Math.abs(arr[0] - arr[arr.length - 1]);\n\n for (int i = 0; i < arr.length; i++) {\n if (i + 1 < arr.length) {\n int current = Math.abs(arr[i + 1] - arr[i]);\n if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"static int findMin0(int[] nums) {\r\n \r\n // **** sanity check ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[nums.length - 1] > nums[0])\r\n return nums[0];\r\n\r\n // **** loop looking for the next smallest value ****\r\n for (int i = 0; i < nums.length - 1; i++) {\r\n if (nums[i] > nums[i + 1])\r\n return nums[i + 1];\r\n }\r\n\r\n // **** min not found ****\r\n return -1;\r\n }",
"static void minimumSwaps(int[] arr) {\n HashMap<Integer , Integer> hm = new HashMap<Integer , Integer>();\n for(int i = 0 ; i < arr.length ; i++ ){\n hm.put(arr[i], 2);\n }\n Iterator iterator = hm.keySet().iterator();\n while (iterator.hasNext()) {\n Integer key = (Integer) iterator.next();\n Integer value = hm.get(key);\n System.out.println(key + \" \" + value);\n }\n }",
"public int minSwaps(int[] data) {\n int n = 0;\n for (int i : data) {\n \tif (i == 1) n++;\n }\n if (n == 1) return 0;\n int zeroCount = 0;\n for (int i = 0; i < n; i++) {\n \tif (data[i] == 0) zeroCount++;\n }\n int result = zeroCount;\n for (int i = n; i < data.length; i++) {\n \tif (data[i] == 0) zeroCount++;\n \tif (data[i - n] == 0) zeroCount--;\n \tresult = Math.min(result, zeroCount);\n }\n return result;\n }",
"long smallestpositive(long[] arr, int n){\n\nArrays.sort(arr);\n\nlong res =1;\n\nfor (int i = 0; i < n && arr[i] <= res; i++)\nres = res + arr[i];\n\nreturn res;\n}",
"public static int minAdjDiff(int arr[], int n) {\n\n // Your code here\n int min = Math.abs(arr[0] - arr[1]);\n for(int i =1;i<n-1;i++){\n min = Math.min(min, Math.abs(arr[i]-arr[i+1]));\n }\n min = Math.min(min, Math.abs(arr[n-1]-arr[0]));\n return min;\n }",
"private static double min(Double[] darray){\n\t\tdouble min = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmin = Math.min(min,dd);\n\t\t}\n\t\treturn min;\n\t}",
"public static int findMin(int mat3d[][][]) {\n //creates int to check for minimum, valued at 100 because it's gaurenteed to be larger than any int in array\n int checker=100;\n //for loop, runs 3 times, get the pattern?\n for(int s=0; s<3; s++) {\n //holy shit, it' sthe same pattern as ^^\n for(int j=0; j<(3+2*s); j++) {\n //Have you caught on?\n for(int c=0; c<(s+j+1); c++) {\n //if statement which replaces checkder value, as the slot in array, if it's lower\n if(checker> mat3d[s][j][c]){\n checker=mat3d[s][j][c];\n }\n }\n }\n }\n //returns this int value\n return checker;\n \n \n }",
"public int findMinOptimization(int[] nums) {\n // write your code here\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n int target = nums[end];\n while (start + 1 < end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] <= target) {\n end = mid;\n }\n else {\n start = mid;\n }\n }\n if (nums[start] <= nums[end]) return nums[start];\n return nums[end];\n }",
"private void regularMinDemo() {\n int min = numbers[0];\n for(int i = 1; i < numbers.length; i++) {\n if (numbers[i] < min) min = numbers[i];\n }\n System.out.println(min);\n }",
"public static double min(double[] array) {\n\t\tif (array.length==0) return Double.POSITIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.min(re, array[i]);\n\t\treturn re;\n\t}",
"public int dp_os(int[] arr) {\n\n\t\tint[][] dp = new int[arr.length][arr.length];\n\t\t\n\t\tfor (int gap=0; gap<arr.length; gap++) {\n\t\t\n\t\t\tfor (int i=0,j=gap; j<arr.length; i++, j++) {\n\t\t\t\n\t\t\t\tint x = (i+2 <= j) ? dp[i+2][j] : 0;\n\t\t\t\tint y = (i+1 <= j-1) ? dp[i+1][j-1] : 0;\n\t\t\t\tint z = (i <= j-2) ? dp[i][j-2] : 0;\n\n\t\t\t\tdp[i][j] = Math.max(arr[i] + Math.min(x,y), arr[j] + Math.min(y,z));\n\t\t\t}\n\t\t}\n\n\t\treturn dp[0][arr.length-1];\n\t}",
"static void miniMaxSum(int[] arr) {\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong min = Long.MAX_VALUE;\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tlong compareMax = sum(i, arr);\n\t\t\tlong compareMin = sum(i, arr);\n\n\t\t\tif (max < compareMax)\n\t\t\t\tmax = compareMax;\n\t\t\tif (min > compareMin)\n\t\t\t\tmin = compareMin;\n\n\t\t}\n\t\tSystem.out.print(min);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(max);\n\t}",
"public abstract int findRowMin(boolean z, int i, int[] iArr);",
"public int findLHS(int[] nums) {\n\t Map<Integer, Integer> count = new HashMap<>();\n\t for (int n : nums) {\n\t count.put(n, count.getOrDefault(n, 0)+1);\n\t }\n\t int res = 0;\n\t \n\t for (int n : count.keySet()) {\n\t int min = n-1;\n\t if (count.containsKey(min)) {\n\t res = Math.max(res, count.get(n) + count.get(min));\n\t }\n\t int max = n+1;\n\t if (count.containsKey(max)) {\n\t res = Math.max(res, count.get(n) + count.get(max));\n\t }\n\t }\n\t \n\t return res;\n\t }",
"private void reduce(){\n int min;\n //Subtract min value from rows\n for (int i = 0; i < rows; i++) {\n min = source[i][0];\n for (int j = 1; j < cols; j++)\n if(source[i][j] < min) min = source[i][j];\n\n for (int j = 0; j < cols; j++)\n source[i][j] -= min;\n }\n\n //Subtract min value from cols\n for (int j = 0; j < cols; j++) {\n min = source[0][j];\n for (int i = 1; i < rows; i++)\n if(source[i][j] < min) min = source[i][j];\n\n for (int i = 0; i < rows; i++)\n source[i][j] -= min;\n\n }\n }",
"public static int findPivot(int[] arr) {\n // write your code here\n /*\n - if arr[rhs]<arr[mid] then min-val will lie in rhs\n else if arr[rhs]>arr[mid] then min-val will lie in lhs\n else if(i==j) means we have found the min-val, so return its value.\n */\n int i=0, j = arr.length-1, mid = (i+j)/2;\n while(i<=j) {\n mid = (i+j)/2;\n if(arr[j]<arr[mid])\n i = mid+1;\n else if(arr[j]>arr[mid])\n j = mid;\n else if(i==j)\n return arr[mid];\n }\n return -1;\n }",
"public static int min(int[] theArray) {\n\n //sets a starting value is used if use the alternative code.\n int smallest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n Collections.min(values);\n\n //get the smallest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the smallest values\n smallest = values.stream().min(Integer::compare).get();\n\n ////Alternative code does the same thing.\n// for (int number : theArray) {\n//\n// if (smallest > number) {\n// smallest = number;\n// }\n// }\n\n return smallest;\n\n }",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int twoSumSmaller(int[] array, int target) {\n if (array == null || array.length == 0) {\n return 0;\n }\n Arrays.sort(array);\n int left = 0;\n int right = array.length - 1;\n int count = 0;\n\n while (left < right) {\n int sum = array[left] + array[right];\n if (sum < target) {\n // all the pair that right in the range (left, right]\n // will be smaller than target\n count += right - left;\n left++;\n } else {\n right--;\n }\n }\n return count;\n }",
"public int[] smallestRange(int[][] arrays) {\n \n int[] pointer = new int[arrays.length];\n int max = Integer.MIN_VALUE;\n int minY = Integer.MAX_VALUE;\n int minX = 0;\n boolean flag = true;\n \n // PriorityQueue<Integer> queue = new PriorityQueue<>((i,j)-> arrays[i][pointer[i]] - arrays[j][pointer[j]]);\n \n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>(){\n public int compare(Integer i, Integer j){\n return arrays[i][pointer[i]] - arrays[j][pointer[j]];\n }\n });\n \n for(int i = 0; i < arrays.length; i++){\n queue.offer(i);\n max = Math.max(max, arrays[i][0]);\n }\n \n for(int i = 0; i < arrays.length && flag; i ++){\n for(int j = 0; j < arrays[i].length && flag; j++){\n int minTemp = queue.poll();\n if(minY - minX > max - arrays[minTemp][pointer[minTemp]]){\n minX = arrays[minTemp][pointer[minTemp]];\n minY = max;\n }\n pointer[minTemp]++;\n if(pointer[minTemp] == arrays[minTemp].length){\n flag = false;\n break;\n }\n queue.offer(minTemp);\n max = Math.max(max, arrays[minTemp][pointer[minTemp]]);\n }\n }\n return new int[]{minX, minY};\n }",
"static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}",
"static int hourglassSum(int[][] arr) {\n int answer = 0 ;\n\n// validatable vertexes\n// i = 1,2,3,4\n// j = 1,2,3,4\n\n int[] adjacentArrX = {-1, -1,-1,0, 1,1,1};\n int[] adjacentArrY = {-1, 0, 1, 0, -1, 0, 1};\n\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 5; j++) {\n int nowValue = Integer.MIN_VALUE;\n for (int r = 0; r < adjacentArrX.length; r++) {\n nowValue += arr[i + adjacentArrX[r]][j + adjacentArrY[r]];\n }\n answer = Math.max(answer, nowValue);\n }\n }\n\n\n return answer;\n\n }",
"public int findMinR2(int[] nums) {\n\t\tif (nums.length == 1) {\n\t\t\treturn nums[0];\n\t\t}\n\n\t\tif (nums[0] < nums[nums.length - 1]) {\n\t\t\treturn nums[0];\n\t\t}\n\n\t\t// Binary Search. R=M-1 ver.\n\t\tint left = 0;\n\t\tint right = nums.length - 1;\n\t\twhile (left <= right) {\n\t\t\tint mid = left + (right - left) / 2;\n\n\t\t\t// Check if the nums[mid] is the minimum.\n\t\t\t// If the elem to the left of the mid elem is bigger than mid elem,\n\t\t\t// then mid elem is the minimum.\n\t\t\t// Be careful if the mid is 0.\n\t\t\t// The reason we need the second condition is because with the R=M-1 version of\n\t\t\t// binary search, the mid can move like index 2 => 0 => 1. In that case,\n\t\t\t// we check index 0 before index 1. If the elem at index 1 is the minimum,\n\t\t\t// then we need,\n\t\t\t// 'nums[mid] < nums[mid + 1]'\n\t\t\t// to continue when the mid is equal to 0.\n\t\t\tif ((mid != 0 && nums[mid - 1] > nums[mid]) || //\n\t\t\t\t\t(mid == 0 && nums[mid] < nums[mid + 1])) {\n\t\t\t\treturn nums[mid];\n\t\t\t}\n\n\t\t\tif (nums[mid] < nums[right]) {\n\t\t\t\tright = mid - 1;\n\t\t\t} else {\n\t\t\t\tleft = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"public static int min(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int min = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] < min) {\n min = a[i];\n }\n }\n }\n return min;\n }",
"public int findLHS(int[] nums) {\n Arrays.sort(nums);\n int prevCount = 0, ans = 0, count;\n for (int i = 0; i < nums.length; i++) {\n count = 1;\n // if ith is equal to (i-1)th, look back\n if (i > 0 && nums[i] - nums[i - 1] == 1) {\n while (i < nums.length - 1 && nums[i] == nums[i + 1]) {\n count++; // only count current element, every element will have its own check\n i++;\n }\n ans = Math.max(ans, count + prevCount);\n prevCount = count;\n } else {\n // look forward\n while (i < nums.length - 1 && nums[i] == nums[i + 1]) {\n count++; // only count current element, every element will have its own check\n i++;\n }\n prevCount = count;\n }\n }\n return ans;\n }",
"public int solution(int[] A) {\n\n List<Integer> seen = new ArrayList<Integer>();\n\n int minvalue = Integer.MAX_VALUE;\n int currentMin = 0;\n\n for (int i = 0; i < A.length; i++) {\n seen.add(A[i]);\n if (A[i] < minvalue)\n minvalue = A[i];\n if (minvalue < 0)\n minvalue = 1;\n }\n\n currentMin = setMinNotInList(seen, minvalue);\n\n return currentMin;\n\n }",
"public static int goldMine(int arr[][]) {\n\t\tint f[][] = new int[arr.length][arr[0].length];\n\n\t\tfor (int row = 0; row <= arr.length - 1; row++) {\n\t\t\tf[row][arr[0].length - 1] = arr[row][arr[0].length - 1];\n\t\t}\n\n\t\tfor (int col = arr[0].length - 2; col >= 0; col--) {\n\t\t\tfor (int row = 0; row <= arr.length - 1; row++) {\n\t\t\t\tif (row == 0) {\n\t\t\t\t\tint tempcost = Math.max(f[row][col + 1], f[row + 1][col + 1]);\n\t\t\t\t\tf[row][col] = arr[row][col] + tempcost;\n\t\t\t\t} else if (row == arr.length - 1) {\n\t\t\t\t\tint tempcost = Math.max(f[row][col + 1], f[row - 1][col + 1]);\n\t\t\t\t\tf[row][col] = arr[row][col] + tempcost;\n\t\t\t\t} else {\n\t\t\t\t\tint tempcost = Math.max(f[row][col + 1], f[row - 1][col + 1]);\n\t\t\t\t\ttempcost = Math.max(tempcost, f[row + 1][col + 1]);\n\t\t\t\t\tf[row][col] = arr[row][col] + tempcost;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; i <= arr.length - 1; i++) {\n\t\t\tif (f[i][0] > max) {\n\t\t\t\tmax = f[i][0];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"int absoluteValuesSumMinimization(int[] a) {\n return a[(a.length-1)/2];\n }",
"public int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }",
"public static int findMin(int[] A) {\n\t\tint ans = 0;\n\t\tfor(int i=1; i<A.length; i++) {\n\t\t\tif(ans > A[i]) {\n\t\t\t\tans = A[i];\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}",
"static int minJumps(int[] arr){\n int n = arr.length;\n int[] dp = new int[n];\n for(int i = 0; i < n; i++) dp[i] = Integer.MAX_VALUE;\n dp[0] = 0;\n for(int i = 1; i < n; i++){\n //checking from 0 to index i that if there is a shorter path for \n //current position to reach from any of the previous indexes\n //also previous index should not be MAX_VALUE as this will show that\n //we were not able to reach this particular index\n for(int j = 0; j < i; j++){\n if(dp[j] != Integer.MAX_VALUE && arr[j] + j >= i){\n if(dp[j] + 1 < dp[i]){\n dp[i] = dp[j] + 1;\n }\n }\n }\n }\n \n if(dp[n - 1] != Integer.MAX_VALUE){\n return dp[n - 1];\n }\n \n return -1;\n }",
"public static int min2(double[] mainArray2) {\r\n\t\tint min2 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray2.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray2[lessThan]<mainArray2[min2]) {\r\n\t\t\t\tmin2 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (int) min2;\r\n\t}",
"static int findMin(int[] nums) {\r\n \r\n // **** sanity check(s) ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** initialization ****\r\n int left = 0;\r\n int right = nums.length - 1;\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[right] > nums[left])\r\n return nums[left];\r\n\r\n // **** binary search approach ****\r\n while (left < right) {\r\n\r\n // **** compute mid point ****\r\n int mid = left + (right - left) / 2;\r\n\r\n // **** check if we found min ****\r\n if (nums[mid] > nums[mid + 1])\r\n return nums[mid + 1];\r\n\r\n if (nums[mid - 1] > nums[mid])\r\n return nums[mid];\r\n\r\n // **** decide which way to go ****\r\n if (nums[mid] > nums[0])\r\n left = mid + 1; // go right\r\n else\r\n right = mid - 1; // go left\r\n }\r\n\r\n // **** min not found (needed to keep the compiler happy) ****\r\n return 69696969;\r\n }",
"public static float min(float [] array)\r\n\t{\r\n\t\tfloat minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValue)\r\n\t\t\t{\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValue;\r\n\t}",
"static int maxMin(int k, int[] arr) {\n Arrays.sort(arr);\n return IntStream.range(0, arr.length - k + 1).map(i -> arr[i + k - 1] - arr[i]).min().getAsInt();\n }",
"public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n while (start + 1 < end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] < nums[start]) {\n end = mid;\n }\n else if (nums[mid] < nums[end]) {\n end = mid;\n }\n else {\n start = mid;\n }\n }\n if (nums[start] < nums[end]) return nums[start];\n return nums[end];\n }",
"public int minMoves2(int[] nums) {\n int median = quickSelect(nums, nums.length/2 + 1, 0, nums.length-1);\n int minMoves = 0;\n for(int i : nums){\n minMoves += Math.abs(i-median);\n }\n return minMoves;\n }",
"public static int findMinimum(int[] array) {\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n }\n int left = 0;\n int right = array.length -1;\n int element = findPivot(array, left, right);\n return element;\n }",
"public int [] smallestRange(int [][] nums){\n\t\tint minx = 0, miny = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\t\n\t\tint [] next = new int [nums.length];\n\t\tboolean flag = true;\n\t\t\n\t\tPriorityQueue<Integer> minQ = new PriorityQueue<Integer>((i, j)->nums[i][next[i]]-nums[j][next[j]]);\n\t\tfor(int i = 0 ; i < nums.length; i ++){\n\t\t\tminQ.offer(i);\n\t\t\tmax = Math.max(max, nums[i][0]);\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < nums.length && flag; i++){\n\t\t\tfor(int j = 0 ; j < nums[i].length&& flag; j++){\n\t\t\t\tint minI = minQ.poll();\n\t\t\t\tif(miny-minx > max-nums[minI][next[minI]]){\n\t\t\t\t\tminx = nums[minI][next[minI]];\n\t\t\t\t\tminy = max;\n\t\t\t\t}\n\t\t\t\tnext[minI]++;\n\t\t\t\tif(next[minI] == nums[minI].length){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tminQ.offer(minI);\n\t\t\t\tmax = Math.max(max, nums[minI][next[minI]]);\n\t\t\t}\n\t\t}\n\t\treturn new int [] {minx, miny};\n\t}",
"static int minSwap (int arr[], int n, int k) {\n int c=0;\n for(int i=0;i<n;i++)\n {\n if(arr[i]<=k)\n ++c;\n }\n int c1=0;\n int start=0,end=c;\n for(int j=0;j<end;j++)\n {\n if(arr[j]>k)\n ++c1;\n }\n int minans=c1;\n while(end<n)\n {\n if(arr[start]>k)\n --c1;\n if(arr[end]>k){\n ++c1;\n }\n minans=Math.min(minans,c1);\n start++;\n end++;\n }\n return minans;\n //Complete the function\n }",
"public static int removeDuplicates(int[] arr) {\n\t\tif (arr == null || arr.length == 0)\n\t\t\treturn 0;\n\n\t\tint index = 0;\n\t\twhile (index < arr.length - 1) {\n\t\t\tif (arr[index] == arr[index + 1]) {\n\t\t\t\tarr[index] = Integer.MIN_VALUE; // replace the duplicate value with MIN_VALUE\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn moveInvalidElementsToEnd(arr);\n\t}",
"public int majorityElement1(int[] nums) {\n final Map<Integer, Integer> count = new HashMap<>();\n for (int num : nums) {\n count.merge(num, 1, Integer::sum);\n if (count.get(num) > nums.length / 2) {\n return num;\n }\n }\n return -1;\n }",
"public int stepOne(int step)\n\t{ \n\t\tint i,j; \n\t\tint min;\n\t\tfor(i=0; i<n; i++) \n\t\t{ \n\t\t\tmin=cost[i][0];\n\t\t\tfor(j=0; j<n; j++)\n\t\t\t {\n\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t{\n\t\t\t\t\tmin = cost[i][j];\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\tfor (j=0; j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j]- min;\n\t\t\t}\t\t\t\n\t\t}\n\t\tstep=2;\n\t\treturn step;\n\t}"
]
| [
"0.6666522",
"0.66607183",
"0.66084164",
"0.65892357",
"0.65156996",
"0.65065503",
"0.6458854",
"0.6447218",
"0.6418727",
"0.64149797",
"0.6393434",
"0.63910973",
"0.63488513",
"0.63428897",
"0.6320221",
"0.63191634",
"0.6314529",
"0.62999636",
"0.62963593",
"0.62861145",
"0.6269294",
"0.62641495",
"0.62260354",
"0.6225853",
"0.62220174",
"0.6202167",
"0.6196155",
"0.61875266",
"0.618543",
"0.61816233",
"0.6172632",
"0.6170387",
"0.61526144",
"0.615114",
"0.6144602",
"0.614443",
"0.6134461",
"0.61245877",
"0.6107146",
"0.6097428",
"0.60968566",
"0.6095654",
"0.6093836",
"0.60895526",
"0.60887355",
"0.6081717",
"0.6076189",
"0.6075653",
"0.6052675",
"0.6050651",
"0.60477376",
"0.6046461",
"0.6039937",
"0.60360295",
"0.6023778",
"0.6017249",
"0.60006666",
"0.5998018",
"0.5992208",
"0.59909654",
"0.5977614",
"0.5975192",
"0.59745955",
"0.59737635",
"0.5969242",
"0.59652233",
"0.5945703",
"0.59430885",
"0.59362733",
"0.59080356",
"0.5896956",
"0.5894433",
"0.5882927",
"0.5879518",
"0.5877273",
"0.58742285",
"0.587223",
"0.5865854",
"0.58475417",
"0.5820835",
"0.58144253",
"0.5800289",
"0.57879734",
"0.578387",
"0.5782285",
"0.577604",
"0.57720506",
"0.57633007",
"0.57578456",
"0.57519686",
"0.57514256",
"0.5751008",
"0.57504857",
"0.5747206",
"0.5745284",
"0.5728874",
"0.57180154",
"0.57088053",
"0.57029927",
"0.57009727",
"0.56994325"
]
| 0.0 | -1 |
The coupled model has been made able to create the simulation architecture description. | protected void initialise() throws Exception
{
Architecture localArchitecture = this.createLocalArchitecture(null) ;
// Create the appropriate DEVS simulation plug-in.
this.asp = new OvenSimulatorPlugin() ;
// Set the URI of the plug-in, using the URI of its associated
// simulation model.
this.asp.setPluginURI(localArchitecture.getRootModelURI()) ;
// Set the simulation architecture.
this.asp.setSimulationArchitecture(localArchitecture) ;
// Install the plug-in on the component, starting its own life-cycle.
this.installPlugin(this.asp) ;
// Toggle logging on to get a log on the screen.
this.toggleLogging() ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface\t\t\tComponentModelArchitectureI\nextends\t\tArchitectureI\n{\n\t/**\n\t * get the URI of the described architecture.\n\t * \n\t * <p><strong>Contract</strong></p>\n\t * \n\t * <pre>\n\t * pre\ttrue\t\t\t// no precondition.\n\t * post\tret != null\n\t * </pre>\n\t *\n\t * @return\tthe URI of the described architecture.\n\t */\n\tpublic String\t\t\tgetArchitectureURI() ;\n\n\t/**\n\t * return the component model descriptor associated to the given\n\t * model URI.\n\t * \n\t * <p><strong>Contract</strong></p>\n\t * \n\t * <pre>\n\t * pre\ttrue\t\t\t// no precondition.\n\t * post\ttrue\t\t\t// no postcondition.\n\t * </pre>\n\t *\n\t * @param uri\tURI of a model in the architecture.\n\t * @return\t\tthe component model descriptor of the given model.\n\t */\n\tpublic ComponentModelDescriptorI\tgetModelDescriptor(String uri) ;\n\n\t/**\n\t * return the URI of the reflection inbound port of the component holding\n\t * the corresponding model.\n\t * \n\t * <p><strong>Contract</strong></p>\n\t * \n\t * <pre>\n\t * pre\t{@code modelURI != null && this.isModel(modelURI)}\n\t * post\ttrue\t\t\t// no postcondition.\n\t * </pre>\n\t *\n\t * @param modelURI\tthe URI of a model in this simulation architecture.\n\t * @return\t\t\tthe URI of the reflection inbound port of the component holding the corresponding model.\n\t */\n\tpublic String\t\tgetReflectionInboundPortURI(String modelURI) ;\n\n\t/**\n\t * connect the component holding the root model of this architecture with\n\t * the componnent <code>creator</code> (usually a supervisor component)\n\t * through the returned simulation plug-in management outbound port.\n\t * \n\t * <p><strong>Contract</strong></p>\n\t * \n\t * <pre>\n\t * pre\tcreator != null\n\t * post\ttrue\t\t\t// no postcondition.\n\t * </pre>\n\t *\n\t * @param creator\tcomponent that will hold the returned simulation plug-in management outbound port.\n\t * @return\t\t\tthe simulation plug-in management outbound port.\n\t */\n\tpublic SimulatorPluginManagementOutboundPort\tconnectRootModelComponent(\n\t\tAbstractComponent creator\n\t\t) ;\n\n\t/**\n\t * compose the simulation architecture subtree having the model with URI\n\t * <code>modelURI</code> at its root by recursively composing the submodels\n\t * and creating the required coupled model on the component\n\t * <code>creator</code> that must hold it in the assembly, which has\n\t * created the required plug-in <code>plugin</code>.\n\t * \n\t * <p><strong>Contract</strong></p>\n\t * \n\t * <pre>\n\t * pre\tmodelURI != null\n\t * pre\tcreator != null\n\t * pre\t{@code plugin != null && plugin.getPluginURI().equals(modelURI)}\n\t * post\ttrue\t\t\t// no postcondition.\n\t * </pre>\n\t *\n\t * @param modelURI\t\tURI of the coupled model to be composed.\n\t * @param creator\t\tcomponent that executes the method and that holds the model.\n\t * @param pnipURI\t\tparent notification inbound port URI of the creator component.\n\t * @param plugin\t\tcoordination plug-in of the <code>creator</code>.\n\t * @return\t\t\t\tthe reference to the simulation engine executing the model.\n\t * @throws Exception\t<i>todo</i>.\n\t */\n\tpublic ModelDescriptionI\tcompose(\n\t\tString modelURI,\n\t\tAbstractComponent creator,\n\t\tString pnipURI,\n\t\tAbstractSimulatorPlugin plugin\n\t\t) throws Exception ;\n}",
"public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}",
"public interface ProcessModel {\n\t\n\t\n\t\n\t/** \n\t * Returns the initial covariance matrix.\n\t * @return the initial covariance matrix.\n\t */\n\tpublic Matrix P0 ();\n\n\t/**\n\t * Returns the process noise matrix.\n\t * @param t time\n\t * @param dt dt = current time - previous time.\n\t * @param x current state vector\n\t * @return the process noise matrix.\n\t */\n\tpublic Matrix Q (double t, double dt, EstSTM x);\n\n\n\t/** \n\t * Returns the initial reference state.\n\t * @return the initial reference state.\n\t */\n\tpublic VectorN xref0 ();\n\t\n\t/**\n\t * Returns the number of states.\n\t * @return the number of states.\n\t */\t\n\tpublic int numberOfStates();\n\t\n\t/** \n\t * Propagate the state and state transition matrix to the next measurement time.\n\t * @param t0 previous time\n\t * @param xin array containing state and state transition matrix at previous time.\n\t * @param tf next time\n\t */\t\n\tpublic double[] propagate( double t0, double[] xin, double tf);\n\t\n\t/**\n\t * Print out the state and covariance data\n\t * @param t time\n\t * @param state state vector\n\t * @param covariance covariance matrix\n\t */\n\tpublic void print(double t, VectorN state, Matrix covariance);\n\t\n\t/**\n\t * Print out the residuals\n\t * @param t time\n\t * @param resid1 residual before the measurement update\n\t * @param resid2 residual after the measurement update\n\t */\n\tpublic void printResiduals(double t, double resid1, double resid2);\n\t\n\t/**\n\t * Close all open LinePrinters\n\t */\n\tpublic void closeLinePrinter();\n\n}",
"public String description() {\r\n\t\treturn \"This is the Vancarrier_1st_P_Model description,\" + \"which means it is the first VanCarrier model in a \"\r\n\t\t\t\t+ \"process oriented version.\" + \" \" + \"This model is a service station model located at a \"\r\n\t\t\t\t+ \"container harbour. Conatinertrucks will arrive and \"\r\n\t\t\t\t+ \"require the loading of a container. A Vancarrier (VC) is \"\r\n\t\t\t\t+ \"on duty and will head off to find the required container \"\r\n\t\t\t\t+ \"in the storage. He will then deliver the container to the \"\r\n\t\t\t\t+ \"truck. The truck then leaves the area.\" + \"In case the VC is busy, the truck waits \"\r\n\t\t\t\t+ \"for his turn on the parking-lot.\" + \"If the VC is idle, it waits on his own parking spot for the \"\r\n\t\t\t\t+ \"truck to come.\";\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\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 interface SimulatorIfc {\n\t/**\n\t * The reset function is call when a new simulation is made. All parameters should be \n\t * resetted to their simulation value. (TTL, QueueSize, Steps, MemorySize, Capture Frequency...)\n\t **/\n\tpublic abstract void reset();\n\t/**\n\t * Create sensors create sensors of the network. \n\t * @see snifc.sensor.SensorIfc\n\t * @throws Exception If a sensor cannot be create\n\t **/\n\tpublic abstract void createSensors() throws Exception;\n\t/**\n\t * Create links in the network\n\t * @see snifc.LinkIfc\n\t * @throws Exception if a link is not valid\n\t **/\n\tpublic abstract void linkSensors() throws Exception;\n\t/**\n\t * Runs the simulation. This is the main execution loop. \n\t * @throws Exception\n\t **/\n\tpublic abstract void runSensors() throws Exception;\n\t/**\n\t * At the end of a simultation, results are presented when that method is called\n\t */\n\tpublic abstract void showStat();\n}",
"@Override\n protected void postConnect() {\n super.postConnect();\n //creates arrays list for buildings, roads and refuges of the world model\n \n buildingIDs = new ArrayList<EntityID>();\n roadIDs = new ArrayList<EntityID>();\n refugeIDs = new ArrayList<EntityID>();\n \n \n //assign values to buildings, roads and refuges according to model\n for (StandardEntity next : model) {\n if (next instanceof Building) {\n buildingIDs.add(next.getID());\n }\n if (next instanceof Road) {\n roadIDs.add(next.getID());\n }\n if (next instanceof Refuge) {\n refugeIDs.add(next.getID());\n }\n \n }\n \n /**\n * sets communication via radio\n */\n boolean speakComm = config.getValue(Constants.COMMUNICATION_MODEL_KEY).equals(ChannelCommunicationModel.class.getName());\n\n int numChannels = this.config.getIntValue(\"comms.channels.count\");\n \n if((speakComm) && (numChannels > 1)){\n \tthis.channelComm = true;\n }else{\n \tthis.channelComm = false;\n }\n \n /*\n * Instantiate a new SampleSearch\n * Sample Search creates a graph for the world model\n * and implements a bread first search for use as well.\n */\n search = new SampleSearch(model);\n\n neighbours = search.getGraph();\n useSpeak = config.getValue(Constants.COMMUNICATION_MODEL_KEY).equals(SPEAK_COMMUNICATION_MODEL);\n Logger.debug(\"Modelo de Comunicação: \" + config.getValue(Constants.COMMUNICATION_MODEL_KEY));\n Logger.debug(useSpeak ? \"Usando modelo SPEAK\" : \"Usando modelo SAY\");\n }",
"public void designBasement() {\n\t\t\r\n\t}",
"public interface MaternalTransfer extends org.eclipse.mdht.uml.cda.Observation {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferTemplateId'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \\'2.16.840.1.113883.10.20.26.35\\')'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferTemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferClassCode'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.classCode=vocab::ActClassObservation::OBS'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferClassCode(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferMoodCode'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.moodCode=vocab::x_ActMoodDocumentObservation::EVN'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferMoodCode(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferCodeP'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferCodeP(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferCode'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CD) and \\nlet value : datatypes::CD = self.code.oclAsType(datatypes::CD) in \\nvalue.code = \\'73763-5\\' and value.codeSystem = \\'2.16.840.1.113883.6.1\\')'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferCode(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferValue'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.value->isEmpty() or self.value->exists(element | element.isNullFlavorUndefined())) implies (self.value->size() = 1 and self.value->forAll(element | element.oclIsTypeOf(datatypes::BL)))'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferValue(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/2.0.0/UML originalName='Maternal TransferParticipant'\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.participant->one(participant : cda::Participant2 | not participant.oclIsUndefined() and participant.oclIsKindOf(cda::Participant2))'\"\n\t * @generated\n\t */\n\tboolean validateMaternalTransferParticipant(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic MaternalTransfer init();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic MaternalTransfer init(\n\t\t\tIterable<? extends org.eclipse.mdht.emf.runtime.util.Initializer<? extends EObject>> initializers);\n}",
"public void setup(){\r\n\t\t\r\n\r\n\t\tsuper.setup();\r\n\t\t\r\n\t\tparams = new String[] {\"numLocations\",\"numFirms\",\"timeHorizon\",\"enteringCosts\",\r\n\t\t\t\t \"reservationPrice\", \"productDifferentiation\",\r\n\t\t\t\t \"adjustEnteringCosts\",\r\n\t\t\t\t \"sdNoiseImitationKnowledge\",\r\n\t\t\t\t \"sdNoiseImitationConcept\",\r\n\t\t\t\t \"sigma\",\"discontFactor\",\"initialInnoEff\",\"fractionEffectivityImitators\",\r\n\t\t\t\t \"initialImiEff\",\"exitingCosts\",\"fractionEffectivityInnovators\",\r\n\t\t\t\t \"locationCosts\",\"isolatedLocation\", \"maxQualityConceptProgress\",\"heterogeneityMode\",\"randomAllocation\", \"numMontecarloRuns\",\r\n\t\t\t\t \"maxQualityConceptProgress\",\"rateLocationDecision\", \"marketEntryCosts\",\r\n\t\t\t\t \"marketEntryHazardRate\", \"parTimeToMarket\",\"ModelModeTimeToMarket\",\"scrapValueParameterInno\",\"scrapValueParameterImi\",\"strategyParameter\",\"targetNumFirms\"};\r\n\r\n\t\r\n\r\n\t\t\r\n\t\tif(graphOutput!=null)\r\n\t\t\tgraphOutput.dispose();\r\n\t\t\r\n\t\tif(graphPrice!=null)\r\n\t\t\tgraphPrice.dispose();\r\n\t\t\r\n\t\tif(graphQuality!=null)\r\n\t\t\tgraphQuality.dispose();\r\n\t\tif(graphNumFirms!=null)\r\n\t\t\tgraphNumFirms.dispose();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(graphFirmLocations!=null)\r\n\t\t\tgraphFirmLocations.dispose();\r\n\t\t\r\n\t\tif(graphEnteringCosts!=null)\r\n\t\t\tgraphEnteringCosts.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphAverageProbability!=null)\r\n\t\t\tgraphAverageProbability.dispose();\r\n\t\t\r\n\t\tif(graphTotalProfit!=null)\r\n\t\t\tgraphTotalProfit.dispose();\r\n\t\t\r\n\t\tif(graphClusteringCoefficient!=null)\r\n\t\t\tgraphClusteringCoefficient.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphSingleOutput!=null)\r\n\t\tgraphSingleOutput.dispose();\r\n\t\t\r\n\t\tif(graphSinglePrice!=null)\r\n\t\tgraphSinglePrice.dispose(); \r\n\t\t\r\n\t\tif(graphSingleQuality!=null)\r\n\t\tgraphSingleQuality.dispose(); \r\n\t\t\r\n\t\tif(graphSingleFirmLocations!=null)\r\n\t\tgraphSingleFirmLocations.dispose();\r\n\t\t\r\n\t\tif(graphSingleProbability!=null)\r\n\t\t graphSingleProbability.dispose(); \r\n\t\t\r\n\t\tif(graphSinglelProfit!=null)\r\n\t\tgraphSinglelProfit.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphSingleQualityConcept!=null)\r\n\t\t\tgraphSingleQualityConcept.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphCumProfit!=null)\r\n\t\t\tgraphCumProfit.dispose();\r\n\t\t\r\n\t\t\r\n\t \r\n\t if(dsurfList!=null){\r\n\t\t for(int i=0; i<dsurfList.size();i++){\r\n\t\t \t\t\r\n\t\t \t\tdsurfList.get(i).dispose();\r\n\t\t \r\n\t\t }\r\n\t}\r\n\t \r\n\t gridList = null;\r\n\t dsurfList = null;\r\n\t \r\n\t gridList = new ArrayList<Object2DGrid>() ;\r\n\t dsurfList\t= new\tArrayList<DisplaySurface>() ;\r\n\t \r\n\t \r\n\t dimX = ((int) Math.sqrt(numFirms))+5;\r\n\t dimY=dimX;\r\n\t \r\n\t \r\n\t \r\n\t if (surface != null)\r\n\t surface.dispose ();\r\n\t surface = null;\r\n\t \r\n\t surface = new DisplaySurface (this, \"Firm network\");\r\n\t registerDisplaySurface (\"Firm network\", surface);\r\n\t\t\r\n\t\t\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\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\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() {\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 interface IArchitecture extends ISkill, IStatement {\n\n\tpublic abstract boolean init(IScope scope) throws GamaRuntimeException;\n\n\tpublic abstract void verifyBehaviors(ISpecies context);\n}",
"@BeforeClass\n public static void setup() throws Exception{\n Observation systolic = new Observation();\n Observation dystolic = new Observation();\n Reference subject = new Reference().setReference(\"patient/p007\");\n systolic.setSubject(subject)\n .setCode(new CodeableConcept().addCoding(new Coding().setSystem(Constants.LOINCSYSTEM).setCode(\"8480-6\")))\n .setValue(new Quantity().setValue(150).setUnit(\"mmHg\"))\n .setInterpretation(new CodeableConcept().addCoding(new Coding().setSystem(Constants.V2OBSERVATIONINTERPRETATION).setCode(\"H\")));\n\n dystolic.setSubject(subject)\n .setCode(new CodeableConcept().addCoding(new Coding().setSystem(Constants.LOINCSYSTEM).setCode(\"8462-4\")))\n .setValue(new Quantity().setValue(100).setUnit(\"mmHg\"))\n .setInterpretation(new CodeableConcept().addCoding(new Coding().setSystem(Constants.V2OBSERVATIONINTERPRETATION).setCode(\"H\")));\n Observation.ObservationRelatedComponent related1 = new Observation.ObservationRelatedComponent();\n //related1.setTarget()\n\n Observation loincPanel = new Observation();\n loincPanel.setSubject(subject)\n .setCode(new CodeableConcept().addCoding(new Coding().setSystem(Constants.LOINCSYSTEM).setCode(\"35094-2\")))\n .setSubject(new Reference().setIdentifier(new Identifier().setSystem(\"org.jax\").setValue(\"Mouse Jerry\")));\n loincPanel.addRelated(related1);\n //.setInterpretation(new CodeableConcept().addCoding(new Coding().setSystem(\"http://hl7.org/fhir/v2/0078\").setCode(\"H\")));\n\n\n bpPanel = panelFactory.createFhirLoincPanel(new LoincId(\"35094-2\"));\n Map<LoincId, Observation> components = new HashMap<>();\n components.put(new LoincId(\"8480-6\"), systolic);\n components.put(new LoincId(\"8462-4\"), dystolic);\n bpPanel.addComponents(components);\n FhirObservationAnalyzer.init(resources.loincIdSet(), resources.annotationMap());\n FHIRLoincPanel.initResources(resources.loincIdSet(), resources.loincEntryMap(), resources.annotationMap());\n assertTrue(bpPanel.panelComponents().size() == 2);\n assertNotNull(resources.loincIdSet());\n assertTrue(resources.loincIdSet().size() > 5000);\n assertNotNull(resources.annotationMap());\n\n\n }",
"public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\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__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 }",
"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 abstract void modelStructureChanged();",
"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 {\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() {\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}",
"@Override\r\n\tpublic void setup(){\n\t\tmidiIO = CCMidiIO.getInstance();\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// print a list with all available devices\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// open an midiout using the first device and the first channel\r\n\t\tmidiOut = midiIO.midiOut(0, 1);\r\n\r\n\t\tbowl = new Bowl[10];\r\n\t\tfor (int i = 0; i < bowl.length; i++){\r\n\t\t\tbowl[i] = new Bowl(i);\r\n\t\t}\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__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 }",
"@Test\n\tpublic void cognitiveArchitectureStructureTest() {\n\t\ttry {\n\t\t\t// Create the agent\n\t\t\tString cognitiveAgentName = \"CognitiveAgent\";\n\n\t\t\t// Main codelet handler\n\t\t\tString mainCodeletHandlerName = \"MainProcessCodeletHandler\";\n\t\t\tString mainCodeletHandlerServiceAddress = cognitiveAgentName + \":\" + mainCodeletHandlerName;\n\n\t\t\t// Codelethandler Activate Concepts\n\t\t\tString activateConceptsCodeletTriggerName = \"ActivateConceptsCodeletHandlerTrigger\";\n\t\t\tString activateConceptsCodeletHandlerName = \"ActivateConceptsCodeletHandler\";\n\n\t\t\t// Codelethandler Create goals\n\t\t\tString createGoalsCodeletTriggerName = \"CreateGoalsCodeletHandlerTrigger\";\n\t\t\tString createGoalsCodeletHandlerName = \"CreateGoalsCodeletHandler\";\n\n\t\t\t// Codelethandler Activate beliefs\n\t\t\tString activateBeliefsCodeletTriggerName = \"ActivateBeliefsCodeletHandlerTrigger\";\n\t\t\tString activateBeliefsCodeletHandlerName = \"ActivateBeliefsCodeletHandler\";\n\n\t\t\t// CodeletHandler Propose Options\n\t\t\tString proposeOptionsCodeletTriggerName = \"ProposeOptionsCodeletHandlerTrigger\";\n\t\t\tString proposeOptionsCodeletHandlerName = \"ProposeOptionsCodeletHandler\";\n\n\t\t\t// CodeletHandler Propose Actions\n\t\t\tString proposeActionsCodeletTriggerName = \"ProposeActionsCodeletHandlerTrigger\";\n\t\t\tString proposeActionsCodeletHandlerName = \"ProposeActionsCodeletHandler\";\n\n\t\t\t// CodeletHandler Evaluate Options\n\t\t\tString evaluteOptionsCodeletTriggerName = \"EvaluateOptionsCodeletHandlerTrigger\";\n\t\t\tString evaluteOptionsCodeletHandlerName = \"EvaluateOptionsCodeletHandler\";\n\n\t\t\t// Codelet Select option (here, no codelethandler is executed, just a normal\n\t\t\t// codelet)\n\t\t\tString selectOptionCodeletName = \"SelectOptionCodelet\";\n\n\t\t\t// Codelet Execute Action\n\t\t\tString executeActionCodeletName = \"ExecuteActionCodelet\";\n\n\t\t\t// Memories\n\t\t\tString namespaceWorkingMemory = \"workingmemory\";\n\t\t\tString namespaceInternalStateMemory = \"internalstatememory\";\n\t\t\tString namespaceLongTermMemory = \"longtermmemory\";\n\n\t\t\t// Generate the configuration for the KORE system\n\t\t\tlog.info(\"Generate system configuration\");\n\t\t\t// Controller\n\t\t\tCellConfig cognitiveAgentConfig = CellConfig.newConfig(cognitiveAgentName)\n\t\t\t\t\t// Main codelethandler\n\t\t\t\t\t.addCellfunction(\n\t\t\t\t\t\t\tCellFunctionConfig.newConfig(mainCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t// Process codelethandlers\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateConceptsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(createGoalsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateBeliefsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeOptionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeActionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(evaluteOptionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t// Add main process codelets\n\t\t\t\t\t// Add trigger codelets\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateConceptsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"1\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(createGoalsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"2\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateBeliefsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"3\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeOptionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"4\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeActionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"5\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(evaluteOptionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"6\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName));\n\t\t\t// Direct codelets\n\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(selectOptionCodeletName,\n\t\t\t// OptionSelectorCodelet.class)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t// mainCodeletHandlerServiceAddress)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"7\"))\n\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(executeActionCodeletName,\n\t\t\t// ActionExecutorCodelet.class)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t// mainCodeletHandlerServiceAddress)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"8\"));\n\n\t\t\t// Add the specific codelets\n\t\t\tString incrementServiceName = \"incrementservice\";\n\t\t\tString incrementDatapoint1 = \"incrementme1\";\n\t\t\tString incrementDatapoint2 = \"incrementme2\";\n\n\t\t\tcognitiveAgentConfig\n\t\t\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(incrementServiceName,\n\t\t\t\t\t// CFIncrementService.class)\n\t\t\t\t\t// .addManagedDatapoint(DatapointConfig.newConfig(CFIncrementService.ATTRIBUTEINCREMENTDATAPOINT,\n\t\t\t\t\t// namespaceWorkingMemory + \".\" + incrementDatapoint,\n\t\t\t\t\t// SyncMode.SUBSCRIBEWRITEBACK)))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet11\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet12\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet13\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet14\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet15\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet16\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1));\n\n\t\t\tcognitiveAgentConfig\n\t\t\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(incrementServiceName,\n\t\t\t\t\t// CFIncrementService.class)\n\t\t\t\t\t// .addManagedDatapoint(DatapointConfig.newConfig(CFIncrementService.ATTRIBUTEINCREMENTDATAPOINT,\n\t\t\t\t\t// namespaceWorkingMemory + \".\" + incrementDatapoint,\n\t\t\t\t\t// SyncMode.SUBSCRIBEWRITEBACK)))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet21\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet22\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet23\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet24\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet25\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet26\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2));\n\n\t\t\tlog.debug(\"Start agent with config={}\", cognitiveAgentConfig);\n\n\t\t\tCellGatewayImpl cogsys = this.launcher.createAgent(cognitiveAgentConfig);\n\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Write initial value on the incrementaddress\n\t\t\tcogsys.getCommunicator().write(\n\t\t\t\t\tDatapointBuilder.newDatapoint(namespaceWorkingMemory + \".\" + incrementDatapoint1).setValue(0));\n\t\t\tcogsys.getCommunicator().write(\n\t\t\t\t\tDatapointBuilder.newDatapoint(namespaceWorkingMemory + \".\" + incrementDatapoint2).setValue(0));\n\n\t\t\tlog.info(\"=== All agents initialized ===\");\n\n\t\t\t// memoryAgent.getCommunicator().write(Datapoint.newDatapoint(processDatapoint).setValue(new\n\t\t\t// JsonPrimitive(startValue)));\n\t\t\t// cogsys.getCommunicator().execute(cognitiveAgentName, mainCodeletHandlerName,\n\t\t\t// Arrays.asList(\n\t\t\t// Datapoint.newDatapoint(\"method\").setValue(\"executecodelethandler\"),\n\t\t\t// Datapoint.newDatapoint(\"blockingmethod\").setValue(new JsonPrimitive(true))),\n\t\t\t// 10000);\n\n\t\t\tJsonRpcRequest request1 = new JsonRpcRequest(\"executecodelethandler\", 1);\n\t\t\trequest1.setParameterAsValue(0, false);\n\n\t\t\tcogsys.getCommunicator().executeServiceQueryDatapoints(cognitiveAgentName, mainCodeletHandlerName, request1,\n\t\t\t\t\tcognitiveAgentName, mainCodeletHandlerName + \".state\",\n\t\t\t\t\tnew JsonPrimitive(ServiceState.FINISHED.toString()), 200000);\n\n\t\t\t// synchronized (this) {\n\t\t\t// try {\n\t\t\t// this.wait(1000);\n\t\t\t// } catch (InterruptedException e) {\n\t\t\t//\n\t\t\t// }\n\t\t\t// }\n\n\t\t\t// log.info(\"Read working memory={}\", cogsys.getDataStorage());\n\n\t\t\tint result1 = (int) (cogsys.getCommunicator().read(namespaceWorkingMemory + \".\" + incrementDatapoint1)\n\t\t\t\t\t.getValue().getAsDouble());\n\t\t\tint result2 = (int) (cogsys.getCommunicator().read(namespaceWorkingMemory + \".\" + incrementDatapoint1)\n\t\t\t\t\t.getValue().getAsDouble());\n\t\t\tint expectedResult1 = 6;\n\t\t\tint expectedResult2 = 6;\n\n\t\t\tlog.debug(\"correct value={}, actual value={}\", expectedResult1, result1);\n\n\t\t\tassertEquals(expectedResult1, result1);\n\n\t\t\tlog.debug(\"correct value={}, actual value={}\", expectedResult2, result2);\n\t\t\tassertEquals(expectedResult2, result2);\n\t\t\tlog.info(\"Test passed\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error testing system\", e);\n\t\t\tfail(\"Error\");\n\t\t}\n\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 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 interface OntoumlFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tOntoumlFactory eINSTANCE = net.menthor.onto2.ontouml.impl.OntoumlFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Comment</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Comment</em>'.\r\n\t * @generated\r\n\t */\r\n\tComment createComment();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tModel createModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Package</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Package</em>'.\r\n\t * @generated\r\n\t */\r\n\tPackage createPackage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Attribute</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Attribute</em>'.\r\n\t * @generated\r\n\t */\r\n\tAttribute createAttribute();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Constraint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Constraint</em>'.\r\n\t * @generated\r\n\t */\r\n\tConstraint createConstraint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Literal</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Literal</em>'.\r\n\t * @generated\r\n\t */\r\n\tLiteral createLiteral();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Type</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Type</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataType createDataType();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tClass createClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>End Point</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>End Point</em>'.\r\n\t * @generated\r\n\t */\r\n\tEndPoint createEndPoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Relationship</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Relationship</em>'.\r\n\t * @generated\r\n\t */\r\n\tRelationship createRelationship();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization Set</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization Set</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralizationSet createGeneralizationSet();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralization createGeneralization();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tOntoumlPackage getOntoumlPackage();\r\n\r\n}",
"public void buildClassDescription() {\n\t\twriter.writeClassDescription();\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}",
"@Override\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(new SLCodec());\n\t\tgetContentManager().registerOntology(MobilityOntology.getInstance());\n\t\tthis.addBehaviour(new ReceiveMessage());\n\t}",
"protected EObject createInitialModel() {\r\n \t\tReqIF root = reqif10Factory.createReqIF();\r\n \r\n \t\tReqIFHeader header = reqif10Factory.createReqIFHeader();\r\n \t\troot.setTheHeader(header);\r\n \r\n \t\t// Setting the time gets more and more complicated...\r\n \t\ttry {\r\n \t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n \t\t\tcal.setTime(new Date());\r\n \t\t\theader.setCreationTime(DatatypeFactory.newInstance()\r\n \t\t\t\t\t.newXMLGregorianCalendar(cal));\r\n \t\t} catch (DatatypeConfigurationException e) {\r\n \t\t\tthrow new RuntimeException(e);\r\n \t\t}\r\n \r\n \t\theader.setSourceToolId(\"ProR (http://pror.org)\");\r\n //\t\theader.setAuthor(System.getProperty(\"user.name\"));\r\n \r\n \t\tReqIFContent content = reqif10Factory.createReqIFContent();\r\n \t\troot.setCoreContent(content);\r\n \r\n \t\t// Add a DatatypeDefinition\r\n \t\tDatatypeDefinitionString ddString = reqif10Factory\r\n \t\t\t\t.createDatatypeDefinitionString();\r\n \t\tddString.setLongName(\"T_String32k\");\r\n \t\tddString.setMaxLength(new BigInteger(\"32000\"));\r\n \t\tcontent.getDatatypes().add(ddString);\r\n \r\n \t\t// Add a Specification\r\n \t\tSpecification spec = reqif10Factory.createSpecification();\r\n \t\tspec.setLongName(\"Specification Document\");\r\n \t\tcontent.getSpecifications().add(spec);\r\n \r\n \t\t// Add a SpecType\r\n \t\tSpecObjectType specType = reqif10Factory.createSpecObjectType();\r\n \t\tspecType.setLongName(\"Requirement Type\");\r\n \t\tcontent.getSpecTypes().add(specType);\r\n \r\n \t\t// Add an AttributeDefinition\r\n \t\tAttributeDefinitionString ad = reqif10Factory\r\n \t\t\t\t.createAttributeDefinitionString();\r\n \t\tad.setType(ddString);\r\n \t\tad.setLongName(\"Description\");\r\n \t\tspecType.getSpecAttributes().add(ad);\r\n \r\n \t\t// Configure the Specification View\r\n \t\tProrToolExtension extension = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrToolExtension();\r\n \t\troot.getToolExtensions().add(extension);\r\n \t\tProrSpecViewConfiguration prorSpecViewConfiguration = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrSpecViewConfiguration();\r\n \t\textension.getSpecViewConfigurations().add(prorSpecViewConfiguration);\r\n \t\tprorSpecViewConfiguration.setSpecification(spec);\r\n \t\tColumn col = ConfigurationFactory.eINSTANCE.createColumn();\r\n \t\tcol.setLabel(\"Description\");\r\n \t\tcol.setWidth(400);\r\n \t\tprorSpecViewConfiguration.getColumns().add(col);\r\n \r\n \t\tColumn leftHeaderColumn = ConfigFactory.eINSTANCE.createColumn();\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setWidth(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_WIDTH);\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setLabel(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_NAME);\r\n \t\tprorSpecViewConfiguration.setLeftHeaderColumn(leftHeaderColumn);\r\n \r\n \t\t// Configure the Label configuration\r\n \t\tProrGeneralConfiguration generalConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrGeneralConfiguration();\r\n \t\tLabelConfiguration labelConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createLabelConfiguration();\r\n \t\tlabelConfig.getDefaultLabel().add(\"Description\");\r\n \t\tgeneralConfig.setLabelConfiguration(labelConfig);\r\n \t\textension.setGeneralConfiguration(generalConfig);\r\n \r\n \t\t// Create one Requirement\r\n \t\tSpecObject specObject = reqif10Factory.createSpecObject();\r\n \t\tspecObject.setType(specType);\r\n \t\tcontent.getSpecObjects().add(specObject);\r\n \t\tAttributeValueString value = reqif10Factory.createAttributeValueString();\r\n \t\tvalue.setTheValue(\"Start editing here.\");\r\n \t\tvalue.setDefinition(ad);\r\n \t\tspecObject.getValues().add(value);\r\n \r\n \t\t// Add the requirement to the Specification\r\n \t\tSpecHierarchy specHierarchy = reqif10Factory.createSpecHierarchy();\r\n \t\tspec.getChildren().add(specHierarchy);\r\n \t\tspecHierarchy.setObject(specObject);\t\r\n \t\treturn root;\r\n \t}",
"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 }",
"@objid (\"5451d474-f72f-46a9-b8b5-35997413d584\")\npublic interface CommunicationChannel extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"6e808325-1178-4f5a-9ca8-269f71745b8d\")\n public static final String MNAME = \"CommunicationChannel\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"20f1621a-db2d-4fb3-8e34-8502c8d522e0\")\n public static final String MQNAME = \"Standard.CommunicationChannel\";\n\n /**\n * Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d089f797-963a-472b-9102-e08e9087b6cd\")\n EList<CommunicationMessage> getStartToEndMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"066dba33-47f2-4d51-911f-d869593b015d\")\n <T extends CommunicationMessage> List<T> getStartToEndMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"590a2bf3-2953-41dc-8b02-1f07ac23249c\")\n void setChannel(Link value);\n\n /**\n * Getter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();\n\n /**\n * Setter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);\n\n /**\n * Getter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"42f8450d-1aca-4f83-a91e-9f7e7fc3c5c7\")\n NaryLink getNaryChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"92b2c0f0-fd35-4625-a34a-228b33b2cc4d\")\n void setNaryChannel(NaryLink value);\n\n /**\n * Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"20dbaa0c-b05b-4a47-a12e-306a021a47aa\")\n EList<CommunicationMessage> getEndToStartMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"1842961e-730c-46db-8ef2-47e5d4f8ba30\")\n <T extends CommunicationMessage> List<T> getEndToStartMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();\n\n /**\n * Setter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);\n\n}",
"@Override\n\tprotected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"supplier\");\n\t\tsd.setName(getLocalName() + \"-supplier-agent\");\n\t\tdfd.addServices(sd);\n\t\ttry{\n\t\t\tDFService.register(this, dfd);\n\t\t}\n\t\tcatch(FIPAException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tgetContentManager().registerLanguage(codec);\n\t\tgetContentManager().registerOntology(ontology);\n\t\targs = (String[])this.getArguments();\n\n\t\tbuyerAID = new AID(\"manufacturer\",AID.ISLOCALNAME);\n\n\t\tif(args[0] == \"zero\") {\n\t\t\tScreen screen = new Screen();\n\t\t\tscreen.setInch(\"5inch\");\n\t\t\tscreen.setSerialNumber(101);\n\t\t\tcomponents.add(screen.getSerialNumber());\n\t\t\tBattery battery = new Battery();\n\t\t\tbattery.setSerialNumber(201);\n\t\t\tbattery.setCapacity(\"2000mAh\");\n\n\t\t\tcomponents.add(battery.getSerialNumber());\n\n\t\t\tRAM ram = new RAM();\n\t\t\tram.setSerialNumber(301);\n\t\t\tram.setAmmount(\"4Gb\");\n\t\t\tcomponents.add(ram.getSerialNumber());\n\n\t\t\tStorage storage = new Storage();\n\t\t\tstorage.setSpace(\"64GB\");\n\t\t\tstorage.setSerialNumber(401);\n\t\t\tcomponents.add(storage.getSerialNumber());\n\n\t\t\tScreen screen2 = new Screen();\n\t\t\tscreen2.setInch(\"7inch\");\n\t\t\tscreen2.setSerialNumber(102);\n\t\t\tcomponents.add(screen2.getSerialNumber());\n\n\t\t\tBattery battery2 = new Battery();\n\t\t\tbattery2.setCapacity(\"3000mAh\");\n\t\t\tbattery2.setSerialNumber(202);\n\t\t\tcomponents.add(battery2.getSerialNumber());\n\n\t\t\tRAM ram2 = new RAM();\n\t\t\tram2.setAmmount(\"8Gb\");\n\t\t\tram2.setSerialNumber(302);\n\t\t\tcomponents.add(ram2.getSerialNumber());\n\n\t\t\tStorage storage2 = new Storage();\n\t\t\tstorage2.setSpace(\"256GB\");\n\t\t\tstorage2.setSerialNumber(402);\n\t\t\tcomponents.add(storage2.getSerialNumber());\n\t\t}else {\n\n\t\t\tRAM ram = new RAM();\n\t\t\tram.setAmmount(\"4Gb\");\n\t\t\tram.setSerialNumber(301);\n\t\t\tcomponents.add(ram.getSerialNumber());\n\n\t\t\tStorage storage = new Storage();\n\t\t\tstorage.setSpace(\"64GB\");\n\t\t\tstorage.setSerialNumber(401);\n\t\t\tcomponents.add(storage.getSerialNumber());\n\n\t\t\tRAM ram2 = new RAM();\n\t\t\tram2.setAmmount(\"8Gb\");\n\t\t\tram2.setSerialNumber(302);\n\t\t\tcomponents.add(ram2.getSerialNumber());\n\n\t\t\tStorage storage2 = new Storage();\n\t\t\tstorage2.setSpace(\"256GB\");\n\t\t\tstorage2.setSerialNumber(402);\n\t\t\tcomponents.add(storage2.getSerialNumber());\n\n\t\t}\n\n\t\t/*\n\t\tif(args[0] == \"1\") {\n\t\t\tScreen screen = new Screen();\n\t\t\tscreen.setInch(\"5inch\");\n\t\t\tcomponents.put(screen.getSerialNumber(),screen);\n\n\t\t\tBattery battery = new Battery();\n\t\t\tbattery.setCapacity(\"2000mAh\");\n\t\t\tcomponents.put(battery.getSerialNumber(),battery);\n\n\t\t\tRAM ram = new RAM();\n\t\t\tram.setAmmount(\"4Gb\");\n\t\t\tcomponents.put(ram.getSerialNumber(),ram);\n\n\t\t\tStorage storage = new Storage();\n\t\t\tstorage.setSpace(\"64GB\");\n\t\t\tcomponents.put(storage.getSerialNumber(),storage);\n\n\t\t\tScreen screen2 = new Screen();\n\t\t\tscreen2.setInch(\"7inch\");\n\t\t\tcomponents.put(screen2.getSerialNumber(),screen2);\n\n\t\t\tBattery battery2 = new Battery();\n\t\t\tbattery2.setCapacity(\"3000mAh\");\n\t\t\tcomponents.put(battery2.getSerialNumber(),battery2);\n\n\t\t\tRAM ram2 = new RAM();\n\t\t\tram2.setAmmount(\"8Gb\");\n\t\t\tcomponents.put(ram2.getSerialNumber(),ram2);\n\n\t\t\tStorage storage2 = new Storage();\n\t\t\tstorage2.setSpace(\"256GB\");\n\t\t\tcomponents.put(storage2.getSerialNumber(),storage2);\n\t\t}else {\n\n\t\t\tRAM ram = new RAM();\n\t\t\tram.setAmmount(\"4Gb\");\n\t\t\tcomponents.put(ram.getSerialNumber(),ram);\n\n\t\t\tStorage storage = new Storage();\n\t\t\tstorage.setSpace(\"64GB\");\n\t\t\tcomponents.put(storage.getSerialNumber(),storage);\n\n\t\t\tRAM ram2 = new RAM();\n\t\t\tram2.setAmmount(\"8Gb\");\n\t\t\tcomponents.put(ram2.getSerialNumber(),ram2);\n\n\t\t\tStorage storage2 = new Storage();\n\t\t\tstorage2.setSpace(\"256GB\");\n\t\t\tcomponents.put(storage2.getSerialNumber(),storage2);\n\n\t\t}\n\n\t\t */\n\n\n\t\taddBehaviour(new TickerWaiter(this));\n\t}",
"public interface HiphopsFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tHiphopsFactory eINSTANCE = hiphops.impl.HiphopsFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tModel createModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>System</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>System</em>'.\r\n\t * @generated\r\n\t */\r\n\tSystem createSystem();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Component</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Component</em>'.\r\n\t * @generated\r\n\t */\r\n\tComponent createComponent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Port</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Port</em>'.\r\n\t * @generated\r\n\t */\r\n\tPort createPort();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Implementation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Implementation</em>'.\r\n\t * @generated\r\n\t */\r\n\tImplementation createImplementation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>FData</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>FData</em>'.\r\n\t * @generated\r\n\t */\r\n\tFData createFData();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Output Deviation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Output Deviation</em>'.\r\n\t * @generated\r\n\t */\r\n\tOutputDeviation createOutputDeviation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Output Deviations</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Output Deviations</em>'.\r\n\t * @generated\r\n\t */\r\n\tOutputDeviations createOutputDeviations();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Basic Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Basic Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tBasicEvent createBasicEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Basic Events</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Basic Events</em>'.\r\n\t * @generated\r\n\t */\r\n\tBasicEvents createBasicEvents();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Named Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Named Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tNamedClass createNamedClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Line</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Line</em>'.\r\n\t * @generated\r\n\t */\r\n\tLine createLine();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Described Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Described Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tDescribedClass createDescribedClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Alloc Alternative</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Alloc Alternative</em>'.\r\n\t * @generated\r\n\t */\r\n\tAllocAlternative createAllocAlternative();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Hazard</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Hazard</em>'.\r\n\t * @generated\r\n\t */\r\n\tHazard createHazard();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tHiphopsPackage getHiphopsPackage();\r\n\r\n}",
"public void setupAbstract() {\n \r\n }",
"public abstract void description();",
"public void buildModel() {\n }",
"protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}",
"@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}",
"public interface MiniPowerPCUIIfc {\n //TODO Initializing the Memory Tabel needs a separate methode\n \n /**\n * Sets the Text in the Textfield of the Akkumulator\n */\n public void setAkku(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register1\n */\n public void setReg1(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register2\n */\n public void setReg2(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register3\n */\n public void setReg3(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Befehlszähler\n */\n public void setBefZ(String inMemoryEntry);\n \n /**\n * Sets the String in the Mnemonic-Column and the Value-Column in the Befehlsregister\n */\n public void setBefReg(String inMnemonic, String inValue);\n \n /**\n * Sets the String in the Mnemonic-Column and the Value-Column in the Befehlsregister\n */\n public void setMemoryEntries(MemoryEntry[] inMemory);\n \n \n /**\n * Sets the String in the Textfield of the \"Anzahl durchgeführter Befehle\"\n */\n public void setCountBef(String inMemoryEntry);\n \n /**\n * Sets the Text in the Textfield of the Befehlszähler\n */\n public void setCarryBit(String inMemoryEntry);\n\n /**\n * Returns True, if the Binary Exposition is selected. If Decimal Exposition\n * is selected the Method returns false.\n */\n public boolean isBinaryExpositionSelected();\n \n /**\n * Eventually there might be needed a Method to notify the GUI that the Simulation\n * is finished\n */\n //public void onSimulationFinished();\n}",
"public interface MedicationDispense2 extends MedicationDispense {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.product.manufacturedProduct.oclIsTypeOf(consol::MedicationInformation2)'\"\n\t * @generated\n\t */\n\tboolean validateMedicationDispense2ContainsMedicationInformation2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.product.manufacturedProduct.oclIsTypeOf(consol::ImmunizationMedicationInformation2)'\"\n\t * @generated\n\t */\n\tboolean validateMedicationDispense2ContainsImmunizationMedicationInformation2(DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \\'2.16.840.1.113883.10.20.22.4.18\\' and id.extension.oclIsUndefined())'\"\n\t * @generated\n\t */\n\tboolean validateMedicationDispense2TemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * <!-- begin-model-doc -->\n\t * @param diagnostics The chain of diagnostics to which problems are to be appended.\n\t * @param context The cache of context-specific information.\n\t * <!-- end-model-doc -->\n\t * @model annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.statusCode.oclIsUndefined() or self.statusCode.isNullFlavorUndefined()) implies (not self.statusCode.oclIsUndefined())'\"\n\t * @generated\n\t */\n\tboolean validateMedicationDispenseStatusCodeP(DiagnosticChain diagnostics, Map<Object, Object> context);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\" ordered=\"false\"\n\t * annotation=\"http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSupplies()->select(supply : cda::Supply | not supply.oclIsUndefined() and supply.oclIsKindOf(consol::MedicationSupplyOrder2))->asSequence()->any(true).oclAsType(consol::MedicationSupplyOrder2)'\"\n\t * @generated\n\t */\n\tMedicationSupplyOrder2 getConsolMedicationSupplyOrder2();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic MedicationDispense2 init();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tpublic MedicationDispense2 init(Iterable<? extends Initializer<? extends EObject>> initializers);\n}",
"public interface ArchitecturalModelPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"architecturalModel\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.example.org/rMSAS/architecturalModel\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"architecturalModel\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tArchitecturalModelPackage eINSTANCE = rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl <em>Architectural Refactoring</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tint ARCHITECTURAL_REFACTORING = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Smell</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__SMELL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Engine</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__ENGINE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__DESCRIPTION = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Architectural Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__ARCHITECTURAL_OPERATION = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Architectural Refactoring</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Architectural Refactoring</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl <em>Abstract Architectural Operation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Architectural Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Abstract Architectural Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.MoveImpl <em>Move</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.MoveImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getMove()\n\t * @generated\n\t */\n\tint MOVE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>From</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__FROM = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>To</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__TO = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Move</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of operations of the '<em>Move</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.CreateImpl <em>Create</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.CreateImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getCreate()\n\t * @generated\n\t */\n\tint CREATE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>In</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__IN = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Create</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Create</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.DeleteImpl <em>Delete</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.DeleteImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getDelete()\n\t * @generated\n\t */\n\tint DELETE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>From</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__FROM = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Delete</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Delete</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.ArchitecturalRefactoring <em>Architectural Refactoring</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Architectural Refactoring</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring\n\t * @generated\n\t */\n\tEClass getArchitecturalRefactoring();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getName()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getSmell <em>Smell</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Smell</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getSmell()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Smell();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getEngine <em>Engine</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Engine</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getEngine()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Engine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getDescription()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Description();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getArchitecturalOperation <em>Architectural Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Architectural Operation</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getArchitecturalOperation()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEReference getArchitecturalRefactoring_ArchitecturalOperation();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation <em>Abstract Architectural Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Architectural Operation</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation\n\t * @generated\n\t */\n\tEClass getAbstractArchitecturalOperation();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getDescription()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEAttribute getAbstractArchitecturalOperation_Description();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getCodeOperation <em>Code Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Code Operation</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getCodeOperation()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEReference getAbstractArchitecturalOperation_CodeOperation();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Condition</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getCondition()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEReference getAbstractArchitecturalOperation_Condition();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Move <em>Move</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Move</em>'.\n\t * @see rMSAS.architecturalModel.Move\n\t * @generated\n\t */\n\tEClass getMove();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getFrom <em>From</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>From</em>'.\n\t * @see rMSAS.architecturalModel.Move#getFrom()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_From();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getTo <em>To</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>To</em>'.\n\t * @see rMSAS.architecturalModel.Move#getTo()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_To();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Move#getAbstraction()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_Abstraction();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Create <em>Create</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Create</em>'.\n\t * @see rMSAS.architecturalModel.Create\n\t * @generated\n\t */\n\tEClass getCreate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Create#getIn <em>In</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>In</em>'.\n\t * @see rMSAS.architecturalModel.Create#getIn()\n\t * @see #getCreate()\n\t * @generated\n\t */\n\tEReference getCreate_In();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.Create#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Create#getAbstraction()\n\t * @see #getCreate()\n\t * @generated\n\t */\n\tEAttribute getCreate_Abstraction();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Delete <em>Delete</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Delete</em>'.\n\t * @see rMSAS.architecturalModel.Delete\n\t * @generated\n\t */\n\tEClass getDelete();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Delete#getFrom <em>From</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>From</em>'.\n\t * @see rMSAS.architecturalModel.Delete#getFrom()\n\t * @see #getDelete()\n\t * @generated\n\t */\n\tEReference getDelete_From();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Delete#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Delete#getAbstraction()\n\t * @see #getDelete()\n\t * @generated\n\t */\n\tEReference getDelete_Abstraction();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tArchitecturalModelFactory getArchitecturalModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl <em>Architectural Refactoring</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getArchitecturalRefactoring()\n\t\t * @generated\n\t\t */\n\t\tEClass ARCHITECTURAL_REFACTORING = eINSTANCE.getArchitecturalRefactoring();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__NAME = eINSTANCE.getArchitecturalRefactoring_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Smell</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__SMELL = eINSTANCE.getArchitecturalRefactoring_Smell();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Engine</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__ENGINE = eINSTANCE.getArchitecturalRefactoring_Engine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__DESCRIPTION = eINSTANCE.getArchitecturalRefactoring_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Architectural Operation</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ARCHITECTURAL_REFACTORING__ARCHITECTURAL_OPERATION = eINSTANCE.getArchitecturalRefactoring_ArchitecturalOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl <em>Abstract Architectural Operation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getAbstractArchitecturalOperation()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_ARCHITECTURAL_OPERATION = eINSTANCE.getAbstractArchitecturalOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION = eINSTANCE.getAbstractArchitecturalOperation_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Code Operation</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION = eINSTANCE.getAbstractArchitecturalOperation_CodeOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION = eINSTANCE.getAbstractArchitecturalOperation_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.MoveImpl <em>Move</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.MoveImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getMove()\n\t\t * @generated\n\t\t */\n\t\tEClass MOVE = eINSTANCE.getMove();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__FROM = eINSTANCE.getMove_From();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>To</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__TO = eINSTANCE.getMove_To();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__ABSTRACTION = eINSTANCE.getMove_Abstraction();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.CreateImpl <em>Create</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.CreateImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getCreate()\n\t\t * @generated\n\t\t */\n\t\tEClass CREATE = eINSTANCE.getCreate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>In</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CREATE__IN = eINSTANCE.getCreate_In();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CREATE__ABSTRACTION = eINSTANCE.getCreate_Abstraction();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.DeleteImpl <em>Delete</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.DeleteImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getDelete()\n\t\t * @generated\n\t\t */\n\t\tEClass DELETE = eINSTANCE.getDelete();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference DELETE__FROM = eINSTANCE.getDelete_From();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference DELETE__ABSTRACTION = eINSTANCE.getDelete_Abstraction();\n\n\t}\n\n}",
"@GofExample(pattern=\"Flyweight\", stereotype=\"Flyweight\")\r\npublic interface Model\r\n{\r\n\t/**\r\n\t * Visual animation of the model.k\r\n\t * @param lights The actual light conditions when the animation happens.\r\n\t * It can vary in time so it is extrinsic.\r\n\t */\r\n\tvoid animate( LightCondition lights );\r\n}",
"public interface Message extends ZUML2TCUMLTransformer<Link>, ModelElement {\n /**\n * <p>\n * Set the messageSort property of message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @param messageSort the messageSort property to set\n * @throws IllegalArgumentException if the messageSort is null or not \"asynchCall\" and not \"synchCall\"\n */\n public void setMessageSort(String messageSort);\n\n /**\n * <p>\n * Get the messageSort property of this message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @return the messageSort property\n */\n public String getMessageSort();\n\n /**\n * <p>\n * Set the receiveEvent property of the message. receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @param receiveEvent the receiveEvent property to set\n */\n public void setReceiveEvent(EventOccurrence receiveEvent);\n\n /**\n * <p>\n * Get the receiveEvent property of the message, receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @return the receiveEvent property of the message\n */\n public EventOccurrence getReceiveEvent();\n\n /**\n * <p>\n * Set the sendEvent property of the message. sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @param sendEvent the sendEvent property to set\n */\n public void setSendEvent(EventOccurrence sendEvent);\n\n /**\n * <p>\n * Get the sendEvent property of the message, sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @return the sendEvent property of message\n */\n public EventOccurrence getSendEvent();\n\n /**\n * <p>\n * Transform this message to TCUML Stimulus instance.The returned Stimulus instance must\n * be same for every call of this method. For example:\n * </p>\n * <p>Stimulus stimulus1 = this.toTCUMLStimulus();</p>\n * <p>Stimulus stimulus2 = this.toTCUMLStimulus();</p>\n * <p>stimulus1 == stimulus2 is true.</p>\n *\n * @return the transformed Stimulus instance\n */\n public Stimulus toTCUMLStimulus();\n}",
"public interface Kinetics {\n // Argument Temperaturetemperature :\n /**\n * The temperature that the rate is calculated.\n */\n // ## operation calculateRate(Temperature,double)\n double calculateRate(Temperature temperature, double Hrxn);\n\n double calculateRate(Temperature temperature);\n\n // ## operation getA()\n UncertainDouble getA();\n\n // ## operation getAValue()\n double getAValue();\n\n // ## operation getComment()\n String getComment();\n\n // ## operation getE()\n UncertainDouble getE();\n\n // ## operation getEValue()\n double getEValue();\n\n // ## operation getN()\n UncertainDouble getN();\n\n // ## operation getNValue()\n double getNValue();\n\n // ## operation getRank()\n int getRank();\n\n // ## operation getTRange()\n String getTRange();\n\n // ## operation getSource()\n String getSource();\n\n void setSource(String p_string);\n\n void setComments(String p_string);\n\n void setFromPrimaryKineticLibrary(boolean p_boolean);\n\n boolean isFromPrimaryKineticLibrary();\n\n // ## operation multiply(double)\n Kinetics multiply(double p_multiple);\n\n // ## operation repOk()\n boolean repOk();\n\n // ## operation toChemkinString()\n String toChemkinString(double Hrxn, Temperature p_temperature,\n boolean includeComments);\n\n // ## operation toString()\n String toString();\n\n boolean equals(Kinetics p_k);\n\n ArrheniusKinetics fixBarrier(double p_Hrxn);\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\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 setup() {\r\n\r\n\t}",
"public void setup() {\n }",
"private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }",
"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}",
"Architecture createArchitecture();",
"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() {\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 interface TxtUMLPackage extends EPackage\r\n{\r\n /**\r\n * The package name.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n String eNAME = \"txtUML\";\r\n\r\n /**\r\n * The package namespace URI.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n String eNS_URI = \"http://www.frantz.com/txtuml/TxtUML\";\r\n\r\n /**\r\n * The package namespace name.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n String eNS_PREFIX = \"txtUML\";\r\n\r\n /**\r\n * The singleton instance of the package.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n TxtUMLPackage eINSTANCE = com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl.init();\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ModelImpl <em>Model</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ModelImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getModel()\r\n * @generated\r\n */\r\n int MODEL = 0;\r\n\r\n /**\r\n * The feature id for the '<em><b>Statements</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MODEL__STATEMENTS = 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Model</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MODEL_FEATURE_COUNT = 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.StatementImpl <em>Statement</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.StatementImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getStatement()\r\n * @generated\r\n */\r\n int STATEMENT = 1;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int STATEMENT__NAME = 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Statement</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int STATEMENT_FEATURE_COUNT = 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ClassDeclImpl <em>Class Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassDecl()\r\n * @generated\r\n */\r\n int CLASS_DECL = 2;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_DECL__NAME = STATEMENT__NAME;\r\n\r\n /**\r\n * The feature id for the '<em><b>Inherits</b></em>' reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_DECL__INHERITS = STATEMENT_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The feature id for the '<em><b>Sections</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_DECL__SECTIONS = STATEMENT_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The number of structural features of the '<em>Class Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_DECL_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 2;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ClassMemberImpl <em>Class Member</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassMemberImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassMember()\r\n * @generated\r\n */\r\n int CLASS_MEMBER = 3;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_MEMBER__NAME = 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Class Member</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_MEMBER_FEATURE_COUNT = 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ClassSectionDeclImpl <em>Class Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassSectionDecl()\r\n * @generated\r\n */\r\n int CLASS_SECTION_DECL = 4;\r\n\r\n /**\r\n * The feature id for the '<em><b>Visibility</b></em>' containment reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_SECTION_DECL__VISIBILITY = 0;\r\n\r\n /**\r\n * The feature id for the '<em><b>Members</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_SECTION_DECL__MEMBERS = 1;\r\n\r\n /**\r\n * The number of structural features of the '<em>Class Section Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int CLASS_SECTION_DECL_FEATURE_COUNT = 2;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.VisibilityDeclImpl <em>Visibility Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.VisibilityDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getVisibilityDecl()\r\n * @generated\r\n */\r\n int VISIBILITY_DECL = 5;\r\n\r\n /**\r\n * The feature id for the '<em><b>Visibility</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int VISIBILITY_DECL__VISIBILITY = 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Visibility Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int VISIBILITY_DECL_FEATURE_COUNT = 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.MethodDeclImpl <em>Method Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MethodDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMethodDecl()\r\n * @generated\r\n */\r\n int METHOD_DECL = 6;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int METHOD_DECL__NAME = CLASS_MEMBER__NAME;\r\n\r\n /**\r\n * The feature id for the '<em><b>Return Type</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int METHOD_DECL__RETURN_TYPE = CLASS_MEMBER_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Method Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int METHOD_DECL_FEATURE_COUNT = CLASS_MEMBER_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.AttributeDeclImpl <em>Attribute Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.AttributeDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getAttributeDecl()\r\n * @generated\r\n */\r\n int ATTRIBUTE_DECL = 7;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ATTRIBUTE_DECL__NAME = CLASS_MEMBER__NAME;\r\n\r\n /**\r\n * The feature id for the '<em><b>Type</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ATTRIBUTE_DECL__TYPE = CLASS_MEMBER_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Attribute Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ATTRIBUTE_DECL_FEATURE_COUNT = CLASS_MEMBER_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.AssociationDeclImpl <em>Association Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.AssociationDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getAssociationDecl()\r\n * @generated\r\n */\r\n int ASSOCIATION_DECL = 8;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ASSOCIATION_DECL__NAME = CLASS_MEMBER__NAME;\r\n\r\n /**\r\n * The feature id for the '<em><b>Type</b></em>' reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ASSOCIATION_DECL__TYPE = CLASS_MEMBER_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Association Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ASSOCIATION_DECL_FEATURE_COUNT = CLASS_MEMBER_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.SequenceDeclImpl <em>Sequence Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.SequenceDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getSequenceDecl()\r\n * @generated\r\n */\r\n int SEQUENCE_DECL = 9;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int SEQUENCE_DECL__NAME = STATEMENT__NAME;\r\n\r\n /**\r\n * The feature id for the '<em><b>Sections</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int SEQUENCE_DECL__SECTIONS = STATEMENT_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Sequence Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int SEQUENCE_DECL_FEATURE_COUNT = STATEMENT_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.SequenceSectionDeclImpl <em>Sequence Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.SequenceSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getSequenceSectionDecl()\r\n * @generated\r\n */\r\n int SEQUENCE_SECTION_DECL = 10;\r\n\r\n /**\r\n * The number of structural features of the '<em>Sequence Section Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int SEQUENCE_SECTION_DECL_FEATURE_COUNT = 0;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ActorSectionDeclImpl <em>Actor Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ActorSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getActorSectionDecl()\r\n * @generated\r\n */\r\n int ACTOR_SECTION_DECL = 11;\r\n\r\n /**\r\n * The feature id for the '<em><b>Actors</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ACTOR_SECTION_DECL__ACTORS = SEQUENCE_SECTION_DECL_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Actor Section Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ACTOR_SECTION_DECL_FEATURE_COUNT = SEQUENCE_SECTION_DECL_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.MessageSectionDeclImpl <em>Message Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MessageSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageSectionDecl()\r\n * @generated\r\n */\r\n int MESSAGE_SECTION_DECL = 12;\r\n\r\n /**\r\n * The feature id for the '<em><b>Messages</b></em>' containment reference list.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_SECTION_DECL__MESSAGES = SEQUENCE_SECTION_DECL_FEATURE_COUNT + 0;\r\n\r\n /**\r\n * The number of structural features of the '<em>Message Section Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_SECTION_DECL_FEATURE_COUNT = SEQUENCE_SECTION_DECL_FEATURE_COUNT + 1;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.ActorDeclImpl <em>Actor Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ActorDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getActorDecl()\r\n * @generated\r\n */\r\n int ACTOR_DECL = 13;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ACTOR_DECL__NAME = 0;\r\n\r\n /**\r\n * The feature id for the '<em><b>Class Ref</b></em>' reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ACTOR_DECL__CLASS_REF = 1;\r\n\r\n /**\r\n * The number of structural features of the '<em>Actor Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int ACTOR_DECL_FEATURE_COUNT = 2;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.impl.MessageDeclImpl <em>Message Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MessageDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageDecl()\r\n * @generated\r\n */\r\n int MESSAGE_DECL = 14;\r\n\r\n /**\r\n * The feature id for the '<em><b>Name</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL__NAME = 0;\r\n\r\n /**\r\n * The feature id for the '<em><b>Left Op</b></em>' reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL__LEFT_OP = 1;\r\n\r\n /**\r\n * The feature id for the '<em><b>Operator</b></em>' attribute.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL__OPERATOR = 2;\r\n\r\n /**\r\n * The feature id for the '<em><b>Righ Op</b></em>' reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL__RIGH_OP = 3;\r\n\r\n /**\r\n * The feature id for the '<em><b>Method</b></em>' reference.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL__METHOD = 4;\r\n\r\n /**\r\n * The number of structural features of the '<em>Message Decl</em>' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n * @ordered\r\n */\r\n int MESSAGE_DECL_FEATURE_COUNT = 5;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.MessageOperator <em>Message Operator</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.MessageOperator\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageOperator()\r\n * @generated\r\n */\r\n int MESSAGE_OPERATOR = 15;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.DataType <em>Data Type</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.DataType\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getDataType()\r\n * @generated\r\n */\r\n int DATA_TYPE = 16;\r\n\r\n /**\r\n * The meta object id for the '{@link com.frantz.txtuml.txtUML.Visibility <em>Visibility</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.Visibility\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getVisibility()\r\n * @generated\r\n */\r\n int VISIBILITY = 17;\r\n\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.Model <em>Model</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Model</em>'.\r\n * @see com.frantz.txtuml.txtUML.Model\r\n * @generated\r\n */\r\n EClass getModel();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.Model#getStatements <em>Statements</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Statements</em>'.\r\n * @see com.frantz.txtuml.txtUML.Model#getStatements()\r\n * @see #getModel()\r\n * @generated\r\n */\r\n EReference getModel_Statements();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.Statement <em>Statement</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Statement</em>'.\r\n * @see com.frantz.txtuml.txtUML.Statement\r\n * @generated\r\n */\r\n EClass getStatement();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.Statement#getName <em>Name</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Name</em>'.\r\n * @see com.frantz.txtuml.txtUML.Statement#getName()\r\n * @see #getStatement()\r\n * @generated\r\n */\r\n EAttribute getStatement_Name();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.ClassDecl <em>Class Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Class Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassDecl\r\n * @generated\r\n */\r\n EClass getClassDecl();\r\n\r\n /**\r\n * Returns the meta object for the reference list '{@link com.frantz.txtuml.txtUML.ClassDecl#getInherits <em>Inherits</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference list '<em>Inherits</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassDecl#getInherits()\r\n * @see #getClassDecl()\r\n * @generated\r\n */\r\n EReference getClassDecl_Inherits();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.ClassDecl#getSections <em>Sections</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Sections</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassDecl#getSections()\r\n * @see #getClassDecl()\r\n * @generated\r\n */\r\n EReference getClassDecl_Sections();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.ClassMember <em>Class Member</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Class Member</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassMember\r\n * @generated\r\n */\r\n EClass getClassMember();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.ClassMember#getName <em>Name</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Name</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassMember#getName()\r\n * @see #getClassMember()\r\n * @generated\r\n */\r\n EAttribute getClassMember_Name();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.ClassSectionDecl <em>Class Section Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Class Section Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassSectionDecl\r\n * @generated\r\n */\r\n EClass getClassSectionDecl();\r\n\r\n /**\r\n * Returns the meta object for the containment reference '{@link com.frantz.txtuml.txtUML.ClassSectionDecl#getVisibility <em>Visibility</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference '<em>Visibility</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassSectionDecl#getVisibility()\r\n * @see #getClassSectionDecl()\r\n * @generated\r\n */\r\n EReference getClassSectionDecl_Visibility();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.ClassSectionDecl#getMembers <em>Members</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Members</em>'.\r\n * @see com.frantz.txtuml.txtUML.ClassSectionDecl#getMembers()\r\n * @see #getClassSectionDecl()\r\n * @generated\r\n */\r\n EReference getClassSectionDecl_Members();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.VisibilityDecl <em>Visibility Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Visibility Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.VisibilityDecl\r\n * @generated\r\n */\r\n EClass getVisibilityDecl();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.VisibilityDecl#getVisibility <em>Visibility</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Visibility</em>'.\r\n * @see com.frantz.txtuml.txtUML.VisibilityDecl#getVisibility()\r\n * @see #getVisibilityDecl()\r\n * @generated\r\n */\r\n EAttribute getVisibilityDecl_Visibility();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.MethodDecl <em>Method Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Method Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.MethodDecl\r\n * @generated\r\n */\r\n EClass getMethodDecl();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.MethodDecl#getReturnType <em>Return Type</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Return Type</em>'.\r\n * @see com.frantz.txtuml.txtUML.MethodDecl#getReturnType()\r\n * @see #getMethodDecl()\r\n * @generated\r\n */\r\n EAttribute getMethodDecl_ReturnType();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.AttributeDecl <em>Attribute Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Attribute Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.AttributeDecl\r\n * @generated\r\n */\r\n EClass getAttributeDecl();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.AttributeDecl#getType <em>Type</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Type</em>'.\r\n * @see com.frantz.txtuml.txtUML.AttributeDecl#getType()\r\n * @see #getAttributeDecl()\r\n * @generated\r\n */\r\n EAttribute getAttributeDecl_Type();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.AssociationDecl <em>Association Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Association Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.AssociationDecl\r\n * @generated\r\n */\r\n EClass getAssociationDecl();\r\n\r\n /**\r\n * Returns the meta object for the reference '{@link com.frantz.txtuml.txtUML.AssociationDecl#getType <em>Type</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference '<em>Type</em>'.\r\n * @see com.frantz.txtuml.txtUML.AssociationDecl#getType()\r\n * @see #getAssociationDecl()\r\n * @generated\r\n */\r\n EReference getAssociationDecl_Type();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.SequenceDecl <em>Sequence Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Sequence Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.SequenceDecl\r\n * @generated\r\n */\r\n EClass getSequenceDecl();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.SequenceDecl#getSections <em>Sections</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Sections</em>'.\r\n * @see com.frantz.txtuml.txtUML.SequenceDecl#getSections()\r\n * @see #getSequenceDecl()\r\n * @generated\r\n */\r\n EReference getSequenceDecl_Sections();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.SequenceSectionDecl <em>Sequence Section Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Sequence Section Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.SequenceSectionDecl\r\n * @generated\r\n */\r\n EClass getSequenceSectionDecl();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.ActorSectionDecl <em>Actor Section Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Actor Section Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.ActorSectionDecl\r\n * @generated\r\n */\r\n EClass getActorSectionDecl();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.ActorSectionDecl#getActors <em>Actors</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Actors</em>'.\r\n * @see com.frantz.txtuml.txtUML.ActorSectionDecl#getActors()\r\n * @see #getActorSectionDecl()\r\n * @generated\r\n */\r\n EReference getActorSectionDecl_Actors();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.MessageSectionDecl <em>Message Section Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Message Section Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageSectionDecl\r\n * @generated\r\n */\r\n EClass getMessageSectionDecl();\r\n\r\n /**\r\n * Returns the meta object for the containment reference list '{@link com.frantz.txtuml.txtUML.MessageSectionDecl#getMessages <em>Messages</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the containment reference list '<em>Messages</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageSectionDecl#getMessages()\r\n * @see #getMessageSectionDecl()\r\n * @generated\r\n */\r\n EReference getMessageSectionDecl_Messages();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.ActorDecl <em>Actor Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Actor Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.ActorDecl\r\n * @generated\r\n */\r\n EClass getActorDecl();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.ActorDecl#getName <em>Name</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Name</em>'.\r\n * @see com.frantz.txtuml.txtUML.ActorDecl#getName()\r\n * @see #getActorDecl()\r\n * @generated\r\n */\r\n EAttribute getActorDecl_Name();\r\n\r\n /**\r\n * Returns the meta object for the reference '{@link com.frantz.txtuml.txtUML.ActorDecl#getClassRef <em>Class Ref</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference '<em>Class Ref</em>'.\r\n * @see com.frantz.txtuml.txtUML.ActorDecl#getClassRef()\r\n * @see #getActorDecl()\r\n * @generated\r\n */\r\n EReference getActorDecl_ClassRef();\r\n\r\n /**\r\n * Returns the meta object for class '{@link com.frantz.txtuml.txtUML.MessageDecl <em>Message Decl</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for class '<em>Message Decl</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl\r\n * @generated\r\n */\r\n EClass getMessageDecl();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.MessageDecl#getName <em>Name</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Name</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl#getName()\r\n * @see #getMessageDecl()\r\n * @generated\r\n */\r\n EAttribute getMessageDecl_Name();\r\n\r\n /**\r\n * Returns the meta object for the reference '{@link com.frantz.txtuml.txtUML.MessageDecl#getLeftOp <em>Left Op</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference '<em>Left Op</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl#getLeftOp()\r\n * @see #getMessageDecl()\r\n * @generated\r\n */\r\n EReference getMessageDecl_LeftOp();\r\n\r\n /**\r\n * Returns the meta object for the attribute '{@link com.frantz.txtuml.txtUML.MessageDecl#getOperator <em>Operator</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the attribute '<em>Operator</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl#getOperator()\r\n * @see #getMessageDecl()\r\n * @generated\r\n */\r\n EAttribute getMessageDecl_Operator();\r\n\r\n /**\r\n * Returns the meta object for the reference '{@link com.frantz.txtuml.txtUML.MessageDecl#getRighOp <em>Righ Op</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference '<em>Righ Op</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl#getRighOp()\r\n * @see #getMessageDecl()\r\n * @generated\r\n */\r\n EReference getMessageDecl_RighOp();\r\n\r\n /**\r\n * Returns the meta object for the reference '{@link com.frantz.txtuml.txtUML.MessageDecl#getMethod <em>Method</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for the reference '<em>Method</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageDecl#getMethod()\r\n * @see #getMessageDecl()\r\n * @generated\r\n */\r\n EReference getMessageDecl_Method();\r\n\r\n /**\r\n * Returns the meta object for enum '{@link com.frantz.txtuml.txtUML.MessageOperator <em>Message Operator</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for enum '<em>Message Operator</em>'.\r\n * @see com.frantz.txtuml.txtUML.MessageOperator\r\n * @generated\r\n */\r\n EEnum getMessageOperator();\r\n\r\n /**\r\n * Returns the meta object for enum '{@link com.frantz.txtuml.txtUML.DataType <em>Data Type</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for enum '<em>Data Type</em>'.\r\n * @see com.frantz.txtuml.txtUML.DataType\r\n * @generated\r\n */\r\n EEnum getDataType();\r\n\r\n /**\r\n * Returns the meta object for enum '{@link com.frantz.txtuml.txtUML.Visibility <em>Visibility</em>}'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the meta object for enum '<em>Visibility</em>'.\r\n * @see com.frantz.txtuml.txtUML.Visibility\r\n * @generated\r\n */\r\n EEnum getVisibility();\r\n\r\n /**\r\n * Returns the factory that creates the instances of the model.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the factory that creates the instances of the model.\r\n * @generated\r\n */\r\n TxtUMLFactory getTxtUMLFactory();\r\n\r\n /**\r\n * <!-- begin-user-doc -->\r\n * Defines literals for the meta objects that represent\r\n * <ul>\r\n * <li>each class,</li>\r\n * <li>each feature of each class,</li>\r\n * <li>each enum,</li>\r\n * <li>and each data type</li>\r\n * </ul>\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n interface Literals\r\n {\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ModelImpl <em>Model</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ModelImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getModel()\r\n * @generated\r\n */\r\n EClass MODEL = eINSTANCE.getModel();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Statements</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference MODEL__STATEMENTS = eINSTANCE.getModel_Statements();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.StatementImpl <em>Statement</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.StatementImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getStatement()\r\n * @generated\r\n */\r\n EClass STATEMENT = eINSTANCE.getStatement();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute STATEMENT__NAME = eINSTANCE.getStatement_Name();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ClassDeclImpl <em>Class Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassDecl()\r\n * @generated\r\n */\r\n EClass CLASS_DECL = eINSTANCE.getClassDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Inherits</b></em>' reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference CLASS_DECL__INHERITS = eINSTANCE.getClassDecl_Inherits();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Sections</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference CLASS_DECL__SECTIONS = eINSTANCE.getClassDecl_Sections();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ClassMemberImpl <em>Class Member</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassMemberImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassMember()\r\n * @generated\r\n */\r\n EClass CLASS_MEMBER = eINSTANCE.getClassMember();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute CLASS_MEMBER__NAME = eINSTANCE.getClassMember_Name();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ClassSectionDeclImpl <em>Class Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ClassSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getClassSectionDecl()\r\n * @generated\r\n */\r\n EClass CLASS_SECTION_DECL = eINSTANCE.getClassSectionDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference CLASS_SECTION_DECL__VISIBILITY = eINSTANCE.getClassSectionDecl_Visibility();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Members</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference CLASS_SECTION_DECL__MEMBERS = eINSTANCE.getClassSectionDecl_Members();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.VisibilityDeclImpl <em>Visibility Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.VisibilityDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getVisibilityDecl()\r\n * @generated\r\n */\r\n EClass VISIBILITY_DECL = eINSTANCE.getVisibilityDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute VISIBILITY_DECL__VISIBILITY = eINSTANCE.getVisibilityDecl_Visibility();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.MethodDeclImpl <em>Method Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MethodDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMethodDecl()\r\n * @generated\r\n */\r\n EClass METHOD_DECL = eINSTANCE.getMethodDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Return Type</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute METHOD_DECL__RETURN_TYPE = eINSTANCE.getMethodDecl_ReturnType();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.AttributeDeclImpl <em>Attribute Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.AttributeDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getAttributeDecl()\r\n * @generated\r\n */\r\n EClass ATTRIBUTE_DECL = eINSTANCE.getAttributeDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute ATTRIBUTE_DECL__TYPE = eINSTANCE.getAttributeDecl_Type();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.AssociationDeclImpl <em>Association Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.AssociationDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getAssociationDecl()\r\n * @generated\r\n */\r\n EClass ASSOCIATION_DECL = eINSTANCE.getAssociationDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Type</b></em>' reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference ASSOCIATION_DECL__TYPE = eINSTANCE.getAssociationDecl_Type();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.SequenceDeclImpl <em>Sequence Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.SequenceDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getSequenceDecl()\r\n * @generated\r\n */\r\n EClass SEQUENCE_DECL = eINSTANCE.getSequenceDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Sections</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference SEQUENCE_DECL__SECTIONS = eINSTANCE.getSequenceDecl_Sections();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.SequenceSectionDeclImpl <em>Sequence Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.SequenceSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getSequenceSectionDecl()\r\n * @generated\r\n */\r\n EClass SEQUENCE_SECTION_DECL = eINSTANCE.getSequenceSectionDecl();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ActorSectionDeclImpl <em>Actor Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ActorSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getActorSectionDecl()\r\n * @generated\r\n */\r\n EClass ACTOR_SECTION_DECL = eINSTANCE.getActorSectionDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Actors</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference ACTOR_SECTION_DECL__ACTORS = eINSTANCE.getActorSectionDecl_Actors();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.MessageSectionDeclImpl <em>Message Section Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MessageSectionDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageSectionDecl()\r\n * @generated\r\n */\r\n EClass MESSAGE_SECTION_DECL = eINSTANCE.getMessageSectionDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Messages</b></em>' containment reference list feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference MESSAGE_SECTION_DECL__MESSAGES = eINSTANCE.getMessageSectionDecl_Messages();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.ActorDeclImpl <em>Actor Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.ActorDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getActorDecl()\r\n * @generated\r\n */\r\n EClass ACTOR_DECL = eINSTANCE.getActorDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute ACTOR_DECL__NAME = eINSTANCE.getActorDecl_Name();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Class Ref</b></em>' reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference ACTOR_DECL__CLASS_REF = eINSTANCE.getActorDecl_ClassRef();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.impl.MessageDeclImpl <em>Message Decl</em>}' class.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.impl.MessageDeclImpl\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageDecl()\r\n * @generated\r\n */\r\n EClass MESSAGE_DECL = eINSTANCE.getMessageDecl();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute MESSAGE_DECL__NAME = eINSTANCE.getMessageDecl_Name();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Left Op</b></em>' reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference MESSAGE_DECL__LEFT_OP = eINSTANCE.getMessageDecl_LeftOp();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Operator</b></em>' attribute feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EAttribute MESSAGE_DECL__OPERATOR = eINSTANCE.getMessageDecl_Operator();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Righ Op</b></em>' reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference MESSAGE_DECL__RIGH_OP = eINSTANCE.getMessageDecl_RighOp();\r\n\r\n /**\r\n * The meta object literal for the '<em><b>Method</b></em>' reference feature.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n EReference MESSAGE_DECL__METHOD = eINSTANCE.getMessageDecl_Method();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.MessageOperator <em>Message Operator</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.MessageOperator\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getMessageOperator()\r\n * @generated\r\n */\r\n EEnum MESSAGE_OPERATOR = eINSTANCE.getMessageOperator();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.DataType <em>Data Type</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.DataType\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getDataType()\r\n * @generated\r\n */\r\n EEnum DATA_TYPE = eINSTANCE.getDataType();\r\n\r\n /**\r\n * The meta object literal for the '{@link com.frantz.txtuml.txtUML.Visibility <em>Visibility</em>}' enum.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @see com.frantz.txtuml.txtUML.Visibility\r\n * @see com.frantz.txtuml.txtUML.impl.TxtUMLPackageImpl#getVisibility()\r\n * @generated\r\n */\r\n EEnum VISIBILITY = eINSTANCE.getVisibility();\r\n\r\n }\r\n\r\n}",
"public abstract ArchECoreResponsibilityStructure newResponsibilityStructure(ArchECoreArchitecture architecture) throws ArchEException;",
"private void buildInternalRepresentations() {\n new DAGBuilder(data).buildMethods(this);//.dump();\n }",
"protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}",
"public void disp(){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"Feature Model \");\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"The mandatory feature:\");\r\n\t\t\tfor(int i = 0; i < this.mandatoryFeatures.size(); i++ ){\r\n\t\t\t\tthis.mandatoryFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tSystem.out.println(\"Optional features:\");\r\n\t\t\tfor(int i = 0; i < this.optionalFeatures.size(); i++ ){\r\n\t\t\t\tthis.optionalFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tfor(int i = 0; i < this.alternativeFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Alternative features:\");\r\n\t\t\t\tfor(int j = 0; j < alternativeFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\talternativeFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.orFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Or features:\");\r\n\t\t\t\tfor(int j = 0; j < orFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\torFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Constraints:\");\r\n\t\t\tfor(int i = 0; i < this.constraints.size(); i++ ){\r\n\t\t\t\tthis.constraints.get(i).disp();\r\n\t\t\t}//for\r\n\t\t}",
"public static void main(String[] args) {\n\t\tVehicleClass car = new VehicleClass(8,1,120/3.6);\r\n\t\tVehicleClass truck = new VehicleClass(18,1.5,90/3.6);\r\n\t\tModel model = new Model();\r\n\t\tmodel.dt=0.2;\r\n\t\tArrayList<MacroCellMultiClass> cells = new ArrayList<MacroCellMultiClass>();\r\n\t\tint nrCells = 3;\r\n\t\t\r\n\t\tfor (int n=0; n<nrCells; n++) {\r\n\t\tMacroCellMultiClass mc = new MacroCellMultiClass(model);\r\n\t\t\r\n\t\tmc.addVehicleClass(car);\r\n\t\tmc.addVehicleClass(truck);\r\n\t\tmc.setWidth(3.5);\r\n\t\tmc.l = 50;\r\n\t\tcells.add(mc);\r\n\t\t\r\n\t\t\r\n\t\tmc.init();\r\n\t\t}\r\n\t\tcells.get(0).addOut(cells.get(1));\r\n\t\tfor (int n=1; n<nrCells-1; n++) {\r\n\t\t\tMacroCellMultiClass mc = cells.get(n);\r\n\t\t\tmc.addIn(cells.get(n-1));\r\n\t\t\tmc.addOut(cells.get(n+1));\r\n\t\t}\r\n\t\tcells.get(nrCells-1).addIn(cells.get(nrCells-2));\r\n\t\t\r\n\t\t//System.out.println(mc.getEffectiveDensity());\r\n\t\t\r\n\t\t//System.out.println(car.getAFreeFlow());\r\n\t\t//car.setVMax(130);\r\n\t\t//System.out.println(car.getAFreeFlow());\r\n\t\t//System.out.println(car.getBFreeFlow(85/3.6, 0.02));\r\n\t\t//System.out.println(car.getAFreeFlow());\r\n\t\t\r\n\t\tfor (int i=0; i<200; i++) {\r\n\t\t\tfor (MacroCellMultiClass mc: cells) {\r\n\t\tSystem.out.println(Arrays.toString(mc.KCell));\r\n\t\tmc.updateEffectiveDensity();\r\n\t\tSystem.out.println(mc.effDensity);\r\n\t\tmc.updateVelocity();\r\n\t\tSystem.out.println(Arrays.toString(mc.VCell));\r\n\t\tmc.updateVehicleShare();\r\n\t\tSystem.out.println(Arrays.toString(mc.vehicleShare));\r\n\t\tmc.updateFlow();\r\n\t\tSystem.out.println(Arrays.toString(mc.QCell));\r\n\t\tmc.updateEffectiveFlow();\r\n\t\tSystem.out.println(mc.effFlow);\r\n\t\t\t\r\n\t\t//System.out.println(mc.)\r\n\t\tmc.updateEffectiveSupply();\r\n\t\tSystem.out.println(mc.effSupply);\r\n\t\tmc.updateEffectiveDemand();\r\n\t\tSystem.out.println(mc.effDemand);\r\n\t\tmc.updateLabda();\r\n\t\tSystem.out.println(Arrays.toString(mc.labda));\r\n\t\tSystem.out.println(\"++++++++++++\");\r\n\t\t}\r\n\t\t\tfor (MacroCellMultiClass mc: cells) {\r\n\t\t\r\n\t\tmc.updateClassDemand();\r\n\t\tSystem.out.println(Arrays.toString(mc.classDemand));\r\n\t\t\r\n\t\tmc.updateClassSupply();\r\n\t\tSystem.out.println(Arrays.toString(mc.classSupply));\r\n\t\tSystem.out.println(\"++++++++++++\");\r\n\t\t\t}\r\n\t\t\tfor (MacroCellMultiClass mc: cells) {\r\n\t\tmc.updateClassFluxIn();\r\n\t\tSystem.out.println(Arrays.toString(mc.classFluxIn));\r\n\t\tmc.updateClassFluxOut();\r\n\t\tSystem.out.println(Arrays.toString(mc.classFluxOut));\r\n\t\tmc.updateDensity();\r\n\t\tSystem.out.println(Arrays.toString(mc.KCell));\r\n\t\tSystem.out.println(\"++++++++++++\");\r\n\t\t\r\n\t\t}\r\n\t\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t}\r\n\t\t\r\n\t\r\n\t}",
"public ME_Model() {\n _nheldout = 0;\n _early_stopping_n = 0;\n _ref_modelp = null;\n }",
"public void quickSimulation() {\n\t\tnew SimulationControleur();\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}",
"private void setupPowerSystem() {\n\t\tps = new PowerSystem(PowerSystemSolutionMethod.ANL_OPF);\r\n\t\t\r\n\t\t// Create nodes & register with power system\r\n\t\tNodeData nodeWindGenerator = new NodeData(1,1.0,0,false,true);\r\n\t\tps.addNode(nodeWindGenerator);\r\n\t\tNodeData nodeSubstation2 = new NodeData(2,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation2);\r\n\t\tNodeData nodeCityResidential = new NodeData(3,1.0,0,false);\r\n\t\tps.addNode(nodeCityResidential);\r\n\t\tNodeData nodeCityIndustrial = new NodeData(4,1.0,0,false);\r\n\t\tps.addNode(nodeCityIndustrial);\r\n\t\tNodeData nodeCityCommercial = new NodeData(5,1.0,0,false);\r\n\t\tps.addNode(nodeCityCommercial);\r\n\t\tNodeData nodeCoalGenerator = new NodeData(7,1.0,0,false,true);\r\n\t\tps.addNode(nodeCoalGenerator);\r\n\t\tNodeData nodeSubstation3 = new NodeData(8,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation3);\r\n\t\tNodeData nodeGasGenerator = new NodeData(11,1.0,0,false,true);\r\n\t\tps.addNode(nodeGasGenerator);\r\n\t\tNodeData nodeWindStorage = new NodeData(9,1.0,0,false);\r\n\t\tps.addNode(nodeWindStorage);\r\n\t\tNodeData nodeSubstation1 = new NodeData(0,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation1);\r\n\t\t\r\n\t\t// Create lines & register with power system\r\n\t\tMWTimeSeries branchTimeSeries = null;\r\n\t\t\r\n\t\tBranchData branchWindGeneratorToLocalSubstation = new BranchData(nodeWindGenerator,nodeSubstation1,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindGeneratorToLocalSubstation,\"Wind Generator to Substation 1\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindGeneratorToLocalSubstation);\r\n\r\n\t\tBranchData branchWindStorageToLocalSubstation = new BranchData(nodeWindStorage,nodeSubstation1,0.01,0,1500.0,false);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindStorageToLocalSubstation,\"Storage to Substation 1\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindStorageToLocalSubstation);\r\n\t\t\r\n\t\tbranchWindLocalSubstationToCitySubstation = new BranchData(nodeSubstation1,nodeSubstation2,0.01,0,125.0,false);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindLocalSubstationToCitySubstation,\"Substation 1 to Substation 2\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindLocalSubstationToCitySubstation);\r\n\t\t\r\n\t\tBranchData branchWindToResidential = new BranchData(nodeSubstation2,nodeCityResidential,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToResidential,\"Substation 2 to Residential\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindToResidential);\r\n\t\t\r\n\t\tBranchData branchWindToCommercial = new BranchData(nodeSubstation2,nodeCityCommercial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToCommercial,\"Substation 2 to Commercial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindToCommercial);\r\n\r\n\t\tBranchData branchWindToIndustrial = new BranchData(nodeSubstation2,nodeCityIndustrial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToIndustrial,\"Substation 2 to Industrial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchWindToIndustrial);\r\n\t\t\r\n\t\tBranchData branchCoalGeneratorToSubstation = new BranchData(nodeCoalGenerator,nodeSubstation3,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalGeneratorToSubstation,\"Coal Generator to Substation 3\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchCoalGeneratorToSubstation);\r\n\t\t\r\n\t\t\r\n\t\tBranchData branchGasToSubstation = new BranchData(nodeGasGenerator,nodeSubstation3,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchGasToSubstation,\"Natural Gas Generator to Substation 3\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchGasToSubstation);\r\n\t\t\r\n\t\tBranchData branchCoalToResidential = new BranchData(nodeSubstation3,nodeCityResidential,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToResidential,\"Substation 3 to Residential\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToResidential);\r\n\t\t\r\n\t\tBranchData branchCoalToIndustrial = new BranchData(nodeSubstation3,nodeCityIndustrial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToIndustrial,\"Substation 3 to Industrial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToIndustrial);\r\n\t\t\r\n\t\tBranchData branchCoalToCommercial = new BranchData(nodeSubstation3,nodeCityCommercial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToCommercial,\"Substation 3 to Commercial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToCommercial);\r\n\r\n\t\t\r\n\t\t// Create loads\r\n\t\tMWTimeSeries loadTimeSeries = null;\r\n\t\t\r\n\t\tloadResidential = new LoadData(nodeCityResidential,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadResidential,\"Residential load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadResidential);\r\n\t\t\r\n\t\tloadCommercial = new LoadData(nodeCityCommercial,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadCommercial,\"Commercial load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadCommercial);\r\n\t\t\r\n\t\tloadIndustrial = new LoadData(nodeCityIndustrial,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadIndustrial,\"Industrial load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadIndustrial);\r\n\t\t\r\n\t\t// Create gens\r\n\t\tMWTimeSeries genTimeSeries = null;\r\n\t\t\r\n\t\tgensWithCostsAndEmissions = new ArrayList<CostAndEmissionsProvider>();\r\n\t\tGeneratorDataWithLinearCostAndEmissions genCoal = new GeneratorDataWithLinearCostAndEmissions(nodeCoalGenerator,600,0,2000,0,0,9999,true,2000,20.0,0,1.0,includeFixedCostsAndEmissions);\r\n\t\tgensWithCostsAndEmissions.add(genCoal);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genCoal);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genCoal,\"Coal generation\");\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tps.addGenerator(genCoal);\r\n\t\t\r\n\t\tGeneratorDataWithLinearCostAndEmissions genGas = new GeneratorDataWithLinearCostAndEmissions(nodeGasGenerator,200,0,2000,0,0,9999,true,700.0,70.0,0,0.5,includeFixedCostsAndEmissions);\r\n\t\tgensWithCostsAndEmissions.add(genGas);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genGas);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genGas,\"Natural gas generation\");\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tps.addGenerator(genGas);\r\n\t\t\r\n\t\tgenWind = new WindGeneratorDataWithLinearCostAndEmissions(nodeWindGenerator,initialWindGen,0,210,initialWindVariation,true,200.0,0,0,0,includeFixedCostsAndEmissions);\r\n\t\tgenWind.setAnimating(false);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genWind);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genWind,\"Wind generation\");\r\n\t\twindGenTimeSeries = genTimeSeries;\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tgensWithCostsAndEmissions.add(genWind);\r\n\t\tps.addGenerator(genWind);\r\n\t\t\r\n\t\tgenStorage = new StorageDevice(nodeWindStorage,0,0,0,0,0,0,true,genWind,branchWindLocalSubstationToCitySubstation,simClock,1000,100);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genStorage,\"Storage generation\");\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genStorage);\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(genStorage);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tgensWithCostsAndEmissions.add(genStorage);\r\n\t\tps.addGenerator(genStorage);\r\n\t\t\r\n\t\tps.solve();\r\n\t\t\r\n\t\tArrayList<LineAndDistanceInfoProvider> lines; \r\n\t\tFlowArrowsForBranchData fA;\r\n\t\tSimpleLineDisplay line;\r\n\t\t\r\n\t\tBranchColorProvider branchColorProvider = new BranchColorDynamic(Color.BLACK,0.85,Color.ORANGE,1.0,Color.RED);\r\n\t\tBranchThicknessProvider branchThicknessProvider = new BranchThicknessDynamic(1.0,0.85,2.0,1.0,3.0);\r\n\t\tFlowArrowColorProvider flowArrowColorProvider = new FlowArrowColorDynamic(new Color(0,255,0,255/2),0.85,new Color(255,128,64,255/2),1.0,new Color(255,0,0,255/2));\r\n\t\t\r\n\t\t\r\n\t\tdouble switchthickness = 5.0;\r\n\r\n\t\t// Line Coal Generator to Fossil Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsCoalGenToCoalSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,350),new Point2D.Double(710 - 70,212),1);\r\n\t\tpointsCoalGenToCoalSubstation.add(line.getFromPoint());\r\n\t\tpointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsCoalGenToCoalSubstation.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsCoalGenToCoalSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalGeneratorToSubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalGeneratorToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\r\n\t\t//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(640,260),12,new Color(0f,0f,0f,1f),0,branchCoalGeneratorToSubstation));\r\n\t\t\r\n\t\t// Line Gas Generator to Fossil Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsGasGenToFossilSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,112.5),new Point2D.Double(765 - 70,160),1);\r\n\t\tpointsGasGenToFossilSubstation.add(line.getFromPoint());\r\n\t\tpointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsGasGenToFossilSubstation.add(line.getToPoint());\r\n\t\tpointsGasGenToFossilSubstation.add(new Point2D.Double(710 - 70,212));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsGasGenToFossilSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchGasToSubstation, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchGasToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\t//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(660,170),12,new Color(0f,0f,0f,1f),0,branchGasToSubstation));\r\n\t\t\r\n\t\t// Line Wind Generator to Wind Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindGenToWindSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(89,281),new Point2D.Double(89,150),1);\r\n\t\tpointsWindGenToWindSubstation.add(line.getFromPoint());\r\n\t\tpointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindGenToWindSubstation.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindGenToWindSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindGeneratorToLocalSubstation, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindGeneratorToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,200),12,new Color(0f,0f,0f,1f),0,branchWindGeneratorToLocalSubstation));\t\t\r\n\t\t\r\n\t\t// Line storage to Wind Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindStorageToWindSubstation = new ArrayList<Point2D.Double>();\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(210,25));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,25));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,55));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,95));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,140));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStorageToWindSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 2, Math.PI/20, \r\n\t\t\t\tbranchWindStorageToLocalSubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindStorageToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,75),12,new Color(0f,0f,0f,1f),0,branchWindStorageToLocalSubstation));\t\t\r\n\t\t\r\n\t\t// Line substation 2 to Residential load\r\n\t\tArrayList<Point2D.Double> pointsWindStationToResidential = new ArrayList<Point2D.Double>();\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(351 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(419 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(457 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(525 - 70,212.5));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStationToResidential, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToResidential, branchColorProvider, circuitpanel, true, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(413 - 70,180),12,new Color(0f,0f,0f,1f),0,branchWindToResidential));\t\t\r\n\t\t\r\n\t\t// Line substation 3 to Residential load\r\n\t\tArrayList<Point2D.Double> pointsFossilStationToResidential = new ArrayList<Point2D.Double>();\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(710 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(631 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(592 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(525 - 70,212.5));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilStationToResidential, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToResidential, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,180),12,new Color(0f,0f,0f,1f),0,branchCoalToResidential));\t\t\r\n\t\t\r\n\t\t// Line Substation 3 to Industrial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsFossilSubstationToIndustrial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,365),1);\r\n\t\tpointsFossilSubstationToIndustrial.add(line.getFromPoint());\r\n\t\tpointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsFossilSubstationToIndustrial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilSubstationToIndustrial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToIndustrial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,280),12,new Color(0f,0f,0f,1f),-Math.PI/5,branchCoalToIndustrial));\r\n\t\t\r\n\t\t// Line Substation 3 to Commercial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsSub3ToCommercial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,55),1);\r\n\t\tpointsSub3ToCommercial.add(line.getFromPoint());\r\n\t\tpointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsSub3ToCommercial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub3ToCommercial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToCommercial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(615 - 70,105),12,new Color(0f,0f,0f,1f),Math.PI/5,branchCoalToCommercial));\r\n\r\n\t\t\r\n\t\t// Line Substation 2 to Industrial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindSubstationToIndustrial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,365),1);\r\n\t\tpointsWindSubstationToIndustrial.add(line.getFromPoint());\r\n\t\tpointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindSubstationToIndustrial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToIndustrial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToIndustrial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(399 - 70,273),12,new Color(0f,0f,0f,1f),Math.PI/4,branchWindToIndustrial));\r\n\r\n\t\t// Line Substation 2 to Commercial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindSubstationToCommercial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,55),1);\r\n\t\tpointsWindSubstationToCommercial.add(line.getFromPoint());\r\n\t\tpointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindSubstationToCommercial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToCommercial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToCommercial, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(396 - 70,140),12,new Color(0f,0f,0f,1f),-Math.PI/4,branchWindToCommercial));\r\n\t\t\r\n\t\t// Line Substation 1 to Substation 2\r\n\t\tArrayList<Point2D.Double> pointsSub0ToSub1 = new ArrayList<Point2D.Double>();\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(85,140));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,140));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,156));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,196));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(190,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(230,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(351 - 70,212));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub0ToSub1, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 2, Math.PI/20, \r\n\t\t\t\tbranchWindLocalSubstationToCitySubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindLocalSubstationToCitySubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(195,141),12,new Color(0f,0f,0f,1f),0,branchWindLocalSubstationToCitySubstation));\r\n\t\t\r\n\t\t\r\n\t\t// Coal plant display\r\n\t\ttry {\r\n\t\t\tCoalPlantDisplay coaldisplay = new CoalPlantDisplay(new Point2D.Double(650 - 70,300),0,0.0,genCoal);\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(coaldisplay);\r\n\t\t\tcircuitpanel.addMouseListener(coaldisplay);\r\n\t\t\tCostAndEmissionsOverlay coaloverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,450),genCoal);\r\n\t\t\tcostOverlays.add(coaloverlay);\r\n\t\t\tcircuitpanel.getTopLayerRenderables().add(coaloverlay);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Gas plant display\r\n\t\ttry {\r\n\t\tGasPlantDisplay gasdisplay = new GasPlantDisplay(new Point2D.Double(650 - 70,40),0.0,genGas);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(gasdisplay);\r\n\t\tcircuitpanel.addMouseListener(gasdisplay);\r\n\t\tCostAndEmissionsOverlay gasoverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,20),genGas);\r\n\t\tcostOverlays.add(gasoverlay);\r\n\t\tcircuitpanel.getTopLayerRenderables().add(gasoverlay);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Wind plant display\r\n\t\ttry {\r\n\t\t\twinddisplay = new WindPlantDisplay(new Point2D.Double(50,240),0.0,genWind);\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(winddisplay);\r\n\t\t\tcircuitpanel.getAnimatables().add(winddisplay);\r\n\t\t\tcircuitpanel.addMouseListener(winddisplay);\r\n\t\t\tCostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(100,450),genWind);\r\n\t\t\tcostOverlays.add(windoverlay);\r\n\t\t\tcircuitpanel.getTopLayerRenderables().add(windoverlay);\t\t\t\t\t\t\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// Storage display\r\n//\t\ttry {\r\n\t\t\t//SubstationDisplay storagedisplay = new SubstationDisplay(new Point2D.Double(160,0),\"Storage\");\r\n\t\t\t//circuitpanel.getMiddleLayerRenderables().add(storagedisplay);\r\n\t\t\tStorageDisplay storagedisplay = new StorageDisplay(genStorage,StorageDisplay.Alignment.LEFT,StorageDisplay.Alignment.TOP,new Point2D.Double(170,0));\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(storagedisplay);\r\n//\t\t} catch (IOException ie) {\r\n//\t\t\tSystem.out.println(ie);\r\n//\t\t}\r\n\t\t\r\n\t\t// Commercial load\r\n\t\ttry {\r\n\t\t\tCityDisplay commercetonLoad = new CityDisplay(new Point2D.Double(475 - 70,25),CityDisplay.CityType.COMMERCIAL,\"Commercial\",loadCommercial,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(commercetonLoad);\r\n\t\t\tcircuitpanel.addMouseListener(commercetonLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Residential load\r\n\t\ttry {\r\n\t\t\tCityDisplay residentialLoad = new CityDisplay(new Point2D.Double(475 - 70,175),CityDisplay.CityType.RESIDENTIAL,\"Residential\",loadResidential,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(residentialLoad);\r\n\t\t\tcircuitpanel.addMouseListener(residentialLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\r\n\t\t\r\n\t\t// Industrial load\r\n\t\ttry {\r\n\t\t\tCityDisplay industrialLoad = new CityDisplay(new Point2D.Double(475 - 70,329),CityDisplay.CityType.INDUSTRIAL,\"Industrial\",loadIndustrial,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(industrialLoad);\r\n\t\t\tcircuitpanel.addMouseListener(industrialLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\t\t\t\r\n\t\t\r\n\t\t// Substation 3\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(660 - 70,212 - 25.0),3));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// Substation 2\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(305 - 70,212 - 25.0),2));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Substation 1\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(39,120.0),1));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\t\r\n\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new StoredEnergyLabel(new Point2D.Double(230,56),12,Color.BLACK,0,genStorage));\r\n\t\t\r\n\t\t/*\r\n\t\ttotalloadplot = new TotalLoadPlot(\r\n\t\t\t\tnew Point2D.Double(10,10),\r\n\t\t\t\t700,200,\r\n\t\t\t\tps,\r\n\t\t\t\tminutesPerAnimationStep,\r\n\t\t\t\t0,24,\r\n\t\t\t\t0,3000);\r\n\t\t*/\r\n\t\t/*\r\n\t\tMouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,20),12,Color.BLACK,0);\r\n\t\tcircuitpanel.getTopLayerRenderables().add(mclabel);\r\n\t\tcircuitpanel.addMouseMotionListener(mclabel);\r\n\t\tMouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,0),12,Color.BLACK,0);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(mclabel);\r\n\t\tcircuitpanel.addMouseMotionListener(mclabel);\r\n\t\t*/\r\n\t\t\r\n\t\tWindMaxDisplay windMaxLabel = new WindMaxDisplay(new Point2D.Double(144,384),12,Color.BLACK,0,genWind);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(windMaxLabel);\r\n\t\tWindCurtailedDisplay windCurtailedLabel = new WindCurtailedDisplay(new Point2D.Double(144,404),12,Color.BLACK,0,genWind);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(windCurtailedLabel);\r\n\r\n\t\tcircuitpanel.getTopLayerRenderables().add(new BlackoutDisplay(ps));\t\t\r\n\t\t\r\n\t\tcircuitpanel.getAnimatables().add(ps);\r\n\t\t\r\n\t\tcircuitpanel.getTopLayerRenderables().add(\r\n\t\t\t\tnew SimClockDisplay(new Point2D.Double(350,5),12,Color.BLACK,0,simClock)); \r\n\t\t\r\n\t\t// Wind plant at node sixteen\r\n//\t\ttry {\r\n//\t\t\tWindPlantDisplay winddisplay = new WindPlantDisplay(new Point2D.Double(650,340),0.0,genWind);\r\n//\t\t\tcircuitpanel.getMiddleLayerRenderables().add(winddisplay);\r\n//\t\t\tcircuitpanel.getAnimatables().add(winddisplay);\r\n//\t\t\tcircuitpanel.addMouseListener(winddisplay);\r\n//\t\t\tCostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(689,462),genWind);\r\n//\t\t\tcostOverlays.add(windoverlay);\r\n//\t\t\tcircuitpanel.getTopLayerRenderables().add(windoverlay);\t\t\t\t\t\t\r\n//\t\t} catch (IOException ie) {\r\n//\t\t\tSystem.out.println(ie);\r\n//\t\t}\r\n\t\t\r\n\t}",
"public SystematicAcension_by_LiftingTechnology() {\n\n\t}",
"public void setup()\n {\n }",
"@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}",
"private void createMetaModelCode(SubMonitor progress,\n \t\t\tfinal ConcreteSyntax cSyntax) {\n \t\tif (EMFTextEditUIPlugin.getDefault().getPreferenceStore().getBoolean(EMFTextEditUIPlugin.GENERATE_GEN_MODEL)) {\n \t\t\tgenerateMetaModelCode(cSyntax.getPackage(), progress.newChild(TICKS_GENERATE_METAMODEL_CODE));\n \t\t} else {\n \t\t\tprogress.internalWorked(TICKS_GENERATE_METAMODEL_CODE);\n \t\t}\n \t}",
"@Test\n\tpublic void testFormalizeMessageWithBridgeOperation() {\n\t\ttest_id = \"1\";\n\t\tString diagramName = \"Communication in Package\";\n\n\t\tPackage_c communication = getPackage(diagramName);\n\n\t\tcommunication = Package_c.getOneEP_PKGOnR1405(m_sys,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(\n\t\t\t\t\t\t\t\t\"Communication in Package\");\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\tCanvasUtilities.openCanvasEditor(communication);\n\n\t\tGraphicalEditor ce = CanvasTestUtilities.getCanvasEditor(diagramName\n\t\t\t\t);\n\t\t// test that an external entity participant may\n\t\t// be formalized against an external entity\n\t\tExternalEntityParticipant_c eep = ExternalEntityParticipant_c\n\t\t\t\t.ExternalEntityParticipantInstance(\n\t\t\t\t\t\tcommunication.getModelRoot(),\n\t\t\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\t\t\tExternalEntityParticipant_c selected = (ExternalEntityParticipant_c) candidate;\n\t\t\t\t\t\t\t\treturn selected.getLabel().equals(\n\t\t\t\t\t\t\t\t\t\t\"Informal External Entity\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\tassertNotNull(eep);\n\n\t\tselection.clear();\n\t\tselection.addToSelection(eep);\n\n\t\t// before calling the action setup a thread that will\n\t\t// configure the necessary values\n\t\tShell[] existingShells = PlatformUI.getWorkbench().getDisplay().getShells();\n\t\tFailableRunnable runnable = TestUtil.chooseItemInDialog(200, \"Time\", existingShells);\n\t\tTestUtil.okElementSelectionDialog(runnable, existingShells);\n\t\ttry {\n\t\t\t// get the action and execute it\n\t\t\tGenericPackageFormalizeOnSQ_EEPAction action = new GenericPackageFormalizeOnSQ_EEPAction();\n\t\t\taction.run(null);\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\n\t\t\ttest_id = \"2\";\n\t\n\t\t\t// test formalizing the message against one of the operations\n\t\t\tSynchronousMessage_c synchronousMessage = getSynchronousMessage(\"Informal Synchronous Message\");\n\t\n\t\t\tassertNotNull(synchronousMessage);\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(synchronousMessage);\n\t\t\tselection.addToSelection(eep);\n\t\n\t\t\tIStructuredSelection sel = Selection.getInstance().getStructuredSelection();\n\t\n\t\t\t// create and initialize the wizard\n\t\t\tCommunicationBridgeOperationFormalizeOnMSG_SMWizard wizard2 = new CommunicationBridgeOperationFormalizeOnMSG_SMWizard();\n\t\t\twizard2.init(workbench, sel, null);\n\t\t\tWizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()\n\t\t\t\t\t.getShell(), wizard2);\n\t\t\tdialog.create();\n\t\n\t\t\t// Select the association in the wizard\n\t\t\tCommunicationBridgeOperationFormalizeOnMSG_SMWizardPage4 page3 = (CommunicationBridgeOperationFormalizeOnMSG_SMWizardPage4) wizard2\n\t\t\t\t\t.getStartingPage();\n\t\t\tpage3.createControl(workbench.getActiveWorkbenchWindow().getShell());\n\t\t\tCombo combo = page3.MessageCombo;\n\t\t\tselectItemInList(\"current_date\", combo);\n\t\t\tassertTrue(\"Bridge Operation: \" + \"current_date, \"\n\t\t\t\t\t+ \"was not selected in the wizard.\", wizard2.performFinish());\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t} finally {\n\t\t\t// test unformalizing and external entity and the message\n\t\t\t// through the external entity\n\t\t\ttest_id = \"3\";\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(eep);\n\n\t\t\tExternalEntityUnformalizeOnSQ_EEPAction unformalizeAction = new ExternalEntityUnformalizeOnSQ_EEPAction();\n\t\t\tunformalizeAction.run(new Action() {\n\t\t\t});\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t}\n\t}",
"private static void jbptTest2() throws FileNotFoundException, Exception {\n\t\tFile folder = new File(\"models\");\n\t\t\n\t\tFile[] arModels = folder.listFiles(new FileUtil().getFileter(\"pnml\"));\n\t\tfor(File file: arModels)\n\t\t{\n\t\t\t//print the file name\n\t\t\tSystem.out.println(\"========\" + file.getName() + \"========\");\n\n\t\t\t//initialize the counter for conditions and events\n\t\t\tAbstractEvent.count = 0;\n\t\t\tAbstractCondition.count = 0;\n\n\t\t\t//get the file path\n\t\t\tString filePrefix = file.getPath();\n\t\t\tfilePrefix = filePrefix.substring(0, filePrefix.lastIndexOf('.'));\n\t\t\tString filePNG = filePrefix + \".png\";\n\t\t\tString fileCPU = filePrefix + \"-cpu.png\";\n\t\t\tString fileNet = filePrefix + \"-cpu.pnml\";\n\n\t\t\tPnmlImport pnmlImport = new PnmlImport();\n\t\t\tPetriNet p1 = pnmlImport.read(new FileInputStream(file));\n\n\t\t\t// ori\n\t\t\t/*ProvidedObject po1 = new ProvidedObject(\"petrinet\", p1);\n\t\t\t\n\t\t\tDotPngExport dpe1 = new DotPngExport();\n\t\t\tOutputStream image1 = new FileOutputStream(filePNG);\n\t\t\t\n\t\t\tdpe1.export(po1, image1);*/\n\n\t\t\tNetSystem ns = PetriNetConversion.convert(p1);\n\t\t\tProperCompletePrefixUnfolding cpu = new ProperCompletePrefixUnfolding(ns);\n\t\t\tNetSystem netPCPU = PetriNetConversion.convertCPU2NS(cpu);\n\t\t\t// cpu\n\t\t\tPetriNet p2 = PetriNetConversion.convert(netPCPU);\n\t\t\t\n\t\t\tProvidedObject po2 = new ProvidedObject(\"petrinet\", p2);\n\t\t\tDotPngExport dpe2 = new DotPngExport();\n\t\t\tOutputStream image2 = new FileOutputStream(fileCPU);\n\t\t\tdpe2.export(po2, image2);\n//\t\t\t\n\t\t\tExport(p2, fileNet);\n//\t\t\t// net\n//\t\t\tNetSystem nsCPU = PetriNetConversion.convertCPU2NS(cpu);\n//\t\t\tPetriNet pnCPU = PetriNetConversion.convertNS2PN(nsCPU);\n//\t\t\tProvidedObject po3 = new ProvidedObject(\"petrinet\", pnCPU);\n//\t\t\tDotPngExport dpe3 = new DotPngExport();\n//\t\t\tOutputStream image3 = new FileOutputStream(fileNet);\n//\t\t\tdpe3.export(po3, image3);\n\t\t}\n\t\t\tSystem.exit(0);\n\t}",
"public static void main(String[] args) {\n car hyundai = new car();\n car maruti = new car();\n hyundai.setModel(\"i10\");\n hyundai.setDoors();\n System.out.println(hyundai.getModel());\n System.out.println(hyundai.getDoors());\n hyundai.setModel(\"baleno\");\n hyundai.setDoors();\n System.out.println(hyundai.getModel());\n System.out.println(hyundai.getDoors());\n\n\n }",
"UMLBehavior createUMLBehavior();",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"public abstract interface DescriptiveFramework \n\textends InterchangeObject {\r\n\n\t/**\n\t * <p>Return the identifier of the {@linkplain DescriptiveMarker descriptive marker} that strongly references \n\t * this descriptive framework instance. This is an optional property.</p>\n\t * \n\t * @return Identifier of the descriptive marker that strongly references this descriptive framework instance.\n\t * \n\t * @throws PropertyNotPresentException The optional linked descriptive framework plugin property\n\t * is not present for this descriptive framework.\n\t * \n\t * @see DescriptiveMarker#getDescriptiveMetadataPluginID()\n\t */\n\tpublic AUID getLinkedDescriptiveFrameworkPluginID()\n\t\tthrows PropertyNotPresentException;\n\t\n\t/**\n\t * <p>Sets the identifier of the {@linkplain DescriptiveMarker descriptive marker} that strongly references \n\t * this descriptive framework instance. Set this optional property to <code>null</code> to\n\t * omit it.</p>\n\t * \n\t * @param linkedDescriptiveFrameworkPluginID Identifier of the Descriptive marker that strongly references this \n\t * descriptive framework instance.\n\t */\n\tpublic void setLinkedDescriptiveFrameworkPluginID(\n\t\t\tAUID linkedDescriptiveFrameworkPluginID);\n\t\n\t/**\n\t * <p>Create a cloned copy of this descriptive framework.</p>\n\t *\n\t * @return Cloned copy of this descriptive framework.\n\t */\n\tpublic DescriptiveFramework clone();\n\t\r\n}",
"public static void main(String[] args){\n IFlyBehaviour simpleFlyBehaviour = new SimpleFlyBehaviour(); // Horizontal sharing of code which is not possible with inheritance\n IQuackBehaviour simpleQuackBehaviour = new SimpleQuackBehaviour();\n IQuackBehaviour complexQuackBehaviour = new ComplexQuackBehaviour();\n\n // Create instances of the classes with different behaviours\n DuckBehaviourModule simpleDuckBehaviour = new DuckBehaviourModule(simpleFlyBehaviour, simpleQuackBehaviour);\n DuckBehaviourModule complexDuckBehaviour = new DuckBehaviourModule(simpleFlyBehaviour, complexQuackBehaviour);\n\n // Print them to check if they are working fine\n System.out.println(simpleDuckBehaviour.toString());\n System.out.println(\"Prediction :: \\n\");\n simpleDuckBehaviour.duckPrediction();\n\n System.out.println(\"-------------------------------- \\n\");\n\n System.out.println(complexDuckBehaviour.toString());\n System.out.println(\"Prediction :: \\n\");\n complexDuckBehaviour.duckPrediction();\n\n\n }",
"private void makeDescription() {\n List switchInfo = InteractDB.getTheList(InteractDB.getFromDB(\"SwitchInfo\", idSwitch.toString()));\n\n DescriptionGen descr = new DescriptionGen(switchInfo);\n description = descr.getDescription();\n }",
"@Override\n\tpublic int inferSimulation(Structure struct) {\n\t\treturn 0;\n\t}",
"public interface BehaviouralModelPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"behavioural\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http:///it/eng/spagobi/meta/model/behavioural.ecore\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"it.eng.spagobi.meta.model.behavioural\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelPackage eINSTANCE = it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t * @generated\r\n\t */\r\n\tint BEHAVIOURAL_MODEL = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Behavioural Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BEHAVIOURAL_MODEL_FEATURE_COUNT = 0;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link it.eng.spagobi.meta.model.behavioural.BehaviouralModel <em>Behavioural Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Behavioural Model</em>'.\r\n\t * @see it.eng.spagobi.meta.model.behavioural.BehaviouralModel\r\n\t * @generated\r\n\t */\r\n\tEClass getBehaviouralModel();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelFactory getBehaviouralModelFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BEHAVIOURAL_MODEL = eINSTANCE.getBehaviouralModel();\r\n\r\n\t}\r\n\r\n}",
"@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}",
"@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }",
"private void setupMachinery() {\n\t\tthis.renderer = new IntermediateRenderer();\n\t\tthis.controllerModel = new ControllerModel();\n\t\t\n\t\t// connect the Renderer to the Hub\n\t\tthis.hub = new ControllerHub(this.controllerModel, this.renderer, this);\n\t\tthis.hub.addAtomContainer(ac);\n\t\t\n\t\t// connect mouse events from Panel to the Hub\n\t\tthis.mouseEventRelay = new SwingMouseEventRelay(this.hub);\n\t\tthis.addMouseListener(mouseEventRelay);\n\t}",
"protected void setup(){\n this.setEnabledO2ACommunication(true, 0);\n \n showMessage(\"Agent (\" + getLocalName() + \") .... [OK]\");\n \n // Register the agent to the DF\n ServiceDescription sd1 = new ServiceDescription();\n sd1.setType(UtilsAgents.BOAT_COORDINATOR);\n sd1.setName(getLocalName());\n sd1.setOwnership(UtilsAgents.OWNER);\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.addServices(sd1);\n dfd.setName(getAID());\n try {\n DFService.register(this, dfd);\n showMessage(\"Registered to the DF\");\n }catch (FIPAException e) {\n System.err.println(getLocalName() + \" registration with DF \" + \"unsucceeded. Reason: \" + e.getMessage());\n doDelete();\n }\n \n //Search for the CentralAgent\n ServiceDescription searchBoatCoordCriteria = new ServiceDescription();\n searchBoatCoordCriteria.setType(UtilsAgents.COORDINATOR_AGENT);\n this.coordinatorAgent = UtilsAgents.searchAgent(this, searchBoatCoordCriteria);\n\n // Register response behaviours\n //TODO canviar i posar l'altra content\n MessageTemplate mt = MessageTemplate.MatchContent(\"Movement request\");\n this.addBehaviour(new RequestResponseBehaviour(this,mt ));\n }",
"public interface ISimModel {\n\n /**\n * Start this model.\n */\n public void launch();\n \n public Node getRoot();\n \n public ObservableList<String> getRealtimeDataList();\n \n public ObservableList<String> getTableDataList();\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\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 testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }",
"String deploymentModel();",
"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}",
"@Test\n\tpublic void testFormalizeMessageWithClassBasedOperation() {\n\t\ttest_id = \"10\";\n\t\tString diagramName = \"Communication in Package\";\n\n\t\tPackage_c communication = getPackage(diagramName);\n\t\tCanvasUtilities.openCanvasEditor(communication);\n\n\t\tGraphicalEditor ce = CanvasTestUtilities.getCanvasEditor(diagramName\n\t\t\t\t);\n\t\t// test that an external entity participant may\n\t\t// be formalized against an external entity\n\t\tClassParticipant_c cp = ClassParticipant_c.ClassParticipantInstance(\n\t\t\t\tmodelRoot, new ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tClassParticipant_c selected = (ClassParticipant_c) candidate;\n\t\t\t\t\t\treturn selected.getLabel().equals(\"Informal Class\");\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\tassertNotNull(cp);\n\n\t\tselection.clear();\n\t\tselection.addToSelection(cp);\n\n\t\tIStructuredSelection sel = Selection.getInstance()\n\t\t\t\t.getStructuredSelection();\n\n\t\ttry {\n\t\t\t// before calling the action setup a thread that will\n\t\t\t// configure the necessary values\n\t\t\tShell[] existingShells = PlatformUI.getWorkbench().getDisplay().getShells();\n\t\t\tFailableRunnable runnable = TestUtil.chooseItemInDialog(200, \"Supertype\", existingShells);\n\t\t\tTestUtil.okElementSelectionDialog(runnable, existingShells);\n\t\t\t// get the action and execute it\n\t\t\tGenericPackageFormalizeOnSQ_CPAction action = new GenericPackageFormalizeOnSQ_CPAction();\n\t\t\taction.run(null);\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\n\t\t\ttest_id = \"11\";\n\t\n\t\t\t// test formalizing the message against one of the operations\n\t\t\tSynchronousMessage_c synchronousMessage = getSynchronousMessage(\"Informal Synchronous Message\");\n\t\n\t\t\tassertNotNull(synchronousMessage);\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(synchronousMessage);\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tsel = Selection.getInstance().getStructuredSelection();\n\t\n\t\t\t// create and initialize the wizard\n\t\t\tCommunicationClassOperationFormalizeOnMSG_SMWizard wizard2 = new CommunicationClassOperationFormalizeOnMSG_SMWizard();\n\t\t\twizard2.init(workbench, sel, null);\n\t\t\tWizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()\n\t\t\t\t\t.getShell(), wizard2);\n\t\t\tdialog.create();\n\t\n\t\t\t// Select the association in the wizard\n\t\t\tCommunicationClassOperationFormalizeOnMSG_SMWizardPage4 page2 = (CommunicationClassOperationFormalizeOnMSG_SMWizardPage4) wizard2\n\t\t\t\t\t.getStartingPage();\n\t\t\tpage2.createControl(workbench.getActiveWorkbenchWindow().getShell());\n\t\t\tCombo combo = page2.MessageCombo;\n\t\t\tselectItemInList(\"CBOperation\", combo);\n\t\t\tassertTrue(\"Operation: \" + \"CBOperation, \"\n\t\t\t\t\t+ \"was not selected in the wizard.\", wizard2.performFinish());\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t} finally {\n\t\t\t// test unformalizing and external entity and the message\n\t\t\t// through the external entity\n\t\t\ttest_id = \"12\";\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tClassUnformalizeOnSQ_CPAction unformalizeAction = new ClassUnformalizeOnSQ_CPAction();\n\t\t\tunformalizeAction.run(new Action() {\n\t\t\t});\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t}\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 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 processOWLDefinition(ModuleItem pkg) throws SerializationException, IOException{\n ModelCompiler jarCompiler = ModelCompilerFactory.newModelCompiler(ModelFactory.CompileTarget.JAR);\n JarModel compiledJarModel = (JarModel) jarCompiler.compile(ontoModel);\n byte[] jarBytes = compiledJarModel.buildJar().toByteArray();\n \n //Get the Working-Set from onto-model\n ModelCompiler wsCompiler = ModelCompilerFactory.newModelCompiler(ModelFactory.CompileTarget.WORKSET);\n WorkingSetModel compiledWSModel = (WorkingSetModel) wsCompiler.compile(ontoModel);\n SemanticWorkingSetConfigData semanticWorkingSet = compiledWSModel.getWorkingSet();\n \n //Get the Fact Types DRL from onto-model\n ModelCompiler drlCompiler = ModelCompilerFactory.newModelCompiler(ModelFactory.CompileTarget.DRL);\n DRLModel drlModel = (DRLModel)drlCompiler.compile(ontoModel);\n \n //Get the Fact Types XSD from onto-model\n ModelCompiler xsdCompiler = ModelCompilerFactory.newModelCompiler(ModelFactory.CompileTarget.XSD);\n XSDModel xsdModel = (XSDModel)xsdCompiler.compile(ontoModel);\n \n //convert from semantic to guvnor model\n WorkingSetConfigData workingSetConfigData = this.convertSemanticWorkingSetConfigData(semanticWorkingSet);\n \n //create a second Working-Set for the Configuration (Cohort) Facts\n WorkingSetConfigData cohortWorkingSetConfigData = this.convertSemanticWorkingSetConfigData(\"Configuration Facts\", semanticWorkingSet);\n \n //create categories from working-set data\n this.createCategoryTreeFromWorkingSet(workingSetConfigData);\n \n //create the Jar Model\n this.createJarModelAsset(pkg, jarBytes);\n \n //create the working-set assets\n this.createWSAsset(pkg, workingSetConfigData);\n this.createWSAsset(pkg, cohortWorkingSetConfigData);\n \n //store the fact type drl as a generic resource\n this.storeFactTypeDRL(pkg, drlModel);\n \n //create and store the Fact Type Descriptor\n this.createFactTypeDescriptor(pkg, xsdModel);\n }",
"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 interface HdbSequenceFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n HdbSequenceFactory eINSTANCE = com.sap.xsk.models.hdbsequence.hdbSequence.impl.HdbSequenceFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Model</em>'.\n * @generated\n */\n HdbSequenceModel createHdbSequenceModel();\n\n /**\n * Returns a new object of class '<em>List String</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List String</em>'.\n * @generated\n */\n ListString createListString();\n\n /**\n * Returns a new object of class '<em>Elements</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Elements</em>'.\n * @generated\n */\n HdbSequenceElements createHdbSequenceElements();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n HdbSequencePackage getHdbSequencePackage();\n\n}",
"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}",
"@Override\n protected void setup() {\n }",
"@Override\n\tpublic String getSolution() {\n\t\treturn \"Ajouter des composants au circuit\";\n\t}",
"public interface InterparameterDependenciesLanguageFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n InterparameterDependenciesLanguageFactory eINSTANCE = es.us.isa.interparamdep.interparameterDependenciesLanguage.impl.InterparameterDependenciesLanguageFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Model</em>'.\n * @generated\n */\n Model createModel();\n\n /**\n * Returns a new object of class '<em>Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Dependency</em>'.\n * @generated\n */\n Dependency createDependency();\n\n /**\n * Returns a new object of class '<em>Relational Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Relational Dependency</em>'.\n * @generated\n */\n RelationalDependency createRelationalDependency();\n\n /**\n * Returns a new object of class '<em>Arithmetic Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Arithmetic Dependency</em>'.\n * @generated\n */\n ArithmeticDependency createArithmeticDependency();\n\n /**\n * Returns a new object of class '<em>Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operation</em>'.\n * @generated\n */\n Operation createOperation();\n\n /**\n * Returns a new object of class '<em>Operation Continuation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operation Continuation</em>'.\n * @generated\n */\n OperationContinuation createOperationContinuation();\n\n /**\n * Returns a new object of class '<em>Conditional Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Conditional Dependency</em>'.\n * @generated\n */\n ConditionalDependency createConditionalDependency();\n\n /**\n * Returns a new object of class '<em>General Predicate</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>General Predicate</em>'.\n * @generated\n */\n GeneralPredicate createGeneralPredicate();\n\n /**\n * Returns a new object of class '<em>General Clause</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>General Clause</em>'.\n * @generated\n */\n GeneralClause createGeneralClause();\n\n /**\n * Returns a new object of class '<em>General Term</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>General Term</em>'.\n * @generated\n */\n GeneralTerm createGeneralTerm();\n\n /**\n * Returns a new object of class '<em>Param</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Param</em>'.\n * @generated\n */\n Param createParam();\n\n /**\n * Returns a new object of class '<em>Param Value Relation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Param Value Relation</em>'.\n * @generated\n */\n ParamValueRelation createParamValueRelation();\n\n /**\n * Returns a new object of class '<em>General Clause Continuation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>General Clause Continuation</em>'.\n * @generated\n */\n GeneralClauseContinuation createGeneralClauseContinuation();\n\n /**\n * Returns a new object of class '<em>General Predefined Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>General Predefined Dependency</em>'.\n * @generated\n */\n GeneralPredefinedDependency createGeneralPredefinedDependency();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n InterparameterDependenciesLanguagePackage getInterparameterDependenciesLanguagePackage();\n\n}",
"public interface ISimulation \r\n{ \r\n\t/**\r\n\t * Starts the simulation. This includes initializing the simulation,\r\n\t * running it and producing output.\r\n\t */\r\n\tpublic void startSimulation();\r\n\t\r\n\t/**\r\n\t * Initializes the simulation.\r\n\t */\r\n\tpublic void initialize();\r\n\t\r\n\t/**\r\n\t * Executes the events in the queue.\r\n\t */\r\n public void run();\r\n \r\n /**\r\n * Produces output, usually to a file, after the sim is run.\r\n * @return <code>true</code> if successful; <code>false</code> if not.\r\n */\r\n public boolean processOutput();\r\n \r\n}",
"public interface CoreFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tCoreFactory eINSTANCE = IFML.Core.impl.CoreFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Interaction Flow Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Interaction Flow Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tInteractionFlowExpression createInteractionFlowExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>System Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>System Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tSystemEvent createSystemEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Binding</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Binding</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterBinding createParameterBinding();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Action Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Action Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tActionEvent createActionEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainModel createDomainModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Port Definition</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Port Definition</em>'.\r\n\t * @generated\r\n\t */\r\n\tPortDefinition createPortDefinition();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewElement createViewElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Dynamic Behavior</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Dynamic Behavior</em>'.\r\n\t * @generated\r\n\t */\r\n\tDynamicBehavior createDynamicBehavior();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Viewpoint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Viewpoint</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewpoint createViewpoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Flow</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Flow</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataFlow createDataFlow();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Component Part</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Component Part</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewComponentPart createViewComponentPart();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Container</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Container</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewContainer createViewContainer();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Activation Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Activation Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tActivationExpression createActivationExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Interaction Flow Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Interaction Flow Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tInteractionFlowModel createInteractionFlowModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context Dimension</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context Dimension</em>'.\r\n\t * @generated\r\n\t */\r\n\tContextDimension createContextDimension();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLModel createIFMLModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Module Definition</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Module Definition</em>'.\r\n\t * @generated\r\n\t */\r\n\tModuleDefinition createModuleDefinition();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Boolean Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Boolean Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tBooleanExpression createBooleanExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Action</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Action</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLAction createIFMLAction();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Navigation Flow</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Navigation Flow</em>'.\r\n\t * @generated\r\n\t */\r\n\tNavigationFlow createNavigationFlow();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Binding Group</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Binding Group</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterBindingGroup createParameterBindingGroup();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Constraint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Constraint</em>'.\r\n\t * @generated\r\n\t */\r\n\tConstraint createConstraint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Component</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Component</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewComponent createViewComponent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Parameter</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Parameter</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLParameter createIFMLParameter();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Binding</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Binding</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataBinding createDataBinding();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Conditional Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Conditional Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tConditionalExpression createConditionalExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context</em>'.\r\n\t * @generated\r\n\t */\r\n\tContext createContext();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Visualization Attribute</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Visualization Attribute</em>'.\r\n\t * @generated\r\n\t */\r\n\tVisualizationAttribute createVisualizationAttribute();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tEvent createEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Element Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Element Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewElementEvent createViewElementEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Annotation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Annotation</em>'.\r\n\t * @generated\r\n\t */\r\n\tAnnotation createAnnotation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Module Package</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Module Package</em>'.\r\n\t * @generated\r\n\t */\r\n\tModulePackage createModulePackage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Modularization Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Modularization Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tModularizationElement createModularizationElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Module</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Module</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLModule createIFMLModule();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Port</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Port</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLPort createIFMLPort();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Catching Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Catching Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tCatchingEvent createCatchingEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Throwing Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Throwing Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tThrowingEvent createThrowingEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>BPMN Activity Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>BPMN Activity Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBPMNActivityConcept createBPMNActivityConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tContextVariable createContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Simple Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Simple Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tSimpleContextVariable createSimpleContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataContextVariable createDataContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainConcept createDomainConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Feature Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Feature Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tFeatureConcept createFeatureConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Behavior Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Behavior Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBehaviorConcept createBehaviorConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Behavioral Feature Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Behavioral Feature Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBehavioralFeatureConcept createBehavioralFeatureConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Behavior</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Behavior</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLBehavior createUMLBehavior();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Behavioral Feature</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Behavioral Feature</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLBehavioralFeature createUMLBehavioralFeature();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Domain Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Domain Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLDomainConcept createUMLDomainConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Structural Feature</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Structural Feature</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLStructuralFeature createUMLStructuralFeature();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Activity Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Activity Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tActivityConcept createActivityConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainElement createDomainElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Named Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Named Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLNamedElement createIFMLNamedElement();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tCorePackage getCorePackage();\r\n\r\n}"
]
| [
"0.64833033",
"0.6099944",
"0.59327555",
"0.5919019",
"0.5766645",
"0.5756302",
"0.5748928",
"0.57477957",
"0.5744523",
"0.57098275",
"0.5700612",
"0.5695519",
"0.56921643",
"0.56879455",
"0.56733",
"0.5673278",
"0.5667437",
"0.5666392",
"0.56584585",
"0.55912817",
"0.5556564",
"0.55517524",
"0.55506796",
"0.55450124",
"0.55407625",
"0.5519219",
"0.5507813",
"0.54570764",
"0.545425",
"0.5441902",
"0.5435544",
"0.54194754",
"0.5417783",
"0.5415737",
"0.541489",
"0.54137856",
"0.5409039",
"0.5403045",
"0.5388489",
"0.5382681",
"0.53760177",
"0.5371737",
"0.53713846",
"0.53688943",
"0.53672504",
"0.53559834",
"0.53494084",
"0.5338622",
"0.5325642",
"0.53224665",
"0.53182226",
"0.5316064",
"0.531368",
"0.5309259",
"0.5307652",
"0.53048515",
"0.5299138",
"0.52952164",
"0.52935946",
"0.5291853",
"0.5291262",
"0.5291082",
"0.5288173",
"0.5284057",
"0.52728015",
"0.52710336",
"0.527045",
"0.5269695",
"0.5260216",
"0.525323",
"0.52526605",
"0.5250917",
"0.5250208",
"0.5246554",
"0.5246554",
"0.5245876",
"0.5244771",
"0.5243849",
"0.5242905",
"0.5242757",
"0.52388513",
"0.5236363",
"0.5230946",
"0.5228498",
"0.5221409",
"0.52213013",
"0.52209836",
"0.5220126",
"0.5213918",
"0.5212808",
"0.52053803",
"0.5205359",
"0.5204932",
"0.5203313",
"0.52021027",
"0.5199276",
"0.51973915",
"0.51924044",
"0.51918364",
"0.51902866",
"0.51901746"
]
| 0.0 | -1 |
Initialize your data structure here. | public 用栈实现队列() {
stack1 = new LinkedList<>();
stack2 = new LinkedList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n }",
"private void initData() {\n\t}",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\n\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}",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"private void InitData() {\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"private void initData(){\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"public InitialData(){}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"protected @Override\r\n abstract void initData();",
"private void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"public void initialize() {\n // empty for now\n }",
"void initData(){\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void initData(){\r\n \r\n }",
"public void initialize()\n {\n }",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void init() {\n \n }",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"public void init() {\n\t\t}",
"public void InitData() {\n }",
"abstract void initializeNeededData();",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private RandomData() {\n initFields();\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private TigerData() {\n initFields();\n }",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"private void initData() {\n requestServerToGetInformation();\n }",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"private void initValues() {\n \n }",
"private void init() {\n }",
"public void initialize() {\n grow(0);\n }",
"public void init() {\r\n\r\n\t}",
"private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"protected void initialize() {\n \t\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}",
"public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }",
"private void initialize() {\n }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"private void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void initialize() {\n // TODO\n }",
"public void initialize() {\r\n }",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"public void init() {\n\t\t\n\t}",
"public void init() {\n\t\n\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"private void initialize() {\n\t\t\n\t}",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }",
"@Override\r\n\tpublic void init() {}",
"public void init() {\n\t\t// Read the data text file and load up the local database\n\t\tinitData();\n\n\t\t// Create the labels and the textbox\n\t\taddNameLabel();\n\t\taddNameBox();\n\t\taddGraphButton();\n\t\taddClearButton();\n\n\t\t// Set up the graph object\n\t\tgraph = new NameSurferGraph();\n\t\tadd(graph);\n\n\t}",
"private void initialData() {\n\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"public mainData() {\n }",
"private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }",
"public void init() {\n initComponents();\n initData();\n }",
"public void init() {\n\t}"
]
| [
"0.79946685",
"0.7973242",
"0.7808862",
"0.77763873",
"0.77763873",
"0.7643394",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.75553316",
"0.7543321",
"0.7543321",
"0.75426376",
"0.75426376",
"0.75426376",
"0.7532583",
"0.75228804",
"0.75228804",
"0.7515626",
"0.7494068",
"0.7454065",
"0.7388256",
"0.7380365",
"0.7328254",
"0.7311082",
"0.7256176",
"0.7242837",
"0.7242837",
"0.720293",
"0.7202036",
"0.7164401",
"0.7144378",
"0.71355236",
"0.7132754",
"0.7131076",
"0.7101955",
"0.7098935",
"0.70951265",
"0.70578545",
"0.7055706",
"0.70423454",
"0.7021184",
"0.70061564",
"0.6987191",
"0.6979681",
"0.6960125",
"0.6946316",
"0.69393814",
"0.6938019",
"0.6937645",
"0.6935085",
"0.6933533",
"0.692056",
"0.69171643",
"0.6911375",
"0.6903781",
"0.68829435",
"0.6881986",
"0.6879309",
"0.68750894",
"0.6868541",
"0.6867774",
"0.6852462",
"0.6851922",
"0.68477225",
"0.68477225",
"0.68477225",
"0.68477225",
"0.6846597",
"0.6818907",
"0.6808544",
"0.6805373",
"0.6791477",
"0.6787723",
"0.6781544",
"0.6781544",
"0.6781544",
"0.67674476",
"0.676184",
"0.67618203",
"0.67537767",
"0.67537767",
"0.67537767",
"0.6750694",
"0.67330045",
"0.67218685",
"0.6721014",
"0.67197996",
"0.67170006",
"0.67124057",
"0.6708111",
"0.66997004",
"0.66991216",
"0.6692312",
"0.6687212",
"0.66789055",
"0.6668848",
"0.66666573"
]
| 0.0 | -1 |
Push element x to the back of queue. | public void push(int x) {
stack1.push(x);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push(int x) {\n queue.addLast(x);\n }",
"public void push(int x) {\n queue.addLast(x);\n }",
"public void push(int x) {\n if (!reverseQueue.isEmpty()) {\n normalQueue.offer(reverseQueue.poll());\n }\n normalQueue.offer(x);\n }",
"public void push(int x) {\n queue.add(x);\n for (int i = 0; i < queue.size()-1; i++) {\n queue.add(queue.poll());\n }\n }",
"public void push(int x) {\n int n = queue.size();\n queue.offer(x);\n for (int i = 0; i < n; i++) {\n queue.offer(queue.poll());\n }\n }",
"public void push(int x) {\n\t int size=q.size();\n\t q.offer(x);\n\t for(int i=0;i<size;i++){\n\t q.offer(q.poll());\n\t }\n\t \n\t }",
"public void push(int x) {\n queue.offer(x);\n }",
"public void push(int x) {\n q.add(x);\n for (int i = 0; i < q.size() - 1; ++i) {\n q.add(q.poll());\n }\n }",
"public void push(int x) {\n while (!forReverse.isEmpty()) {\n queue.add(forReverse.poll());\n }\n queue.add(x);\n }",
"public void push(int x) {\n Queue<Integer> tmp = new LinkedList<>();\n while (!queue.isEmpty()) {\n tmp.add(queue.remove());\n }\n queue.add(x);\n \n while (!tmp.isEmpty()) {\n queue.add(tmp.remove());\n }\n }",
"public void push(int x) {\n q.offer(x);\n }",
"public void push(int x) {\n // 第一步先 push\n queue.offer(x);\n // 第二步把前面的变量重新倒腾一遍\n // 这一部分代码很关键,在树的层序遍历中也用到了\n int size = queue.size() - 1;\n for (int i = 0; i < size; i++) {\n queue.offer(queue.poll());\n }\n }",
"public void push(int x) {\n Integer elem = x;\n queue.offer(elem);\n topElem = elem;\n }",
"public void push(int x) {\n q1.push(x);\n if (q2.size() > 0){\n q2.remove();\n }\n }",
"public void push(int x) {\r\n this.queueMain.offer(x);\r\n }",
"public void push(int x) {\n one.add(x);\n for(int i=0;i<one.size()-1;i++)\n {\n one.add(one.poll());\n }\n \n }",
"public void push(int x) {\n queue.add(x);\n }",
"public void push(int x) {\n queue.add(x);\n }",
"public void push(int x) {\n queue.push(x);\n }",
"public void push(int x) {\n q1.add(x);\n int n = q1.size();\n for (int i = 1; i < n; i++) {\n q1.add(q1.poll());\n }\n }",
"public void push(int x) {\n // for pop(), so prepare\n // 要想 pop 省事 push到 queue tail 的 x 要 想办法放到队列第一位\n // how 只要不空 移到另外一个 放好 x 再移回来\n while (!One.isEmpty()) {\n Two.add(One.poll());\n }\n One.add(x);\n while (!Two.isEmpty()) {\n One.add(Two.poll());\n }\n }",
"public void push(int x) {\n queue2.offer(x);\n while (!queue1.isEmpty()) {\n queue2.offer(queue1.poll());\n }\n Queue<Integer> temp = queue1;\n queue1 = queue2;\n queue2 = temp;\n\n\n }",
"public void push(int x) {\n \n q2.offer(x);\n \n while(!q1.isEmpty()) {\n q2.offer(q1.poll());\n }\n \n Queue tmp = q1;\n q1 = q2;\n q2 = tmp;\n \n }",
"public void push(int x) {\n if (queue1.isEmpty() && queue2.isEmpty()){\n queue1.offer(x);\n }else {\n if (!queue1.isEmpty()){\n queue1.offer(x);\n }\n if (!queue2.isEmpty()){\n queue2.offer(x);\n }\n }\n }",
"public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }",
"public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }",
"public void push(int x) {\n temp.push(x);\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }",
"public void push(int x) {\n if(q1.isEmpty()) {\n q1.add(x);\n while(q2.size() > 0) {\n q1.add(q2.poll());\n }\n } else {\n q2.add(x);\n while(q1.size() > 0){\n q2.add(q1.poll());\n }\n }\n }",
"public void push(int x) {\n rearStack.push(x);\n }",
"public void push(int x) {\n if(!queueA.isEmpty()){\n queueA.add(x);\n }else if(!queueB.isEmpty()){\n queueB.add(x);\n }else{\n queueA.add(x);\n }\n }",
"public void push(int x) {\n if(q1.isEmpty()) {\n q1.add(x);\n while(q2.size() > 0) {\n q1.add(q2.poll());\n }\n }\n else {\n q2.add(x);\n while(q1.size() > 0) {\n q2.add(q1.poll());\n }\n }\n }",
"public void push(int x) {\n // Write your code here\n if (queue1.isEmpty() && queue2.isEmpty()) {\n queue1.offer(x);\n } else if (!queue1.isEmpty()) {\n queue1.offer(x);\n } else {\n queue2.offer(x);\n }\n }",
"public void push(int x) {\n\t\tif (size() == capacity()) {\n\t\t\tdoubleSize();\n\t\t}\n\t\tarr[end] = x;\n\t\t++end;\n\t}",
"public void push(int x) { //全部放到第一个\n temp1.push(x);\n }",
"public void push(int x) {\n helper.add(x);\n helper.addAll(objects);\n\n tmp = objects;\n tmp.clear();\n objects = helper;\n helper = tmp;\n }",
"public void push(T x) {\n\t\tl.push(x);\n\t}",
"static void enQueue(Queue q, int x) {\r\n push(q.stack1, x);\r\n }",
"public void push(int x) {\n push.push(x);\n }",
"public void push(int x) {\n inSt.push(x);\n\n }",
"public void push(int x) {\n\n if (list.isEmpty()) {\n head = x;\n }\n\n list2.add(x);\n while (!(list.isEmpty())) {\n list2.add(list.poll());\n }\n\n while (!(list2.isEmpty())) {\n list.add(list2.poll());\n }\n\n\n }",
"public void push(int x) {\n \tint size = s2.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts.push(s2.pop());\n \t}\n \ts.push(x);\n }",
"public void push(int x) {\n\t\tlist.add(x);\n\t}",
"public void push(int x) {\n \tlist.add(x);\n }",
"public void push(T x);",
"public void push(int x) {\n data.add(x);\n }",
"@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}",
"public void push(int x) {\n left.push(x);\n }",
"public void push(int x) {\n Node node = new Node(x);\n top.next = node;\n node.pre = top;\n top = node;\n size++;\n }",
"@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}",
"public void push(int x) {\n\t if(first == null){\n\t first = x;\n\t }\n\t s.push(x);\n\t}",
"public void push(int x) {\n\t\tinput.push(x);\n\t}",
"public static void pushQueue(MyQueue q, int x) {\n push(q.stack1, x);\n }",
"public void push(int x) {\n if (storeStack.isEmpty()) {\n storeStack.push(x);\n return;\n }\n\n int[] ints = new int[storeStack.size()];\n int i =0;\n while (!storeStack.isEmpty()) {\n ints[i++] = storeStack.pop();\n }\n storeStack.push(x);\n for (int i1 = ints.length - 1; i1 >= 0; i1--) {\n storeStack.push(ints[i1]);\n\n }\n }",
"public void push(E x) {\n\t\t\n\t\taddBefore(mHead.next, x);\n\n\t\tmSize++;\n\t\tmodCount++;\n\t}",
"public void push(int x) {\n /**\n * 将otherStack中所有元素还原到stack中后在栈顶加入新元素\n */\n while (!otherStack.isEmpty()) {\n stack.push(otherStack.pop());\n }\n stack.push(x);\n }",
"@Override\n public void insertBack(Item x) {\n if (size == items.length) {\n //dynamic array\n //resize array\n resize(size * RFACTOR);\n }\n items[size] = x;\n size += 1;\n }",
"public void insert(int x)\n\t{\n//\t\treturns if queue is full\n\t\tif(isFull())\n\t\t{\n\t\t\tSystem.out.println(\"Queue Overflow\\n\");\n\t\t\treturn;\n\t\t}\n\t\tif(front==-1)\n\t\t\tfront=0;\n//\t\tif rear = last index of array\n\t\tif(rear==queueArray.length-1)\n\t\t\trear=0;\n\t\telse\n//\t\t\tincrements rear\n\t\t\trear=rear+1;\n//\t\tinserts new element in rear of array\n\t\tqueueArray[rear]=x;\n\t}",
"void push(int x) {\n\t\tif (stack.size() == 0) {\n\t\t\tstack.push(x);\n\t\t\tminEle = x;\n\t\t} else if (x >= minEle) {\n\t\t\tstack.push(x);\n\t\t} else if (x < minEle) {\n\t\t\t// Push something smaller than original value\n\t\t\t// At any time when we pop , we will see if the value\n\t\t\t// of the peek is less then min or not\n\t\t\tstack.push(2 * x - minEle);\n\t\t\tminEle = x;\n\t\t}\n\t}",
"public void enqueue(AnyType x) {\n\t\tNode<AnyType> newNode = new Node<AnyType>(x, null);\n\t\tback.next = newNode;\n\t\tback = newNode;\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}",
"public void push(int x) {\n load();\n stack.push(x);\n unload();\n }",
"void push(int x) \n\t{ \n\t\tif(isEmpty() == true) \n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tmin.push(x); \n\t\t} \n\t\telse\n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tint y = min.pop(); \n\t\t\tmin.push(y); \n\t\t\tif(x < y) \n\t\t\t\tmin.push(x); \n\t\t\telse\n\t\t\t\tmin.push(y); \n\t\t} \n\t}",
"public void enqueue(T x) {\n //Enqueue the item. Don't forget to increase fillCount and update last.\n if (isFull()) {\n throw new RuntimeException(\"Ring Buffer Overflow\");\n }\n rb[last] = x;\n fillCount += 1;\n last = (last + 1) % capacity;\n }",
"void push(T x);",
"public void push(ExParValue x) {\r\n\t\t// System.out.println(\"ExPar.push() currently on top \" +\r\n\t\t// value.toString() + \" pushing \" + x.toString());\r\n\t\tExParValue v = x.isUndefined() ? (ExParValue) value.clone()\r\n\t\t\t\t: (ExParValue) x.clone();\r\n\t\tv.next = value;\r\n\t\tvalue = v;\r\n\t\t// System.out.println(\"ExPar.push() New value: \" + value);\r\n\t}",
"void enqueue(int x)\n\t{\n\t\tif(isFull())\n\t\t{\n\t\t\tSystem.out.println(\"Queue is full!\");\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(isEmpty())\n\t\t\t\tfront++;\n\t\t\tqueue[++rear] = x;\n\t\t}\n\t}",
"public void push(int x) {\n storeStack.push(x);\n }",
"public void push(int x) {\n if(afterRotate){\n rotate();\n afterRotate = false;\n }\n stack.push(x);\n }",
"void push(Integer x) {\n if (s.isEmpty()) {\n minEle = x;\n s.push(x);\n System.out.println(\"Number Inserted: \" + x);\n return;\n }\n // if new number is less than original minEle\n if (x < minEle) {\n s.push(2 * x - minEle);\n minEle = x;\n } else {\n s.push(x);\n }\n System.out.println(\"Number Inserted: \" + x);\n }",
"@Override\n public void enqueue(T x) {\n if(fillCount==Buffer_num){\n throw new RuntimeException(\"Ring buffer overflow\");\n }\n rb[last] = x;\n last = adjust_L_ring_position(last);\n fillCount = fillCount+1;\n return;\n }",
"public void push(int x) {\r\n inStack.push(x);\r\n }",
"public void push(double x) \n {\n if (top == s.length) \n {\n \tthrow new IllegalArgumentException(\"full stack!\");\n }\n \n \n else\n {\n s[++top] = x;\n \n } \n }",
"public void push(int x) {\n this.stack1.add(x);\n }",
"public void push(int x) {\n s1.push(x);\n }",
"public void push(int x) {\r\n Stack<Integer> newStack = new Stack<>();\r\n newStack.push(x);\r\n\r\n Stack<Integer> tmp = new Stack<>();\r\n while (!this.stack.isEmpty()) {\r\n tmp.push(this.stack.pop());\r\n }\r\n\r\n while (!tmp.isEmpty()) {\r\n newStack.push(tmp.pop());\r\n }\r\n\r\n\r\n this.stack = newStack;\r\n }",
"void push(Integer x) {\n\n\t\tif (isEmpty()) {\n\t\t\ttop = new Node(x);\n\t\t\tmid = top;\n\t\t\ttotalNodes++;\n\t\t} else {\n\t\t\tNode n = new Node(x);\n\t\t\tn.next = top;\n\t\t\ttop.prev = n;\n\t\t\ttop = n;\n\t\t\ttotalNodes++;\n\t\t\tif (totalNodes % 2 != 0) {\n\t\t\t\tmid = mid.prev;\n\t\t\t}\n\t\t}\n\t}",
"public void push(int x) {\n if (isIn) {\n stackIn.push(x);\n } else {\n while (!stackOut.empty()) {\n stackIn.push(stackOut.pop());\n }\n stackIn.push(x);\n isIn = true;\n }\n\n }",
"public void push(int x) {\n s1.push(x);\n }",
"public void push(int x) {\n s1.push(x);\n }",
"public void push(int x) {\n s1.push(x);\n }",
"public void push(int x) {\n stack.add(x);\n }",
"public void push(int x) {\n\t\tNode t = new Node();\n\t\tt.data = x;\n\t\tt.next = top;\n\t\ttop = t;\n\t}",
"@Override\n\tpublic void incrementPop(int x) {\n\t\t\n\t}",
"void push(int element);",
"public void push(T x)\n\t{\n\t\t// If the head is null, set the head equal\n\t\t// to the new node.\n\t\tif(head == null)\n\t\t\thead = new Node<T>(x);\n\t\telse\n\t\t{\n\t\t\t// Loop through the list and add the new node\n\t\t\t// on to the back of the list.\n\t\t\tNode<T> curr = head;\n\t\t\twhile(curr.getNext() != null)\n\t\t\t\tcurr = curr.getNext();\n\n\t\t\tNode<T> last = new Node<T>(x);\n\t\t\tcurr.setNext(last);\n\t\t}\t\n\t}",
"public void uncheckedPushBack(IClause c) {\n back++;\n if (back >= tab.length)\n back = 0;\n tab[back] = c;\n\n assert back + 1 != front\n && (front != 0 || back != tab.length - 1) : \"Deque is full !\";\n }",
"public void push(int x) {\n pushStack.add(x);\n }",
"public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }",
"public void push(E value) {\n list.addLast(value);\n index++;\n }",
"public void enqueue(Object value)\n {\n queue.insertLast(value);\n }",
"public void push(int x) {\n if (head == null) {\n head = new Node1(x, x);\n } else {\n head = new Node1(x, Math.min(x, head.min), head);\n }\n }",
"public void push(int x) {\n Stack<Integer> tmp = new Stack<>();\n while(!s.isEmpty()) {\n tmp.push(s.pop());\n }\n tmp.push(x);\n while(!tmp.isEmpty()) {\n s.push(tmp.pop());\n }\n }",
"public void push(int x) {\n\t\tstack.push(x);\n\t}",
"public void pop() {\n move();\n reverseQueue.poll();\n }",
"@Override\n public Object enqueue(Object x) {\n if (!isFull() && x != null){ // Pré-condição\n if (++tail >= MAX){\n tail = 0; // MAX-1 é a ultima posição do vetor\n }\n \n if (head == -1){\n head = tail;\n }\n \n memo[tail] = x;\n total++;\n return x;\n }\n else{ // Não pode inserir elemento nulo (x == null)\n return null; // Ou se a FILA estiver cheia\n }\n }",
"public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }",
"public void push(int x) {\n if(x <= min){\n stack.push(min);\n min=x;\n }\n stack.push(x);\n }",
"public void push(int x) {\n if (storeStack.isEmpty()) {\n storeStack.push(x);\n return;\n }\n\n Stack<Integer> assistStack = new Stack<>();\n while (!storeStack.isEmpty()) {\n assistStack.push(storeStack.pop());\n }\n assistStack.push(x);\n while (!assistStack.isEmpty()) {\n storeStack.push(assistStack.pop());\n }\n }",
"public void push(int x) {\n stk1.push(x);\n }"
]
| [
"0.82624036",
"0.8259673",
"0.81935894",
"0.81571823",
"0.80487853",
"0.8009802",
"0.7990561",
"0.79842633",
"0.79804295",
"0.7975267",
"0.7919498",
"0.78962463",
"0.7856843",
"0.78444326",
"0.7841012",
"0.77275115",
"0.7722426",
"0.7722426",
"0.76359296",
"0.76308316",
"0.7613451",
"0.7593293",
"0.7580426",
"0.7526367",
"0.7500378",
"0.7500378",
"0.7471206",
"0.74355227",
"0.7423393",
"0.7411367",
"0.73738754",
"0.73693335",
"0.7356771",
"0.73520994",
"0.72848165",
"0.72730684",
"0.72014064",
"0.71783143",
"0.71159905",
"0.7084847",
"0.70662844",
"0.69853604",
"0.6980971",
"0.69796485",
"0.69779855",
"0.6962277",
"0.69543",
"0.6942443",
"0.6935219",
"0.69181216",
"0.6898908",
"0.68950903",
"0.6879799",
"0.6856291",
"0.6820406",
"0.68158275",
"0.6796318",
"0.6776699",
"0.6775979",
"0.6746227",
"0.674423",
"0.6739258",
"0.6725424",
"0.6715741",
"0.6676491",
"0.6666506",
"0.66493016",
"0.66318727",
"0.6620178",
"0.65975296",
"0.65939325",
"0.6592974",
"0.6589431",
"0.65864205",
"0.6579515",
"0.65776247",
"0.657313",
"0.6567979",
"0.65448636",
"0.65409696",
"0.65409696",
"0.65409696",
"0.6540937",
"0.65357685",
"0.6530563",
"0.6527506",
"0.6507796",
"0.64867747",
"0.64852667",
"0.64778817",
"0.6466511",
"0.6462241",
"0.6458599",
"0.6457872",
"0.6450086",
"0.64464265",
"0.64434254",
"0.6430324",
"0.642537",
"0.64232147",
"0.6417516"
]
| 0.0 | -1 |
Removes the element from in front of queue and returns that element. | public int pop() {
peek();
return stack2.pop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }",
"public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }",
"public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }",
"public Object dequeue()\n {\n return queue.removeFirst();\n }",
"public E dequeue() {\n\t\treturn list.removeFirst();\n\t}",
"@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }",
"public T poll() {\n if (size == 0) {\n return null;\n }\n\n // set returned value to queue[0]\n T value = (T) array[0];\n\n // decrease size - we are removing element\n size--;\n\n // move queue 1 place left\n System.arraycopy(array, 1, array, 0, size);\n\n // clear last element\n array[size] = null;\n\n return value;\n }",
"public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }",
"public Country removeFront() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tfront.previous = null;\n\t\t\t\ttemp = front.data;\n\t\t\t\tfront = front.next;\n\t\t\t} else {\n\t\t\t\tfront = end = null;\n\t\t\t\ttemp = front.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}",
"@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}",
"Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }",
"public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }",
"public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }",
"private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }",
"public E dequeue() {\n return pop();\n }",
"T getFront() throws EmptyQueueException;",
"public T removeFromFront() {\n DoublyLinkedListNode<T> temp = head;\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, so there\"\n + \" is nothing to get.\");\n } else {\n if (head == tail) {\n head = tail;\n tail = null;\n return temp.getData();\n } else {\n head = head.getNext();\n head.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n }\n\n\n }",
"public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}",
"public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}",
"public E dequeue() {\n if (size == 0){\n return null;\n }\n\n\n E result = (E) queue[0];\n queue[0] = null;\n --size;\n\n if (size != 0){\n shift();\n }\n return result;\n }",
"public synchronized Object dequeue() throws EmptyListException {\r\n return removeFromFront();\r\n }",
"public static Object dequeue() {\t \n if(queue.isEmpty()) {\n System.out.println(\"The queue is already empty. No element can be removed from the queue.\"); \n return -1;\n }\n return queue.removeFirst();\n }",
"public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }",
"public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}",
"public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }",
"public T front() throws EmptyQueueException;",
"public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }",
"public int dequeueFront();",
"public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }",
"public Object dequeue(){\r\n return super.remove(size()-1);\r\n }",
"public Object todequeue() {\n\t\tif(rear == 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject to_return = arr[front];\n\t\t\tfront++;\n\t\t\tsize--;\n\t\t\treturn to_return;\n\t\t}\n\t}",
"public E poll() {\n\t\twhile (true) {\n\t\t\tlong f = front.get();\n\t\t\tint i = (int)(f % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did front change while we were reading x?\n\t\t\tif (f != front.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue empty?\n\t\t\tif (f == rear.get())\n\t\t\t\treturn null; //Don't retry; fail the poll.\n\n\t\t\tif (x != null) {//Is the front nonempty?\n\t\t\t\tif (elements.compareAndSet(i, x, null)) {//Try to remove an element.\n\t\t\t\t\t//Try to increment front. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further removals, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\tfront.compareAndSet(f, f+1);\n\t\t\t\t\treturn x;\n\t\t\t\t}\n\t\t\t} else //front empty. Try to help other threads.\n\t\t\t\tfront.compareAndSet(f, f+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}",
"public T dequeue(){\n T front = getFront(); // might throw exception, assumes firstNode != null\n firstNode = firstNode.getNext();\n\n if (firstNode == null){\n lastNode = null;\n } // end if\n return front;\n }",
"public E removeFirst() {\n return pop();\n }",
"public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }",
"public T dequeue()\n\t{\n\t\tNode<T> eliminado = head;\n\t\thead = head.getNext();\n\t\tif(head == null)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tsize--;\n\t\treturn eliminado.getElement();\n\t}",
"public T dequeue() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to remove.\");\n } else if (front == backingArray.length - 1) {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = 0;\n size--;\n return data;\n } else {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = temp + 1;\n size--;\n return data;\n }\n }",
"private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }",
"@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }",
"private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }",
"public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}",
"public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }",
"T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }",
"public int pop() {\n int size=queue.size();\n for (int i = 0; i <size-1 ; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n return queue.poll();\n }",
"public int dequeue() {\n\t\tif (isEmpty()) throw new IllegalStateException(\"\\nQueue is empty!\\n\");\n\t\tint removedItem = bq[head];\n\t\tif (head == bq.length - 1) head = 0; // wraparound\n\t\telse head++;\n\t\tsize--;\n\t\treturn removedItem;\t\n\t}",
"public T removeFromBack() {\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, \"\n + \"so there is nothing to get.\");\n }\n if (head == tail) {\n head.setNext(null);\n head.setPrevious(null);\n tail.setNext(null);\n tail.setPrevious(null);\n size -= 1;\n return tail.getData();\n } else {\n T temp = tail.getData();\n tail = tail.getPrevious();\n tail.setNext(null);\n size -= 1;\n return temp;\n\n }\n }",
"public String pop() {\n if (queue.size() == 0) {\n return null;\n }\n\n String result = top();\n queue.remove(0);\n return result;\n }",
"@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }",
"public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}",
"public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}",
"public Object peek()\n {\n if(this.isEmpty()){throw new QueueUnderflowException();}\n return front.getData();\n }",
"public T pop() {\r\n\t\tT ele = top.ele;\r\n\t\ttop = top.next;\r\n\t\tsize--;\r\n\t\t\r\n\t\treturn ele;\r\n\t}",
"public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }",
"public E dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\t\r\n\t\tif (size() != 1) {\r\n\t\t\t//Node p = first; \r\n\t\t\tE item = first.item;\r\n\t\t\tremove(0);\r\n\t\t\t//first = p.next;\r\n\t\t\t//first.prev = null;\r\n\t\t\treturn item;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tE e = last.item;\r\n\t\t\tremove(last.item);\r\n\n\t\t\treturn e;\r\n\t\t}\n\t}",
"public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}",
"public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }",
"@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}",
"public int pop() {\n int size = queue.size();\n while (size > 2) {\n queue.offer(queue.poll());\n size--;\n }\n topElem = queue.peek();\n queue.offer(queue.poll());\n return queue.poll();\n }",
"public T dequeue() {\n if (first != null) {\n size--;\n T data = first.data;\n first = first.next;\n\n if (first == null) {\n last = null; // avoid memory leak by removing reference\n }\n\n return data;\n }\n return null;\n }",
"@Override\r\n\tpublic T dequeue() {\r\n\t\tT element;\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new AssertionError(\"Queue is empty.\");\r\n\t\telement = arr[front].getData();\r\n\t\tif (front == rear) {\r\n\t\t\tfront = rear = -1;\r\n\t\t} else {\r\n\t\t\tfront++;\r\n\t\t}\r\n\t\treturn element;\r\n\t}",
"public void pop() {\n queue.remove();\n }",
"public T pop() {\r\n T o = get(size() - 1);\r\n remove(size() - 1);\r\n return o;\r\n\t}",
"@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }",
"public void pop() {\n queue.remove(0);\n }",
"public E pop() {\n E value = head.prev.data;\n head.prev.delete();\n if (size > 0) size--;\n return value;\n }",
"public Object dequeue() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Cannot dequeue.\");\n\t\t}\n\t\t\n\t\t// Check: one element (tail = head)\n\t\t// If so, set tail to null\n\t\tif (tail == head) tail = null;\n\t\t\n\t\t// Save head's data to return\n\t\tObject first = head.data;\n\t\t\n\t\t// Remove head from queue and re-assign head to head.next\n\t\thead = head.next;\n\t\t\n\t\treturn first;\n\t}",
"@Override\n\tpublic E dequeue() {\n\t\tif (! isEmpty()) {\n\t\t\tNode temp = first;\n\t\t\tE e = temp.element;\n\t\t\tfirst = temp.next;\n\t\t\t\n\t\t\tif (temp == last)\n\t\t\t\tlast = null;\n\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public int pop() {\n int size = queue.size();\n for (int i = 0; i < size - 1; i++) {\n Integer poll = queue.poll();\n queue.offer(poll);\n }\n return queue.poll();\n }",
"public Item peek(){\n if(isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n return first.item;\n }",
"private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }",
"T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }",
"public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}",
"public int top() {\n int size=queue.size();\n for (int i = 0; i < size-1; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n int top=queue.poll();\n queue.add(top);\n return top;\n }",
"public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}",
"public E pop() {\n if (isEmpty()) {\n return null;\n } else {\n E e = head.item;\n head = head.next;\n size--;\n return e;\n }\n\n }",
"public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }",
"public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}",
"public int pop() {\r\n if (queue1.size() == 0) {\r\n return -1;\r\n }\r\n int removed = top;\r\n while (queue1.peek() != removed) {\r\n top = queue1.remove();\r\n queue1.add(top);\r\n }\r\n return queue1.remove();\r\n }",
"public T dequeue() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T itemToReturn = rb[first];\n rb[first] = null;\n fillCount -= 1;\n if (isEmpty()) {\n first = 0;\n last = 0;\n return itemToReturn;\n }\n first = (first + 1) % capacity;\n return itemToReturn;\n\n // Dequeue the first item. Don't forget to decrease fillCount and update\n }",
"@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}",
"public T peek() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to peek.\");\n } else {\n return backingArray[front];\n }\n\n }",
"public Object pop() {\n\t\tObject lastElement = peek();\n\t\t\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tcollection.remove(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}",
"public E element() {\n if (size == 0){\n return null;\n }\n return (E)queue[0];\n }",
"public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",
"public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}",
"public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}",
"public Object popFront(){\n\t\tObject data = head.data;\n\t\thead = head.nextNode; \n\t\t--size; \n\t\t\n\t\treturn data; \n\t}",
"public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }",
"public Bottle inputQueueTakeBottle() {\n\t\tsynchronized (inputQueue) {\n\t\t\tif (this.inputQueueSize() != 0) {\n\t\t\t\treturn inputQueue.remove();\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfirstNode = lastNode = null;\n\t\telse\n\t\tfirstNode = firstNode.getNext();\n\n\t\treturn removedItem; //return removed node data\n\t}",
"public Object dequeue() {\n return queue.dequeue();\n }",
"public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public E peek() {\n return (E)queue[0];\n }",
"public T removeFromFront() throws EmptyListException \n\t{\n\t\tif (isEmpty()) // throw exception if List is empty\n\t\t\tthrow new EmptyListException(name);\n\n\t\tT removedItem = firstNode.data; // retrieve data being removed\n\n\t\t// update references firstNode and lastNode\n\t\tif (firstNode == lastNode)\n\t\t\tfirstNode = lastNode = null;\n\t\telse\n\t\t\tfirstNode = firstNode.nextNode;\n\t\tsize--;\n\t\treturn removedItem; // return removed node data\n\t}",
"public E pop() \r\n {\r\n E o = list.get(getSize() - 1);\r\n list.remove(getSize() - 1);\r\n return o;\r\n }",
"public T removeFromFront() throws EmptyListException {\n if(isEmpty())\n throw new EmptyListException(name);\n\n // retrieve data being removed\n T removedItem = firstNode.data;\n\n // update references to firstNode and lastNode\n if(firstNode == lastNode)\n firstNode = lastNode = null;\n else\n firstNode = firstNode.nextNode;\n\n return removedItem;\n }",
"public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = last.item;\n if (size() == 1) {\n first = null;\n last = null;\n }\n else {\n last = last.prev;\n last.next = null;\n\n }\n size--;\n return a;\n\n\n }",
"T dequeue() {\n return contents.removeFromTail();\n }",
"public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }",
"T pop();"
]
| [
"0.7710383",
"0.767744",
"0.7632147",
"0.7572486",
"0.7529685",
"0.75053036",
"0.7495563",
"0.7455531",
"0.74506617",
"0.74362785",
"0.74324703",
"0.74064606",
"0.73923665",
"0.7384324",
"0.73561954",
"0.73264414",
"0.7326095",
"0.7309975",
"0.7303639",
"0.730135",
"0.7294155",
"0.72801495",
"0.7277761",
"0.7276409",
"0.7269046",
"0.72541654",
"0.7239941",
"0.7229922",
"0.7226464",
"0.7217362",
"0.72127223",
"0.71996117",
"0.7189336",
"0.7185299",
"0.7172576",
"0.7163717",
"0.71360683",
"0.71341586",
"0.71307623",
"0.71264774",
"0.71151054",
"0.7101087",
"0.70939714",
"0.70812976",
"0.7078998",
"0.7072731",
"0.7064914",
"0.7062274",
"0.7056434",
"0.7049789",
"0.7043825",
"0.7033107",
"0.70312893",
"0.7026783",
"0.70136446",
"0.7009552",
"0.7000939",
"0.69917154",
"0.69879144",
"0.69820666",
"0.69812226",
"0.69806325",
"0.6979653",
"0.69706416",
"0.69649816",
"0.69531703",
"0.6945529",
"0.6945217",
"0.69445974",
"0.6935868",
"0.6934751",
"0.6932586",
"0.6914438",
"0.6906984",
"0.690267",
"0.69006085",
"0.689157",
"0.68901736",
"0.68838763",
"0.68827915",
"0.68814725",
"0.6880986",
"0.68789774",
"0.68749624",
"0.68744314",
"0.6873475",
"0.68719923",
"0.68709844",
"0.68684214",
"0.6868305",
"0.6864357",
"0.68621033",
"0.6859188",
"0.6856021",
"0.6854612",
"0.6841961",
"0.6837977",
"0.683673",
"0.68360806",
"0.6833891",
"0.6828385"
]
| 0.0 | -1 |
Get the front element. | public int peek() {
if (stack2.size() > 0) {
return stack2.peek();
}
while (!stack1.isEmpty()) {
stack2.push(stack1.pop());
}
return stack2.peek();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getFront() throws Exception {\n\t\tif(data[front]!=null)\n\t\t\n\t\t return data[front];\n\t\treturn null;\n\t}",
"public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }",
"@Override\n\tpublic E getFront() {\n\t\treturn data[front];\n\t}",
"public T getFront();",
"public E front();",
"public AnyType getFront() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.next.data;\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}",
"public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}",
"public T front();",
"public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }",
"E getFront();",
"public E peekFront() {\r\n if (front == rear) {\r\n throw new NoSuchElementException();\r\n } else {\r\n return elem[front];\r\n }\r\n }",
"public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }",
"public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }",
"public E getFront() {\n return head.nextNode.data;\n }",
"public Card front()\n {\n if (firstLink == null)\n return null;\n\n return firstLink.getCard();\n }",
"public int getFront() {\n if (cnt == 0)\n return -1;\n return head.val;\n }",
"@Override\n public T peekFront() {\n if (isEmpty()) {\n return null;\n }\n return head.peekFront();\n }",
"public int getFront() {\n if (head == tail && size == 0)\n return -1;\n else {\n int head_num = elementData[head];//索引当前头指针的指向的位置\n return head_num;\n }\n // return true;\n }",
"public E peekFront();",
"public Node getFront(){\n return this.front;\n }",
"public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }",
"public String front()\n {\n\treturn head.value;\n }",
"public E peek(){\n\t\treturn top.element;\n\t}",
"public int front() {\n return data[first];\n }",
"Object front()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call front() on empty List\");\n\t\t}\n\t\treturn front.data;\n\t}",
"T front() throws RuntimeException;",
"public int Front() {\n if(isEmpty()) return -1;\n return l.get(head);\n }",
"public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return queue[head];\n }",
"public int Front() {\n if (isEmpty())\n return -1;\n return buf[b];\n }",
"public int Front() {\n if (this.count == 0)\n return -1;\n return this.queue[this.headIndex];\n }",
"int front()\n {\n if (isEmpty())\n return Integer.MIN_VALUE;\n return this.array[this.front];\n }",
"public T first() {\n \t\n \tT firstData = (T) this.front.data;\n \t\n \treturn firstData;\n \t\n }",
"public DVDPackage front() {\n\t\treturn queue.peek();\n\t}",
"public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}",
"public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",
"public int Front() {\n if(queue[head] == null){\n return -1;\n }else{\n return queue[head];\n }\n }",
"public int Front() {\n if (count == 0) {\n return -1;\n }\n return array[head];\n }",
"public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }",
"T getFront() throws EmptyQueueException;",
"public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }",
"public int peekFront();",
"public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }",
"public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}",
"public int peekFront() {\n int x = 0;\n if(head == null) {\n return Integer.MIN_VALUE;\n }\n\n return head.val;\n }",
"public T front() throws EmptyQueueException;",
"public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }",
"int getFront()\n {\n // check whether Deque is empty or not \n if (isEmpty())\n {\n return -1 ;\n }\n return arr[front];\n }",
"public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }",
"public int getFront() {\n if(size == 0) return -1;\n \n return head.next.val;\n \n}",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}",
"public IClause front() {\n if (back==front)\n throw new BufferUnderflowException();\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }",
"public E peek() {\n E item;\n try {\n item = element();\n } catch (NoSuchElementException e) {\n return null;\n }\n return item;\n }",
"public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }",
"public E getFirst() {\n return peek();\n }",
"public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return nums[head];\n }",
"public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}",
"public E top() {\n return !isEmpty() ? head.item : null;\n }",
"public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}",
"private Element peekElement() {\r\n return ((Element)this.elements.get(this.elements.size() - 1));\r\n }",
"public T peek()\n {\n if (isEmpty())\n return null;\n \n return first.getData();\n }",
"public T peek() {\n\t\tif (this.l.getHead() != null)\n\t\t\treturn this.l.getHead().getData();\n\t\telse {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public T getFirst() {\n\treturn _front.getCargo();\n }",
"public E getFirst(){\n return head.getNext().getElement();\n }",
"public E peek() {\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn apq.get(1);\n\t}",
"public E peek() \r\n {\r\n return list.get(getSize() - 1);\r\n }",
"public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }",
"public IClause uncheckedFront() {\n assert back!=front : \"Deque is empty\";\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }",
"public Object peek() {\n\t\tcheckIfStackIsEmpty();\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tObject lastElement = collection.get(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}",
"public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }",
"public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}",
"public boolean getFront()\n {\n return m_bFrontLock;\n }",
"public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}",
"public int top() {\n return topElem;\n }",
"public Object firstElement() {\n return _queue.firstElement();\n }",
"public Object firstElement();",
"public T getHead() {\n return get(0);\n }",
"@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}",
"@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}",
"public E peek()\n {\n return arrayList.get(0);\n }",
"@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}",
"public void offerFront(E elem);",
"public T peek() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to peek.\");\n } else {\n return backingArray[front];\n }\n\n }",
"@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}",
"public E top() {\n return head.prev.data;\n }",
"public T peek() {\n return top.getData();\n }",
"public String getFrontName() {\n return frontName;\n }",
"public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}",
"public T peek() {\n\t\treturn top.value;\n\t}",
"public Node3 peek() {\n Node3 response = null;\n if (!isEmpty()) {\n response = new Node3(front.getData());\n }\n return response;\n }",
"public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}",
"public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }",
"public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }",
"T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }",
"public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}",
"public Atom getHead ()\r\n\t{\r\n\t\treturn _head.get(0);\r\n\t}",
"public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }",
"public E peek(){\n return front!=rear?(E) data[(int)((front) & (max_size - 1))]:null;\n }",
"public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}"
]
| [
"0.7787832",
"0.7759961",
"0.7736187",
"0.77095133",
"0.7660213",
"0.7649954",
"0.76229614",
"0.7568303",
"0.7566831",
"0.75497985",
"0.7549047",
"0.754666",
"0.7536814",
"0.75341916",
"0.7465238",
"0.745295",
"0.73273396",
"0.73127115",
"0.73101807",
"0.7300005",
"0.7194966",
"0.7194883",
"0.7153067",
"0.71368796",
"0.71184707",
"0.7110609",
"0.7085337",
"0.70825446",
"0.7073861",
"0.7072785",
"0.7060476",
"0.70425797",
"0.7010408",
"0.70012885",
"0.6997605",
"0.69774175",
"0.69713086",
"0.6961098",
"0.69534004",
"0.6942607",
"0.69195807",
"0.6914419",
"0.6887452",
"0.68207043",
"0.6810449",
"0.6791081",
"0.6789977",
"0.67702335",
"0.67635167",
"0.6753512",
"0.67490953",
"0.6721582",
"0.6711881",
"0.66989833",
"0.6686152",
"0.6676686",
"0.66734445",
"0.66642666",
"0.66191345",
"0.66151613",
"0.6575019",
"0.6539518",
"0.6530716",
"0.6530158",
"0.6521463",
"0.6516655",
"0.65051425",
"0.64810026",
"0.64754975",
"0.64703274",
"0.64606494",
"0.64433044",
"0.644136",
"0.6439282",
"0.6429593",
"0.64269245",
"0.6421461",
"0.6416365",
"0.64085585",
"0.6406356",
"0.6404866",
"0.63966286",
"0.63922864",
"0.6391578",
"0.63696504",
"0.6348975",
"0.6347951",
"0.6340445",
"0.63241905",
"0.632302",
"0.6300748",
"0.629968",
"0.6299047",
"0.6294792",
"0.62896293",
"0.62690496",
"0.62582356",
"0.62562686",
"0.6255965",
"0.62552446",
"0.62451756"
]
| 0.0 | -1 |
Returns whether the queue is empty. | public boolean empty() {
return stack1.isEmpty() && stack2.isEmpty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isEmpty() {\n return this.queue.size() == 0;\n }",
"public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n\t\treturn queue.isEmpty();\n\t}",
"public boolean isEmpty() {\n return queue.isEmpty();\n }",
"boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean isEmpty()\n {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\n return queue.isEmpty();\n }",
"public boolean empty() {\r\n return this.queueMain.isEmpty();\r\n }",
"public boolean isEmpty(){\n\t\tif(queue.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }",
"public boolean isMessageQueueEmpty() {\r\n\t\treturn this.messages.size() == 0;\r\n\t}",
"public static boolean isEmpty() {\n System.out.println();\t \n if(queue.isEmpty()) {\t \n System.out.println(\"The queue is currently empty and has no elements.\");\t \t \t \n }\n else {\n System.out.println(\"The queue is currently not empty.\");\t \t\t \n }\n return queue.isEmpty();\n }",
"@Override\n public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean isEmpty() {\r\n boolean z = false;\r\n if (!isUnconfinedQueueEmpty()) {\r\n return false;\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null && !delayedTaskQueue.isEmpty()) {\r\n return false;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n z = ((LockFreeTaskQueueCore) obj).isEmpty();\r\n }\r\n return z;\r\n }\r\n z = true;\r\n return z;\r\n }",
"public boolean empty() {\n return queue.isEmpty() && forReverse.isEmpty();\n }",
"public boolean queueEmpty() {\r\n\t\tif (vehiclesInQueue.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isEmpty()\r\n\t{\n\t\tif(backIndex<0)\r\n\t\t{\r\n\t\t\tbackIndex=-1;\r\n\t\t\tSystem.out.println(\"Queue is Empty\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean empty() {\n return normalQueue.isEmpty() && reverseQueue.isEmpty();\n }",
"public boolean isEmpty()\r\n {\r\n if(measurementQueue==null) return true;\r\n \r\n return measurementQueue.isEmpty();\r\n }",
"public static boolean isEmpty() {\n\t\treturn resultQueue.isEmpty();\n\t}",
"public boolean isEmpty() {\n return (head == tail) && (queue[head] == null);\n }",
"public boolean empty() {\r\n return queue1.size() == 0;\r\n }",
"public boolean empty() {\r\n return queue1.size() == 0;\r\n }",
"public boolean isQueueEmpty(Queue objQueue){\r\n\t\treturn objQueue.getRare()==-1;\r\n\t}",
"public boolean isFull() {\n int nexttail = (tail + 1 == queue.length) ? 0 : tail + 1;\n return (nexttail == head) && (queue[tail] != null);\n }",
"public boolean empty() {\n return queue1.isEmpty();\n }",
"public boolean empty() {\n return queueA.isEmpty() && queueB.isEmpty();\n }",
"public boolean isEmpty() {\n return qSize == 0;\n }",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"public boolean empty() {\n return q.isEmpty();\n }",
"public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }",
"public boolean isEmpty() { return (dequeSize == 0); }",
"public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}",
"public boolean isEmpty() {\n return (fifoEmpty.getBoolean());\n }",
"public boolean empty() {\n return q.isEmpty();\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}",
"public boolean empty() {\n\t\treturn (size() <= 0);\n\t}",
"public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}",
"public boolean isQueueFull(Queue objQueue){\r\n\t\treturn objQueue.getRare()==objQueue.getArrOueue().length;\r\n\t}",
"public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public synchronized boolean isEmpty() {\r\n return size == 0;\r\n }",
"boolean isEmpty() {\n\t\t\n\t\t// array is empty if no elements can be polled from it\n\t\t// \"canPoll\" flag shows if any elements can be polled from queue\n\t\t// NOT \"canPoll\" means - empty\n\t\t\n\t\treturn !canPoll;\n\t}",
"public boolean isEmpty() {\n\t\tboolean empty = true;\n\n\t\tfor(LinkedList<Passenger> queue : queues) { // loop through each queue to see if its empty.\n\t\t\tif(!queue.isEmpty()){\n\t\t\t\tempty = false;\n\t\t\t}\n \t}\n\t\treturn empty;\n }",
"public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}",
"public boolean empty() {\n return size == 0;\n }",
"public boolean isEmpty()\n {\n return heapSize == 0;\n }",
"public boolean empty() {\n return size <= 0;\n }",
"public boolean isHeapEmpty() {\n\t\treturn this.head == null;\n\t}",
"public boolean empty() {\n return push.isEmpty();\n }",
"public boolean empty() {\n\t if(q.size()==0) return true;\n\t return false;\n\t }",
"public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}",
"public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public boolean isEmpty() {\n return (this.size == 0);\n }",
"public boolean empty()\r\n\t{\r\n\t\treturn currentSize == 0;\r\n\t}",
"public boolean empty() {\r\n return size == 0;\r\n }",
"public boolean empty() {\n return popStack.isEmpty();\n }",
"public boolean isEmpty() {\r\n return (size == 0);\r\n }",
"public boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty()\n {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}",
"public boolean empty() {\n if (queue1.isEmpty() && queue2.isEmpty()){\n return true;\n }\n return false;\n }",
"public boolean isEmpty() {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n return stack.isListEmpty();\n }",
"public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}",
"public final boolean isEmpty() {\n return mSize == 0;\n }",
"public boolean isEmpty() {\n\t return size == 0;\n\t }",
"public boolean isEmpty()\n {\n return stack.isEmpty();\n }",
"public boolean empty() {\r\n return this.stack.isEmpty();\r\n }",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }",
"public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}",
"public boolean isEmpty() {\n return (size == 0);\n\n }",
"public boolean isEmpty()\n {\n return stack.size() == 0;\n }",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }"
]
| [
"0.9061608",
"0.8914194",
"0.8852499",
"0.8852499",
"0.8815682",
"0.8810445",
"0.87997335",
"0.8791669",
"0.8790852",
"0.87563825",
"0.87563825",
"0.87563825",
"0.87563825",
"0.87563825",
"0.87563825",
"0.87563825",
"0.8689962",
"0.8680233",
"0.8680233",
"0.8680233",
"0.8680233",
"0.8680233",
"0.86596245",
"0.8641122",
"0.8511726",
"0.84806776",
"0.84542674",
"0.8385524",
"0.8378889",
"0.8364479",
"0.8346542",
"0.82825845",
"0.82784426",
"0.8268065",
"0.8253015",
"0.8234483",
"0.8184286",
"0.8184286",
"0.81770444",
"0.80846435",
"0.8049837",
"0.8026093",
"0.8011978",
"0.7999786",
"0.79702705",
"0.7955586",
"0.79223824",
"0.79216766",
"0.79200023",
"0.7915594",
"0.7887438",
"0.7869872",
"0.7836723",
"0.7836723",
"0.78320444",
"0.7816653",
"0.7804123",
"0.77974325",
"0.77969646",
"0.7787129",
"0.7770162",
"0.77511984",
"0.7737748",
"0.7727725",
"0.7725545",
"0.7722002",
"0.77216065",
"0.77190435",
"0.77125424",
"0.77112",
"0.7698032",
"0.7694233",
"0.769125",
"0.76807404",
"0.7679825",
"0.76794577",
"0.7677999",
"0.76767534",
"0.7675818",
"0.7675354",
"0.7667826",
"0.7667826",
"0.7664082",
"0.7651609",
"0.7648444",
"0.7648444",
"0.7643296",
"0.7633447",
"0.7617566",
"0.7616757",
"0.76125884",
"0.7610844",
"0.76102734",
"0.76068443",
"0.7596903",
"0.75918573",
"0.75913",
"0.75906634",
"0.75906634",
"0.75906634",
"0.7590607"
]
| 0.0 | -1 |
Called when the properties of the animation node have changed | public void onChanged() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"public void animate()\n\t{\n\t\tanimation.read();\n\t}",
"@Override\n public void animate() {\n }",
"@Override\n public void onAnimationEnd(Animation animation) {\n setVisualState();\n }",
"@Override\n public void propertyChange(java.beans.PropertyChangeEvent ev) {\n fireInAWT(PROP_NODE_CHANGE, null, null);\n }",
"@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\t//changes speed of animation\n\t\tif (e.getSource() == speed) {\n\t\t\ttimer.stop();\n\t\t\ttimer.setDelay(speed.getValue());\n\t\t\tstop.setSelected(true);\n\t\t}\n\t\t//changes # of boxes\n\t\tif (e.getSource() == gridSize) {\n\t\t\ttimer.stop();\n\t\t\tstop.setSelected(true);\n\t\t\tint [][] newGrid = new int [gridSize.getValue()][gridSize.getValue()];\n\t\t\tgridValues = newGrid;\n\t\t\tSetState(-1);\n\t\t\tgenerateValues(source);\n\t\t\tcounter = 0;\n\t\t\tsteps.setText(\"Steps: \" + counter);\n\t\t\trepaint();\n\t\t}\n\t}",
"protected abstract AnimationFX resetNode();",
"@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }",
"protected void PropertyChanged()\r\n { }",
"public abstract void animationStarted();",
"public void notifyMoveAnimationFinished();",
"@Override\n public void setNodeStatesForUpdate(int iNode) {\n }",
"public void propertyChange(PropertyChangeEvent anEvent)\n{\n // Get DeepChangeListener count (just return if zero)\n int deepListenerCount = getListenerCount(DeepChangeListener.class); if(deepListenerCount==0) return;\n \n // If change is fill/stroke, convert property name to \"Fill.xxx\" or \"Stroke.xxx\" for the sake of animation\n if(anEvent.getSource() instanceof RMFill) {\n Object source = anEvent.getSource();\n String prefix = source==getFill()? \"Fill\" : source==getStroke()? \"Stroke\" : null;\n String propertyName = prefix + \".\" + anEvent.getPropertyName();\n anEvent = new PropertyChangeEvent(this, propertyName, anEvent.getOldValue(), anEvent.getNewValue());\n repaint();\n }\n \n // Propagate to this shape's DeepChangeListeners (if present)\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(this, anEvent);\n}",
"@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void attrModified(Attr node, String oldv, String newv) {\n\t\tif (!changing && baseVal != null) {\n\t\t\tbaseVal.invalidate();\n\t\t}\n\t\tfireBaseAttributeListeners();\n\t\tif (!hasAnimVal) {\n\t\t\tfireAnimatedAttributeListeners();\n\t\t}\n\t}",
"@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}",
"void onAnimationStart();",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"public void mazeChanged(Maze maze);",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"public abstract void animationReelFinished();",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"@objid (\"1b87bc09-5e33-11e2-b81d-002564c97630\")\n @Override\n public void propertyChange(final PropertyChangeEvent evt) {\n if (evt.getPropertyName().equals(BackgroundModel.CONTENT)) {\n // Compute the layout offsets based on the nodes size for horizontal layout.\n BackgroundEditPart.HORIZONTAL_LAYOUT_RANK_BASE = GraphNode.WIDTH * 75 / 100;\n BackgroundEditPart.HORIZONTAL_LAYOUT_OFFSET_SPACING = GraphNode.HEIGHT * 175 / 100;\n \n // Compute the layout offsets based on the nodes size for vertical layout.\n BackgroundEditPart.VERTICAL_LAYOUT_RANK_BASE = -GraphNode.HEIGHT * 125 / 100;\n BackgroundEditPart.VERTICAL_LAYOUT_OFFSET_SPACING = GraphNode.WIDTH * 125 / 100;\n \n refreshChildren();\n refreshVisuals();\n }\n \n if (evt.getPropertyName().equals(EDIT_MODE)) {\n refreshVisuals();\n }\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}",
"@Override\n public void onAnimationStart(Animation animation) {\n }",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}",
"void setAnimation(Animation animation) {\n prevHeight = spriteHeight;\n currAnimation = animation;\n spriteWidth = animation.getSpriteWidth();\n spriteHeight = animation.getSpriteHeight();\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}",
"@Override\n protected void animStart() {\n }",
"@Override\n public void onAnimationStart(Animation animation) {\n\n }",
"public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}",
"@Override\n public void onAnimationStart(Animation arg0) {\n \n }",
"@Override\n\tpublic void update(long elapsed_time, LevelData levelData, Rectangle animation_bounds)\n\t{\n\t}",
"public void onChange(Transform transform);",
"@Override\n public void onAnimationStart(Animation animation) {\n\n }",
"@Override\n\t public void update() {\n\t \tif (getNode().getTranslateX() != 0 || getNode().getTranslateY() != 0) {\n\t \t\tsetState(SpriteState.ANIMATION_ACTIVE);\n\t\t \tupdateVelocity();\n\t\t \tgetNode().setTranslateX(getNode().getTranslateX() - getvX());\n\t\t \tgetNode().setTranslateY(getNode().getTranslateY() - getvY());\n\t\t if (getNode().getTranslateX() == 0 && getNode().getTranslateY() == 0) {\n\t\t \t\tsetState(SpriteState.IDLE);\n\t\t }\n\t \t}\n\t \t\n\t getNode().setLayoutX(getxPos());\n\t getNode().setLayoutY(getyPos());\n\t }",
"@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"public void propertyChange(PropertyChangeEvent evt) {\r\n fireStateChanged();\r\n }",
"void animationFinished();",
"public void stateChanged(ChangeEvent e)\n {\n simulation.setSpeed(speedSlider.getValue());\n }",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}",
"public void visualChange();",
"public void onAnimationUpdate(float fraction, T value);",
"public void onAnimationStart(Animation animation) {\n\r\n }",
"public void onAnimationStart(Animation animation) {\n }",
"@Override\n public void onAnimationEnd() {\n }",
"@Override\n\tpublic void setChanged() {\n\t\tthis.changed = true;\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"protected void childrenChanged() {\n\n }",
"public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}",
"@Override\n synchronized public boolean animationHasChanged(Player animationReceiver)\n {\n if(!animation.equals(\"idle1\") && !animation.equals(\"walk\"))\n {\n return super.animationHasChanged(animationReceiver);\n }\n return false;\n }",
"public void stateChanged(ChangeEvent e) {\n\n (model.getInterpol()).setBezierIterationen(((JSlider) e.getSource()).getValue());\n }",
"public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }",
"@Override\n\tpublic void update(float deltaTime) {\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"protected synchronized void setChanged() {\n changed = true;\n }",
"public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}",
"@Override\n public void onAnimationUpdate(ValueAnimator animation) {\n updateFocusLayoutparams();\n }",
"public void structureChanged(GraphEvent e);",
"@Override\n\tpublic void onUpdate(float dt) {\n\t}",
"@Override\n\tpublic boolean update(Animations obj) {\n\t\treturn false;\n\t}"
]
| [
"0.64587015",
"0.61047125",
"0.60299575",
"0.6023029",
"0.6010574",
"0.5994554",
"0.5949204",
"0.588773",
"0.5862012",
"0.58612704",
"0.5842036",
"0.58385676",
"0.5831784",
"0.5807375",
"0.5805848",
"0.5805848",
"0.57840145",
"0.5764582",
"0.57588196",
"0.57573205",
"0.57573205",
"0.57479167",
"0.574076",
"0.57365304",
"0.57326275",
"0.57326275",
"0.57326275",
"0.57326275",
"0.57280046",
"0.57280046",
"0.57280046",
"0.57280046",
"0.57238257",
"0.57172537",
"0.57159036",
"0.5710134",
"0.5710134",
"0.5699012",
"0.5698038",
"0.5698038",
"0.5698038",
"0.56942916",
"0.5693189",
"0.5693041",
"0.56923103",
"0.5682918",
"0.56764245",
"0.56764245",
"0.5668445",
"0.566247",
"0.5660807",
"0.5657452",
"0.5656629",
"0.5656629",
"0.5651997",
"0.5650867",
"0.564631",
"0.5642306",
"0.56394815",
"0.5630829",
"0.5626006",
"0.56252223",
"0.5624144",
"0.5606082",
"0.56035167",
"0.56012654",
"0.5600977",
"0.5600277",
"0.55963093",
"0.5592804",
"0.55893797",
"0.55893797",
"0.55789024",
"0.5573836",
"0.55585605",
"0.5547313",
"0.55452263",
"0.5538854",
"0.5538535",
"0.5534612",
"0.5533527",
"0.55302036",
"0.5527961",
"0.5527921",
"0.5522382",
"0.5514971",
"0.55093217",
"0.55072063",
"0.549767",
"0.54956514",
"0.548691",
"0.54778314",
"0.5474963",
"0.546913",
"0.546913",
"0.54640245",
"0.54618126",
"0.54608494",
"0.54591405",
"0.5442398",
"0.5441356"
]
| 0.0 | -1 |
Called when this node needs to be duplicated one down | public void onDuplicate() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VNode duplicate() throws VlException\n\t{\n\t\tthrow new nl.uva.vlet.exception.NotImplementedException(\"Duplicate method not implemented\"); \n\t}",
"public void duplicateClubEvent() {\n \n boolean modOK = modIfChanged();\n \n if (modOK) {\n ClubEvent clubEvent = position.getClubEvent();\n ClubEvent newClubEvent = clubEvent.duplicate();\n newClubEvent.setWhat(clubEvent.getWhat() + \" copy\");\n newClubEvent.setId(\"\");\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n position.setClubEvent(newClubEvent);\n position.setNewClubEvent(true);\n localPath = \"\";\n display();\n }\n }",
"public void duplicate() {\n System.out.println(\"Je bent al in bezit van deze vragenlijst!\");\n }",
"@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}",
"public Node duplicate() {\r\n Variable alterEgo = new Variable(index);\r\n return alterEgo;\r\n }",
"@Override\n protected void rebalanceInsert(Position<Entry<K, V>> p) {\n if (!isRoot(p)) {\n makeRed(p);\n resolveRed(p); // The inserted red node may cause a double-red problem\n }\n }",
"private void duplicateTags(Topology topology) {\n // This one pass implementation is dependent on Edges being\n // topologically sorted - ancestor Edges appear before their descendants.\n for (Edge e : topology.graph().getEdges()) {\n Object o = e.getTarget().getInstance();\n if (o instanceof Peek || o instanceof FanOut) {\n duplicateTags(e);\n }\n }\n }",
"private void duplicate(Node nodo) {\n int reference_page = nodo.getReference();\n if(this.debug)\n System.out.println(\"ExtHash::duplicate >> duplicando nodo con referencia \" + reference_page);\n\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contenido de la pagina:\");\n for(int i=1; i<content.get(0); i++) {\n System.out.println(\" \" + content.get(i));\n }\n }\n\n int shift = nodo.getAltura();\n nodo.activateReference(false);\n\n ArrayList<Integer> left = new ArrayList<>();\n ArrayList<Integer> right = new ArrayList<>();\n\n for(int i=1; i<=content.get(0); i++) {\n int chain = content.get(i);\n if((chain & (1 << shift)) == 0) {\n left.add(chain);\n } else {\n right.add(chain);\n }\n }\n\n left.add(0, left.size());\n right.add(0, right.size());\n\n this.fm.write(left, reference_page); this.out_counter++;\n Node l = new Node(reference_page);\n l.setAltura(shift + 1);\n\n this.fm.write(right, this.last); this.out_counter++;\n Node r = new Node(this.last); this.last++;\n r.setAltura(shift + 1);\n\n total_active_block++;\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(left), ref: \" + reference_page);\n for(int i=0; i<left.size(); i++) {\n System.out.println(\" \" + left.get(i));\n }\n }\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(right), ref: \" + (this.last - 1));\n for(int i=0; i<right.size(); i++) {\n System.out.println(\" \" + right.get(i));\n }\n }\n\n nodo.addLeftNode(l);\n nodo.addRightNode(r);\n\n ArrayList<Integer> last = new ArrayList<>();\n last.add(0);\n if(left.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(l);\n } else if(left.get(0) == B-2 && shift + 1 == 30) {\n left.add(this.last);\n this.fm.write(left, l.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n\n if(right.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(r);\n } else if(right.get(0) == B-2 && shift + 1 == 30) {\n right.add(this.last);\n this.fm.write(right, r.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n }",
"protected void elementInstered(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.elementInstered(evt);\r\n\t\t// the inserted node\r\n\t\tElement t = (Element) evt.getTarget();\r\n\t\t// its next sibling\r\n\t\tNode s = t.getNextSibling();\r\n\t\twhile (s != null && s.getNodeType() != Node.ELEMENT_NODE) {\r\n\t\t\ts = s.getNextSibling();\r\n\t\t}\r\n\t\tDUNID sdunid = DUNIDDocHelper.getDUNID((Element) s);\r\n\t\t// its parent node\r\n\t\tElement p = (Element) t.getParentNode();\r\n\t\tDUNID pdunid = DUNIDDocHelper.getDUNID(p);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tDocument d = getOwnerDUNIDDoc(p).getDocument();\r\n\t\tElement pori = DUNIDDocHelper.getElement(d, pdunid);\r\n\t\tpori.insertBefore(d.importNode(t, true),\r\n\t\t\t\tDUNIDDocHelper.getElement(d, sdunid));\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\td = getTargetsDescriptor().getDocument();\r\n\t\tpori = DUNIDDocHelper.getElement(d, pdunid);\r\n\t\tif (pori != null) { // inserted node parent is in the targets descriptor\r\n\t\t\tpori.insertBefore(d.importNode(t, true),\r\n\t\t\t\t\tDUNIDDocHelper.getElement(d, sdunid));\r\n\t\t}\r\n\t}",
"public void cutNode ()\n {\n copyNode();\n deleteNode();\n }",
"@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}",
"public abstract Instance duplicate();",
"public void visitDUP(DUP o){\n\t\tif (stack().peek().getSize() != 1){\n\t\t\tconstraintViolated(o, \"Won't DUP type on stack top '\"+stack().peek()+\"' because it must occupy exactly one slot, not '\"+stack().peek().getSize()+\"'.\");\n\t\t}\n\t}",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"public void addOne()\n\t{\n\t\tBlock b = new Block(p1.tail.oldPosX, p1.tail.oldPosY, p1.tail, this);\n\t\tBlock b2 = new Block(p2.tail.oldPosX, p2.tail.oldPosY, p2.tail, this);\n\t\t\n\t\tb.setFill(Color.RED.desaturate());\n\t\tb2.setFill(Color.BLUE.desaturate());\n\n\t\tp1.tail = b;\n\t\tp2.tail = b2;\n\t\taddBlock(b);\n\t\taddBlock(b2);\n\t}",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"@Override\r\n public void nodeActivity() {\n }",
"private void releasedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n /*\r\n * Verify if the pressed was on backgroun and if the released is on\r\n * background\r\n */\r\n if (nodeTool.getDrawState() == true) {// &&\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n addNode(nodeTool.getRectangle());\r\n }\r\n /* Reset the tool in any case */\r\n nodeTool.reset();\r\n }\r\n }",
"void onDuplicateReceived(PubsubMessage pubsubMessage, SourceMessage current);",
"private void bubbleUp(int pos) {\n // FILL IN\n // You should use the isBigger, parent, and swapup methods.\n }",
"@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\t\t\n\t\t\t}",
"protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}",
"SELLbeholder() {\n listehode = new Node(null, null);\n }",
"@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}",
"public abstract Node copy();",
"private void draggedNode(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n nodeTool.setSeccondPoint(e.getPoint());\r\n }\r\n }",
"public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }",
"public void visitDUP_X1(DUP_X1 o){\n\t\tif (stack().peek().getSize() != 1){\n\t\t\tconstraintViolated(o, \"Type on stack top '\"+stack().peek()+\"' should occupy exactly one slot, not '\"+stack().peek().getSize()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1).getSize() != 1){\n\t\t\tconstraintViolated(o, \"Type on stack next-to-top '\"+stack().peek(1)+\"' should occupy exactly one slot, not '\"+stack().peek(1).getSize()+\"'.\");\n\t\t}\n\t}",
"protected void notifyChildRemoval(FONode node) {\n //nop\n }",
"private void bubbleUp ( ) \n\t{\n\t}",
"@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}",
"@Override\n\tpublic void postProcess(NodeCT node) {\n\t}",
"@Override\n\tpublic boolean isRefush() {\n\t\treturn false;\n\t}",
"public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }",
"public void up()\n {\n if (this.index >= 0 && this.index < this.morphs.size())\n {\n MorphType type = this.morphs.get(this.index);\n\n if (type.morphs.size() > 1)\n {\n type.up();\n this.resetTime();\n }\n }\n }",
"private void sink(int node){\n while (node*2 <= this.size){\n int largerChild = node * 2;\n if (node*2+1 <= this.size && this.keys[node*2+1].compareTo(this.keys[largerChild])>0) {\n largerChild = node*2+1;\n }\n //break if the node is greater than both of its child node\n if (this.keys[node].compareTo(this.keys[largerChild]) > 0) break;\n //otherwise exchange node with its LARGER child\n this.exch(node, largerChild, this.keys);\n node = largerChild;\n }\n }",
"private void addNode(DLinkedNode node) {\n\t\t\tnode.pre = head;\n\t\t\tnode.post = head.post;\n\n\t\t\thead.post.pre = node;\n\t\t\thead.post = node;\n\t\t}",
"public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\n\t\t\t}",
"@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void onPreNodeMoved(NodeModel oldParent, int oldIndex, NodeModel newParent, NodeModel child, int newIndex) {\n\n\t}",
"private Node hubInsertNode(HubNode hubNode, Pane canvas , ContextMenu contextMenu) {\n\n\t\tImage image = new Image(\"root/Images/Hub.png\");\n\t\tImagePattern imagePattern = new ImagePattern(image);\n\n\t\tRectangle node = new Rectangle(NODE_LENGTH, NODE_WIDTH);\n\t\tnode.setFill(imagePattern);\n\n\t\tLabel lnodeName = new Label(\"HUB: \" + hubNode.getName()+ \"\\n\" + \"IP: \" + hubNode.getSubnet() + \"\\n\" + \"NetMask: \" + hubNode.getNetmask());\n\n\t\t//lnodeName.setOpacity(0.5);\n\t\tlnodeName.setStyle(\"-fx-background-color: rgba(255,255,255,0.6); -fx-font-size: 8; \");\n\n\n\t\tStackPane nodeContainer = new StackPane();\n\t\tnodeContainer.getChildren().addAll(node, lnodeName);\n\t\tnodeContainer.relocate(hubNode.getPosx(), hubNode.getPosy());\n\t\thubNode.setCanvasNode(nodeContainer); //for removing\n\n\t\tnodeContainer.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t\tNodeController nodeController = NodeController.getNodeController();\n\t\t\t\tif (event.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\tcontextMenu.getItems().get(2).setDisable(false);//allows deletion option of the stack pane object 'nodeContainer'\n\t\t\t\t\tcontextMenu.getItems().get(2).setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\t\t\t\tString hubName = hubNode.getName();\n\t\t\t\t\t\t\tnodeController.removeHubNode(hubName);\n\t\t\t\t\t\t\trefreshAll();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tcontextMenu.setOnHidden(new EventHandler<WindowEvent>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handle(WindowEvent e) {\n\t\t\t\t\t\t\tcontextMenu.getItems().get(2).setDisable(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\n\t\treturn nodeContainer;\n\t}",
"@Override\npublic void setIncrementalChildAddition(boolean newVal) {\n\t\n}",
"@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }",
"private void shiftUp() {\n int index = this.size;\n\n while (hasParent(index) && (parent(index).compareTo(heap[index]) > 0)) {\n swap(index, parentIndex(index));\n index = parentIndex(index);\n }\n }",
"public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }",
"public void relinkUD()\n {\n this.U.D = this.D.U = this;\n }",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}",
"public void remove () { this.setAsDown(); n.remove(); }",
"private void swapup(int pos) {\n E tmp = heap.elementAt(parent(pos));\n heap.setElementAt(heap.get(pos),parent(pos));\n heap.setElementAt(tmp,pos);\n }",
"@Override\n\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\n\t}",
"public void shiftUp() {\n\t\tif (next == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" up because it is already at the top\");\n\t\t}\n\t\tDependencyElement n = next;\n\t\tDependencyElement nn = next.next;\n\t\tif (nn != null) {\n\t\t\tnn.prev = this;\n\t\t\tnext = nn;\n\t\t}\n\t\telse {\n\t\t\tnext = null;\n\t\t}\n\t\tn.next = this;\n\t\tn.prev = prev;\n\t\tprev = n;\n\t}",
"public abstract TreeNode copy();",
"public static void main(String args[]) throws CloneNotSupportedException\n\t{\n\t\tSystem.out.println(getRandomNumber(2, 2));\n\t\t//Node n1 = org.apache.commons.lang3.SerializationUtils.clone(n);\n\t\t//n.getNextNodes().get(\"1\").getNextNodes().put(\"1\", null);\n\t\t//System.out.println(n1.getNextNodes().get(\"1\").getNextNodes().get(\"1\"));\n\t}",
"public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}",
"@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}",
"void insert(int d1) {\n\t\tif (mode == ListMode.LIFO) {\n\t\t\tNode new_node = new Node(d1);\n\t\t\tnew_node.next = head;\n\t\t\thead = new_node;\n\t\t} else if (mode == ListMode.FIFO) {\n\t\t\tNode new_node = new Node(d1);\n\t\t\tif (tail != null) tail.next = new_node;\n\t\t\ttail = new_node;\n\t\t}\n\t}",
"public void setMergeDuplicateEdge( boolean on )\n \t{\n \t\tmergeDuplicateEdge = on;\n \t}",
"@Override\n public void stepUp(Cell currentCell) {\n if(currentCell.getOldNoOfAliveNeighbours()==3)\n {\n currentCell.setState(new Alive());\n }\n }",
"@Override\n void duplicateAttributes(NodeComponent originalNodeComponent,\n\t\t\t boolean forceDuplicate) {\n super.duplicateAttributes(originalNodeComponent, forceDuplicate);\n // TODO : Handle NioImageBuffer if its supported.\n RenderedImage imgs[] = ((ImageComponent3DRetained)\n\t\t\t originalNodeComponent.retained).getImage();\n\n if (imgs != null) {\n\t ImageComponent3DRetained rt = (ImageComponent3DRetained) retained;\n\n\t for (int i=rt.depth-1; i>=0; i--) {\n\t if (imgs[i] != null) {\n\t\t rt.set(i, imgs[i]);\n\t }\n\t }\n }\n }",
"private Node(Node p, E e) {\n \tCLinkedList.this.size++;\n \tthis.data = e;\n \tthis.pred = p;\n \tthis.succ = p.succ;\n \tthis.pred.succ = this;\n \tthis.succ.pred = this;\n }",
"private void moveDown() {\r\n if(selectedNode != null && !selectedNode.isRoot()) {\r\n if(selectedNode != null && !selectedNode.isLeaf() && !selectedNode.isRoot()) {\r\n TreePath path = selTreePath;\r\n int i = selectedNode.getParent().getChildCount()-1;\r\n MutableTreeNode parent = (MutableTreeNode)selectedNode.getParent();\r\n int insertIndex = selectedNode.getParent().getIndex(selectedNode);\r\n if(insertIndex < i) {\r\n changeSortOrder((selTreePath.getPathCount())-1,selectedValue,insertIndex+2);\r\n changeSortOrder((selTreePath.getPathCount())-1,selectedNode.getParent().getChildAt(insertIndex+1).toString(),insertIndex+1);\r\n model.removeNodeFromParent((MutableTreeNode)selectedNode);\r\n model.insertNodeInto((MutableTreeNode)selectedNode, parent, (insertIndex+1));\r\n sponsorHierarchyTree.setSelectionPath(path);\r\n saveRequired = true;\r\n }\r\n } else {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1253\"));\r\n }\r\n }\r\n }",
"@Override\n\tpublic void onInsert(final Graph graph, mxICell parent, mxICell cell) {\n\t\tif (handdrawn) {\n\t\t\tmxIGraphModel model = graph.getGraph().getModel();\n\t\t\tObject source = model.getTerminal(cell, true);\n\t\t\tObject target = model.getTerminal(cell, false);\n\n\t\t\t// ignore \"unfinished\" edges\n\t\t\tif (source != null && target != null) {\n\t\t\t\tvisualization = (mxCell) cell;\n\n\t\t\t\tInPortCell tval = (InPortCell) model.getValue(target);\n\t\t\t\tJobCell tparval = (JobCell) model.getValue(model\n\t\t\t\t\t\t.getParent(target));\n\n\t\t\t\t// register graph for cell changes\n\t\t\t\tgraphObserver = new Observer<CellEvent<Cell>>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void notify(CellEvent<Cell> event) {\n\t\t\t\t\t\tevent.doNotify(graph.getCellChangeListener());\n\t\t\t\t\t}\n\n\t\t\t\t};\n\t\t\t\tgetObservable().addObserver(graphObserver);\n\n\t\t\t\t// Create ConnectionAdapter\n\t\t\t\t((WorkflowCell) ((mxICell) graph.getGraph().getDefaultParent())\n\t\t\t\t\t\t.getValue()).getDataInterface().createConnection(this,\n\t\t\t\t\t\ttparval, tval);\n\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onAddBreadRaised() {\n }",
"public XmlNode duplicateDataFieldNode(XmlNode highlightedField) {\n\t\tLinkedHashMap<String, String> allAttributes = highlightedField.getXmlElement().getAllAttributes();\n//\t\t get all attributes of the datafield\n\t\tLinkedHashMap<String, String> newAttributes = new LinkedHashMap<String, String>(allAttributes);\n\t\t\n\t\tXmlNode newNode = new XmlNode(newAttributes, this);\n\t\t\n\t\treturn newNode;\n\t}",
"private static Node updateNextNodeAlgo1(Node nextNode, Node destination) {\n if (nextNode.getDistanceToZ() > destination.getDistanceToZ()) {\n return destination;\n }\n return nextNode;\n }",
"public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}",
"public void dup() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->dup() unimplemented!\\n\");\n }",
"private void rehash() \n\t{\n\t\tnumKeys++;\n LinkedList<SpacePort<String, SpaceShipValet>>[] oldPort = chainedPortList;\n chainedPortList = new LinkedList[chainedPortList.length*2];\n\n for(int i = 0; i < oldPort.length; i++)\n {\n if(oldPort[i] != null && !oldPort[i].equals(DELETED))//If there is something in the old port,\n {\n \tfor(SpacePort<String, SpaceShipValet> ports: oldPort[i])//For all the slots in the SpacePort\n \t\tdock(ports.license, ports.ship);//Add a ship\n \tnumKeys++;//Increments the number of slots\n }\n }\t\n\n\t}",
"@Override\n\tpublic void visit(UnaryMinusListNode node) {\n\t\tstackPair.push(new Pair<>(\"~\", 1));\n\t\tnode.getNext().accept(this);\n\t}",
"@Override\n public void childAdded(Node child) {\n }",
"public void remove(Node node) {\n\t\tNode cloneNode = node;\n\t\tint index = indexOf(cloneNode.block);\n\t\tif (index != (-1)){\n\t\t\tgetNode(index - 1).next = cloneNode.next;\n\t\t\tgetNode(index + 1).previous = cloneNode.previous;\n\t\t\tsize--;\n\t\t\t\n\t\t}\n\t}",
"private void shiftDown() {\n int index = 1;\n\n while (hasLeftChild(index)) {\n //compare chield Nodes\n int smallerChild = leftIndex(index);\n\n // shft down with smaller Node if any\n if (hasRightChild(index) && heap[leftIndex(index)].compareTo(heap[rightIndex(index)]) > 0) {\n smallerChild = rightIndex(index);\n }\n\n if (heap[index].compareTo(heap[smallerChild]) > 0) {\n swap(index, smallerChild);\n } else {\n //Nothing to do\n break;\n }\n index = smallerChild;\n }\n }",
"protected void seenNode(Node n) {\r\n colorNode(n, seenNodeColor);\r\n colorNode(n.getParent(), nodeHighlightColor);\r\n }",
"@Override\n\tprotected void finalise(Frame frame) {\n\t\tfor (String name : _toReparse) {\n\t\t\tFrame toParse = FrameIO.LoadFrame(name);\n\t\t\tboolean changed = false;\n\t\t\tfor (Item i : toParse.getItems()) {\n\t\t\t\tif (i.getLink() != null && i.isAnnotation() && i.isLinkValid()) {\n\t\t\t\t\tString link = i.getLink();\n\t\t\t\t\tlink = link.toLowerCase();\n\t\t\t\t\t// link = link.replace(_nameFrom, _nameTo);\n\t\t\t\t\tif (_nameMap.containsKey(link)) {\n\t\t\t\t\t\tlink = _nameMap.get(link);\n\t\t\t\t\t\ti.setLink(link);\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (changed) {\n\t\t\t\tFrameIO.SaveFrame(toParse);\n\t\t\t}\n\t\t}\n\n\t\tmessage(\"Tree successfully copied to \" + _nameTo);\n\t\tFrameUtils.DisplayFrame(_nameTo + _firstNumber);\n\t\t\n\t\tsuper.finalise(frame);\n\t}",
"private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }",
"public static void addSample() {\n System.out.println(\"==test for add(value) to tail\");\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1 = new Node(1, null);\n Node lln = new Node();\n\n ll1_5 = ll1_5.add(6);\n ll1_5.printList();\n ll1_5 = ll1_5.add(7);\n ll1_5.printList();\n\n ll1 = ll1.add(2);\n ll1.printList();\n\n lln = lln.add(10);\n lln.printList();\n\n System.out.println(\"==test for add(value,pos) to delicated position\");\n Node ll1_5a = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1_5b = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1_5c = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1_5d = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1_5e = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll1_5f = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n Node ll1_2 = new Node(1, null);\n Node lln_2 = new Node();\n\n Node ll0p = ll1_5a.add(-1, 0);\n ll0p.printList();\n Node ll1p = ll1_5b.add(-2, 1);\n ll1p.printList();\n Node ll2p = ll1_5c.add(-3, 2);\n ll2p.printList();\n Node ll3p = ll1_5d.add(-4, 3);\n ll3p.printList();\n Node ll4p = ll1_5e.add(-5, 4);\n ll4p.printList();\n Node ll5p = ll1_5f.add(-6, 5);\n ll5p.printList();\n\n ll1_2 = ll1_2.add(2, 1);\n ll1_2.printList();\n\n lln_2 = lln_2.add(10, 1);\n lln_2.printList();\n }",
"private void moveToHead(DLinkedNode node) {\n\t\t\tthis.removeNode(node);\n\t\t\tthis.addNode(node);\n\t\t}",
"private ListNode deleteReplicateNode(ListNode head) {\n\n if (head == null || head.next == null) {\n System.out.println(\"Head is null or there is only one node\");\n return head;\n }\n\n ListNode preNode = null;\n ListNode node = head;\n while (node != null) {\n\n ListNode nextNode = node.next;\n boolean deleteFlag = false;\n if (nextNode != null && node.val == nextNode.val) {\n deleteFlag = true;\n }\n\n if (!deleteFlag) {\n preNode = node;\n } else {\n int value = node.val;\n ListNode toBeDeleted = node;\n\n while (toBeDeleted != null && toBeDeleted.val == value) {\n nextNode = toBeDeleted.next;\n\n toBeDeleted.next = null;\n\n toBeDeleted = nextNode;\n }\n\n // when old head node is duplicated, we need to assign the new head.\n if (preNode == null) {\n head = nextNode;\n } else {\n // use preNode to connect these non-duplicate nodes.\n preNode.next = nextNode;\n }\n }\n\n node = nextNode;\n }\n\n return head;\n }",
"protected void repeatedFoundWhenInsert(CntAVLTreeNode node) {\n System.out.println(\"添加失败:不允许添加相同的节点!\");\n }",
"public void visitDUP_X2(DUP_X2 o){\n\t\tif (stack().peek().getSize() != 1){\n\t\t\tconstraintViolated(o, \"Stack top type must be of size 1, but is '\"+stack().peek()+\"' of size '\"+stack().peek().getSize()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1).getSize() == 2){\n\t\t\treturn; // Form 2, okay.\n\t\t}\n\t\telse{ //stack().peek(1).getSize == 1.\n\t\t\tif (stack().peek(2).getSize() != 1){\n\t\t\t\tconstraintViolated(o, \"If stack top's size is 1 and stack next-to-top's size is 1, stack next-to-next-to-top's size must also be 1, but is: '\"+stack().peek(2)+\"' of size '\"+stack().peek(2).getSize()+\"'.\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void recycle()\n\t{\n\t}",
"public abstract void addChild(Node node);",
"public static void main(String[] args) {\n LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2();\r\n\r\n ll.insertFirst(40);\r\n\r\n ll.insertFirst(30);\r\n \r\n ll.insertFirst(20);\r\n ll.insertFirst(20);\r\n ll.insertFirst(10);\r\n ll.insertFirst(10);\r\n System.out.println(\"Initial List->\");\r\n ll.printList();\r\n ll.head=ll.remove(ll.head);\r\n System.out.println(\"\\n\\nAfter removing duplicates->\");\r\n ll.printList();\r\n\t}",
"private void bubbleUp(int index) {\n \t\t// TODO Complete this method!\n \t\tbubbleUpHelper(index, getNode(index).item());\n \t}",
"public abstract OtTreeNodeWidget copy();",
"private void moveToHead(DLinkedNode node){\n\t\tremoveNode(node);\n\t\taddNode(node);\n\t}",
"@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}",
"@Override\n\tvoid addRedBroder() {\n\t\t\n\t}",
"@Override\n\tpublic void postorder() {\n\n\t}",
"@Override\r\n\tpublic void onUp() {\n\t\tif (snakeView.smer != snakeView.JUG) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.SEVER;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }",
"protected void restoreSelf() {\n if (removed && parentNode != null && componentNode != null) {\n // Add self back BEFORE sibling (keeps original order)\n parentNode.insertBefore(componentNode, siblingNode);\n // Reset removed flag\n removed = false;\n }\n }",
"private void addAfter (Node<E> node, E item)\n {\n Node<E> temp = new Node<E>(item,node.next);\n node.next = temp;\n size++;\n }",
"@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t\t\r\n\t\t\t}",
"protected void pktDupeAcked(int seqNum) {}"
]
| [
"0.62196887",
"0.57864255",
"0.57739574",
"0.57025564",
"0.56245434",
"0.5592577",
"0.55701584",
"0.5557268",
"0.55095077",
"0.547832",
"0.54724514",
"0.5469804",
"0.5439379",
"0.54227227",
"0.5387595",
"0.53435403",
"0.53435403",
"0.5340256",
"0.533939",
"0.5338836",
"0.53378695",
"0.53376424",
"0.5331068",
"0.532333",
"0.5321096",
"0.5305645",
"0.5304197",
"0.52944386",
"0.5291212",
"0.52897",
"0.5270886",
"0.52665573",
"0.5260212",
"0.52565515",
"0.5243967",
"0.52335995",
"0.5231789",
"0.52138984",
"0.5210954",
"0.52073824",
"0.52073824",
"0.52073824",
"0.52059996",
"0.5204752",
"0.51913923",
"0.51901555",
"0.51900464",
"0.5175085",
"0.5166127",
"0.5165202",
"0.5158357",
"0.5157303",
"0.51375383",
"0.51350033",
"0.5133084",
"0.5130156",
"0.5118643",
"0.51158625",
"0.5095901",
"0.5093764",
"0.5089486",
"0.50866425",
"0.5085835",
"0.5077844",
"0.5077152",
"0.50730413",
"0.5072585",
"0.50719494",
"0.507173",
"0.5071508",
"0.5070391",
"0.5067668",
"0.50640696",
"0.5058447",
"0.50570065",
"0.50540954",
"0.50533855",
"0.50515026",
"0.50436866",
"0.5043081",
"0.5036582",
"0.5034643",
"0.50341433",
"0.5033767",
"0.5031245",
"0.503083",
"0.50269073",
"0.5026641",
"0.5026234",
"0.5026009",
"0.50252676",
"0.5018905",
"0.50157124",
"0.50150514",
"0.50147706",
"0.50144815",
"0.5013735",
"0.5011212",
"0.50058115",
"0.5002362"
]
| 0.6183002 | 1 |
Called when this node needs to be deleted from the array | public void onDelete() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreRenderNodeDescArrayView(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }",
"@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size() - 1; i >= 0; i--) {\n GmNodeModel child = this.children.get(i);\n child.delete();\n \n // When several elements have been deleted consecutively, fix the next index\n if (i > this.children.size()) {\n i = this.children.size();\n }\n }\n \n assert (this.children.isEmpty()) : \"All children should have been deleted:\" + this.children;\n \n super.delete();\n }",
"public void removed() {\n }",
"@Override\n\t\tprotected void _delete() {\n\t\t\toldValue = 0;\n\t\t\tnewValue = 0;\n\t\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"@Override\n\tpublic void posDelete() {\n\t\t\n\t}",
"@Override\n public void delete()\n {\n }",
"@Override\n\tpublic void onPreNodeDelete(NodeModel oldParent, NodeModel selectedNode, int index) {\n\n\t}",
"private void delete() {\n\n\t}",
"@Override\n\tpublic void delete() {\n\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n public void delete() {\n }",
"@Override\r\n\tpublic void delete(T element) {\n\r\n\t}",
"@Override\r\n\tpublic void delete() {\n\r\n\t}",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"@Override\n\tpublic int delete() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void delete() {\n\n\n }",
"public void delete() {\n\t\tdeleted = true;\n\t}",
"public void MarkForDeletion();",
"public void delete() {\n\n\t}",
"void deleteNode(ZVNode node);",
"public void onRemoveNode(Node node) {\n\t}",
"public void remove()\n {\n removed();\n node.shapeRemoved(shape);\n }",
"@Override\n\tpublic void delRec() {\n\t\t\n\t}",
"public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreResourceArray(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }",
"@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}",
"public void remove() {\r\n //\r\n }",
"void delData();",
"public abstract void onRemove();",
"@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}",
"void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\n\tpublic void eliminar() {\n\t\t\n\t}",
"public abstract void removedFromWidgetTree();",
"private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}",
"@Override\n public void remove() {\n }",
"@Override\n public void remove() {\n }",
"public static void deleteNode(int nodeData){\n }",
"public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}",
"public void remove () {}",
"@Override\n\tpublic void deleteItem(Object toDelete) {}",
"public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}",
"@Override\n\tpublic void eliminar() {\n\n\t}",
"@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}",
"@Override\n\tpublic int delete(Object ob) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int delete(Object ob) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void delete(ComplitedOrderInfo arg0) {\n\t\t\n\t}",
"public void entityRemoved() {}",
"@Override\n\tpublic void remove() { }",
"public void remove() {\n\n }",
"@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}",
"public void remove () { this.setAsDown(); n.remove(); }",
"void onItemDeleted();",
"@Override\r\n\tpublic void deleteObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"public void delete()\n\t{\n\t\tif(object.onDelete())\n\t\t{\n\t\t\tremoveFromRegion();\n\t\t}\n\t}",
"public void dvRemoved()\r\n/* 61: */ {\r\n/* 62:132 */ this.numDVRecords -= 1;\r\n/* 63: */ }",
"@Override\r\n\tpublic void delete(Integer arg0) {\n\t\t\r\n\t}",
"public void delete(){\r\n\r\n }",
"public void remove() {\r\n super.remove();\r\n }",
"public void delete() {\n this.root = null;\n }",
"@Override\n\t\t\t\tpublic void rowsDeleted(int firstRow, int endRow) {\n\n\t\t\t\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"protected void notifyChildRemoval(FONode node) {\n //nop\n }",
"@Override\n\tpublic void delete(CelPhone celphone) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}",
"public void remove() {\n elements[index] = null;\n size--;\n next();\n }",
"@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}",
"@Override\n\tpublic void delete(Integer arg0) {\n\t\t\n\t}",
"@Override\n\tpublic int delete(int t) {\n\t\treturn 0;\n\t}",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }"
]
| [
"0.7001802",
"0.68769276",
"0.6832622",
"0.66953236",
"0.66737044",
"0.6663551",
"0.6530577",
"0.6530577",
"0.6530577",
"0.65243953",
"0.65235645",
"0.6481714",
"0.64668417",
"0.6442376",
"0.6442376",
"0.6401062",
"0.637123",
"0.6365899",
"0.6338367",
"0.6300098",
"0.62905306",
"0.6271515",
"0.62703013",
"0.6265564",
"0.62370574",
"0.6234985",
"0.6234173",
"0.62244105",
"0.62153983",
"0.62104905",
"0.62005997",
"0.6196865",
"0.61780304",
"0.6176938",
"0.61687565",
"0.6159592",
"0.6159141",
"0.6159141",
"0.61584246",
"0.6143724",
"0.6141672",
"0.61383945",
"0.61323565",
"0.61323565",
"0.6131573",
"0.6130767",
"0.61288613",
"0.6106833",
"0.6098014",
"0.60959476",
"0.60936415",
"0.6087425",
"0.60873604",
"0.60867774",
"0.6082251",
"0.60807675",
"0.6080044",
"0.60751706",
"0.60751706",
"0.6072344",
"0.60587335",
"0.60579216",
"0.6051568",
"0.60454315",
"0.6042332",
"0.6037202",
"0.60349554",
"0.60325253",
"0.6032165",
"0.6030555",
"0.60192364",
"0.60191023",
"0.60027295",
"0.5995076",
"0.5994553",
"0.5994553",
"0.5994553",
"0.5994553",
"0.5994553",
"0.5994553",
"0.5994553",
"0.5994553",
"0.59938776",
"0.59938776",
"0.59938776",
"0.59876543",
"0.5986593",
"0.5986593",
"0.59805286",
"0.5975616",
"0.5974595",
"0.5970271",
"0.5965692",
"0.5961999",
"0.5954482",
"0.5954424",
"0.5954424",
"0.5954424",
"0.5954424",
"0.5954424",
"0.5954424"
]
| 0.0 | -1 |
Main Class for testing ranks of these users | public static void main(String[] args) {
HonestUser ds= new HonestUser((short) 1);
for (int i=0;i<15;i++)
System.out.println(ds.generate_rankValue((float) 0.754));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }",
"void setDefaultRank(KingdomUser user);",
"public void rank(){\n\n\t}",
"void setRank(KingdomUser user, KingdomRank rank);",
"void showRanking(String winner, String rank);",
"KingdomRank getRank(KingdomUser user);",
"@Test\n public void userRanking() {\n List<ATrip> trips = new ArrayList<ATrip>();\n ATrip trip = new ATrip();\n trip.setDriverid(DRIVER_ID);\n trip.setPassengerid(PASSENGER_ID);\n trip.setTripid(TRIP_ID);\n trip.setStatus(2);\n trip.setStartdate(1);\n trip.setEnddate(10);\n trips.add(trip);\n\n ATrip trip2 = new ATrip();\n trip2.setDriverid(DRIVER_ID);\n trip2.setPassengerid(PASSENGER_ID_2);\n trip2.setTripid(TRIP_ID2);\n trip2.setStatus(2);\n trip2.setStartdate(1);\n trip2.setEnddate(10);\n trips.add(trip2);\n\n ATrip trip3 = new ATrip();\n trip3.setDriverid(DRIVER_ID);\n trip3.setPassengerid(NONEXISTING_PASSENGER_ID);\n trip3.setTripid(TRIP_ID3);\n trip3.setStatus(1);\n trip3.setStartdate(2);\n trip3.setEnddate(9);\n trips.add(trip3);\n\n ArrayList<String> result = new ArrayList<String>();\n result.add(\"1;\" + 1);\n result.add(\"2;\" + 1);\n result.add(\"3;\" + 2);\n result.add(\"4;\" + 2);\n result.add(\"5;\" + 1);\n result.add(\"6;\" + 1);\n\n List<ATripRepository.userTripRanking> response = repo.getUserRankings(0, 10, trips, \"Passenger\");\n\n assertEquals(result.size(), response.size());\n }",
"public void createRanking() {\n Question q = new Ranking(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Ranking question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many items need to be ranked?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }",
"int getRanking();",
"long getRank();",
"public void rankMatches();",
"public int Rank();",
"public void setRank(int value);",
"public int getRank();",
"public int getRank();",
"public void setRank(String value)\n {\n _rank = value;\n }",
"public int getRank ()\n {\n return this.ranks; \n }",
"private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }",
"public void setRank(int aRank)\n {\n this.ranks = aRank;\n }",
"@Test\n public void testGetRank(){\n for (int i = 0; i < nIterTests; i++) {\n CardReference reference = sampleRandomCard();\n Card card = new Card(reference.getSuit(), reference.getRank());\n assertEquals(reference.getRank(), card.getRank());\n }\n }",
"@Test\n\tpublic void testRankingSortedByName() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareRankings(SRANKING5, rankingsToString());\n\t}",
"public int getRank(){\r\n return this.rank;\r\n }",
"@Test\n public void testNewUsers() {\n try {\n //Navigate to users search page (faster this way)\n driver.get(\"http://stackoverflow.com/users\");\n \n //find \"new users\" tab\n driver.findElement(By.cssSelector(\"a[data-value='newusers']\")).click();\n wait(3);\n \n //get scores; first user's score > second user's score > third user's score\n List<WebElement> users = driver.findElements(By.className(\"-flair\"));\n String[] sArr = users.get(0).getText().split(\"\\\\s+\"); //get first user; should have highest rep\n double rep1 = Integer.valueOf(sArr[0]);\n sArr = users.get(1).getText().split(\"\\\\s+\"); //get second user; has second highest rep\n double rep2 = Integer.valueOf(sArr[0]);\n sArr = users.get(2).getText().split(\"\\\\s+\"); //get third user; has third highest rep\n double rep3 = Integer.valueOf(sArr[0]);\n\n assertTrue(rep1 >= rep2 && rep2 >= rep3);\n }\n catch(NoSuchElementException nsee) {\n fail();\n }\n }",
"public void setRank(int rank) {\n this.rank = rank;\n }",
"public void setRank(Integer rank) {\n this.rank = rank;\n }",
"public int rank() { return this.rank; }",
"public int getRank(){\n return rank;\n }",
"public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}",
"public HashMap<User, Integer> userWeekRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortWeekTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForWeek() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortWeekDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForWeek() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortWeekSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForWeek() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortWeekAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForWeek() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForWeek();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }",
"@Test\n public void userRankingFailure2() {\n List<ATrip> trips = new ArrayList<ATrip>();\n ATrip trip = new ATrip();\n trip.setDriverid(DRIVER_ID);\n trip.setPassengerid(\"\");\n trip.setTripid(TRIP_ID);\n trip.setStatus(1);\n trip.setStartdate(4);\n trip.setEnddate(5);\n trips.add(trip);\n\n List<ATripRepository.userTripRanking> response = repo.getUserRankings(1, 10, trips, \"Passenger\");\n\n assertTrue(response.isEmpty());\n }",
"@Test\n public void cardHasRank(){\n assertEquals(Rank.NINE, this.card.getRank());\n }",
"boolean hasRanking();",
"public void setRank(String rank) {\n this.rank = rank;\n }",
"@Test\n void testUserIsNextPlayerWhenBotCHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotC().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }",
"Response<Integer> getRank(String leaderboardId, String username, String uniqueIdentifier, int scope);",
"public int getRank(){\n return this.rank;\n }",
"public int getRank()\n {\n return rank;\n }",
"Rank(Role role) {\n this.role = role;\n }",
"public int getRank()\n {\n return rank;\n }",
"@Override\n public int getRank() {\n return rank;\n }",
"public Rank getRank()\n {\n return rank;\n }",
"public String getRank() {\n if(dbMgr.checkAdmin(username))\n return \"Admin\";\n\n else if(dbMgr.checkBannedUser(username))\n return \"Banned\";\n\n else if(dbMgr.checkReviewUser(username))\n return \"Review User\";\n\n else if(dbMgr.checkPremiumUser(username))\n return \"Premium User\";\n\n else \n return \"user\";\n }",
"public Integer getRank(){\r\n\t\treturn rank;\r\n\t}",
"public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }",
"public void setRank(byte value) {\n this.rank = value;\n }",
"public int getRank() {\r\n return rank;\r\n }",
"private int getGlobalRanking() {\n\t\tint globalRanking = 0;\n\t\ttry{\n\t\t\t//Retrieve list of all players and order them by global score\n\t\t\tArrayList<Player> allPlayers = dc.getAllPlayerObjects();\n\t\t\tCollections.sort(allPlayers, new Comparator<Player>(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Player p1, Player p2) {\n\t\t\t\t\treturn p2.getGlobalScore() - p1.getGlobalScore();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t\t//Search for the user in the ordered list\n\t\t\tglobalRanking = allPlayers.indexOf(dc.getCurrentPlayer()) +1;\n\n\t\t} catch(DatabaseException e) {\n\t\t\tactivity.showNegativeDialog(\"Error\", e.prettyPrint(), \"OK\");\n\t\t}\n\t\treturn globalRanking;\n\t}",
"Rank(int points){\r\n\t\tthis.points = points;\r\n\t}",
"public void rank(String modelFile, String testFile, String indriRanking) {\n/* 1258 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFile);\n/* 1259 */ int[] features = ranker.getFeatures();\n/* 1260 */ List<RankList> test = readInput(testFile);\n/* */ \n/* 1262 */ if (normalize)\n/* 1263 */ normalize(test, features); \n/* */ try {\n/* 1265 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1266 */ for (RankList l : test) {\n/* 1267 */ double[] scores = new double[l.size()];\n/* 1268 */ for (int j = 0; j < l.size(); j++)\n/* 1269 */ scores[j] = ranker.eval(l.get(j)); \n/* 1270 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1271 */ for (int i = 0; i < idx.length; i++) {\n/* 1272 */ int k = idx[i];\n/* */ \n/* 1274 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1275 */ out.write(str);\n/* 1276 */ out.newLine();\n/* */ } \n/* */ } \n/* 1279 */ out.close();\n/* */ }\n/* 1281 */ catch (IOException ex) {\n/* */ \n/* 1283 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }",
"public HashMap<User, Integer> userMonthRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortMonthTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForMonth() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortMonthDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForMonth() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortMonthSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForMonth() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortMonthAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForMonth() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }",
"@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }",
"public void setRank(int r) {\r\n\t\trank = r;\r\n\t}",
"public int getRank(){\n return Value;\n }",
"Response<Ranks> getRanks(String leaderboardId, String username, String uniqueIdentifier);",
"public void test(String testFile) {\n/* 935 */ List<RankList> test = readInput(testFile);\n/* 936 */ double rankScore = evaluate(null, test);\n/* 937 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ }",
"public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}",
"public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"private void confirmRanks(InternalContest contest, String[] rankData) {\n confirmRanks(contest, rankData, new Properties());\n }",
"public int getRank()\r\n {\r\n return this.rank;\r\n }",
"public void refreshRank() {\n rank = getRank();\n lblUserTitle.setText(username + \" - \" + rank);\n }",
"public void rank(List<String> modelFiles, String testFile, String indriRanking) {\n/* 1325 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1326 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1329 */ int nFold = modelFiles.size();\n/* */ \n/* 1331 */ List<RankList> samples = readInput(testFile);\n/* 1332 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1333 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1334 */ System.out.println(\"[Done.]\");\n/* */ \n/* */ try {\n/* 1337 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1338 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1340 */ List<RankList> test = testData.get(f);\n/* 1341 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1342 */ int[] features = ranker.getFeatures();\n/* 1343 */ if (normalize) {\n/* 1344 */ normalize(test, features);\n/* */ }\n/* 1346 */ for (RankList l : test) {\n/* 1347 */ double[] scores = new double[l.size()];\n/* 1348 */ for (int j = 0; j < l.size(); j++)\n/* 1349 */ scores[j] = ranker.eval(l.get(j)); \n/* 1350 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1351 */ for (int i = 0; i < idx.length; i++) {\n/* 1352 */ int k = idx[i];\n/* */ \n/* 1354 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1355 */ out.write(str);\n/* 1356 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1360 */ out.close();\n/* */ }\n/* 1362 */ catch (Exception ex) {\n/* */ \n/* 1364 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }",
"public static void TournamentTest() {\r\n String path = \"C:\\\\Users\\\\Kitty\\\\git\\\\botbattle\\\\cmpsc488\\\\botbattleapp\\\\GameManager2\\\\bin\";\r\n CompetitorData c = new CompetitorData();\r\n c.addUser(\"rvh5220\", path);\r\n c.addUser(\"rvh5221\", path);\r\n c.addUser(\"rvh5222\", path);\r\n c.addUser(\"rvh5223\", path);\r\n\r\n Tournament t = new Tournament(null, null, c);\r\n try {\r\n t.runTournament();\r\n } catch (IOException e) { // TODO this should probablly be caught lower down\r\n e.printStackTrace();\r\n }\r\n }",
"@Test\n void testNextPlayerWhenPlayerHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getUser().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotA().getId(), testDealer.getNextPlayer());\n }",
"@Test\n\tpublic void test_getatpRank() {\n\tTennisPlayer c1 = new TennisPlayer(5,\"David Ferrer\");\n\tassertEquals(5,c1.getatpRank());\n }",
"public int getRank()\n\t{\n\t\treturn rank;\n\t}",
"public String getRankString(){ return this.rank; }",
"public String getRank()\n {\n return _rank;\n }",
"public Builder setRanking(int value) {\n bitField0_ |= 0x00000010;\n ranking_ = value;\n onChanged();\n return this;\n }",
"public static void main(String[] args) throws Exception {\n DataModel model = new FileDataModel(new File(\"data/movies.csv\"));\n\n //define user similarity as Pearson correlation coefficient\n UserSimilarity similarity = new PearsonCorrelationSimilarity(model);\n\n //neighborhood = 50 nearest neighbors\n UserNeighborhood neighborhood = new NearestNUserNeighborhood(50, similarity, model);\n\n // recommender instance - User-based CF\n GenericUserBasedRecommender recommender = new GenericUserBasedRecommender(model, neighborhood, similarity);\n\n //top 10 recommendation for user 50\n List<RecommendedItem> recommendations = recommender.recommend(50, 10);\n\n //print recommendation\n for (RecommendedItem recommendation : recommendations) {\n\n System.out.println(recommendation);\n }\n\n }",
"public void WatchOverIt(int target_rank);",
"@Test\n public void getBestTest() throws Exception{\n String json;\n List<Integer> res;\n int N = ((Double)(rand.nextDouble()*4+2)).intValue()*2;\n for (int i=0;i<N;i++) {\n TestRegister(\"Test user \"+i);\n }\n res=lbDao.getAll();\n assertEquals(N,res.size());\n json=lbDao.getN(N);\n LeaderBoardRecord[] reslb=gson.fromJson(json, LeaderBoardRecord[].class);\n assertEquals(reslb.length,N);\n json=lbDao.getN(N/2);\n reslb=gson.fromJson(json, LeaderBoardRecord[].class);\n assertEquals(reslb.length,N/2);\n json=TestGetN();\n reslb=gson.fromJson(json, LeaderBoardRecord[].class);\n assertEquals(reslb.length,3);\n }",
"@Test\n void pass3CardsRound99(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(99);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"public String getRank() {\r\n return rank;\r\n }",
"public void rank(String testFile, String indriRanking) {\n/* 1295 */ List<RankList> test = readInput(testFile);\n/* */ \n/* */ try {\n/* 1298 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1299 */ for (RankList l : test) {\n/* 1300 */ for (int j = 0; j < l.size(); j++) {\n/* */ \n/* 1302 */ String str = l.getID() + \" Q0 \" + l.get(j).getDescription().replace(\"#\", \"\").trim() + \" \" + (j + 1) + \" \" + SimpleMath.round(1.0D - 1.0E-4D * j, 5) + \" indri\";\n/* 1303 */ out.write(str);\n/* 1304 */ out.newLine();\n/* */ } \n/* */ } \n/* 1307 */ out.close();\n/* */ }\n/* 1309 */ catch (IOException ex) {\n/* */ \n/* 1311 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }",
"public void ranking(ArrayList<Player> list) {\r\n\t\tCollections.sort(list, new Comparator<Player>(){\r\n\t\t\tpublic int compare(Player a1, Player a2) {\r\n\t\t\t\tint a = a2.getPercent()-a1.getPercent(); \r\n\t\t\t\treturn a==0?a1.getUserName().compareTo(a2.getUserName()):a;\r\n\t\t\t}\r\n\t\t});\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile(aa.hasNext()){\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tin.showRanking();\r\n\t\t}\r\n\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tString msg = \"score@\";\r\n\t\t\t\t\tmsg += changeRank(duiduipeng);\r\n\t\t\t\t\tmsg += changeRank(ddt);\r\n\t\t\t\t\tmsg += changeRank(tuixiangzi);\r\n\t\t\t\t\tmsg += changeRank(feiji);\r\n\t\t\t\t\t//System.out.println(msg);\r\n\t\t\t\t\tsendToAll(msg);\r\n\t\t\t\t}",
"public void createRanking() throws RemoteException{\n mainPage.setRemoteController(senderRemoteController);\n mainPage.setMatch(match);\n Platform.runLater(\n () -> {\n try {\n mainPage.createRanking();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n }",
"public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}",
"public Rank getRank()\n\t{\n\t\treturn rank;\n\t}",
"public abstract void modRanking(ParamRanking pr);",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyRPAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the RB user is able to perform journeys\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifyRPuserjourneyverification();\n\t\n\t}",
"private int setRank() {\n this.rank = 0;\n for(int row = 0; row < SIZE; row++){\n for(int col = 0; col < SIZE; col++){\n int currentBoardNumber = row * 3 + col + 1;\n if(row == 2 && col == 2) {\n currentBoardNumber = 0;\n }\n if(this.board[row][col] != currentBoardNumber) {\n this.rank += 1;\n }\n }\n }\n this.rank += this.prevMoves.length();\n return this.rank;\n }",
"private void compareRanking(int rankIndex, String[] standingsRow, String [] expectedRow) {\n \n// Object[] cols = { \"Rank\", \"Name\", \"Solved\", \"Points\" };\n \n int idx = 0;\n assertEquals(\"Standings row \"+rankIndex+\" rank incorrect, \", expectedRow[idx], standingsRow[idx]);\n// assertTrue (\"Standings row \"+rankIndex+\" rank wrong expected \"+expectedRow[idx]+\" found \"+standingsRow[idx], standingsRow[idx].equals(expectedRow[idx]));\n idx++;\n assertEquals(\"Standings row \"+rankIndex+\" team name incorrect, \", expectedRow[idx], standingsRow[idx]);\n// assertTrue (\"Standings row \"+rankIndex+\" name wrong expected \"+expectedRow[idx]+\" found \"+standingsRow[idx], standingsRow[idx].equals(expectedRow[idx]));\n idx++;\n assertEquals(\"Standings row \"+rankIndex+\" number solved incorrect, \", expectedRow[idx], standingsRow[idx]);\n// assertTrue (\"Standings row \"+rankIndex+\" number solved wrong expected \"+expectedRow[idx]+\" found \"+standingsRow[idx], standingsRow[idx].equals(expectedRow[idx]));\n idx++;\n assertEquals(\"Standings row \"+rankIndex+\" penalty points incorrect \", expectedRow[idx], standingsRow[idx]);\n// assertTrue (\"Standings row \"+rankIndex+\" points wrong expected \"+expectedRow[idx]+\" found \"+standingsRow[idx], standingsRow[idx].equals(expectedRow[idx]));\n }",
"@Test\r\n public void testgetUserRatedTop() throws ServletException, IOException {\r\n final Question question = createQuestion(\"abcdefg\", \"pattern\");\r\n createTweetPollPublicated(Boolean.TRUE, Boolean.TRUE, new Date(),\r\n getSpringSecurityLoggedUserAccount(), question);\r\n createPoll(new Date(), question, getSpringSecurityLoggedUserAccount(),\r\n Boolean.TRUE, Boolean.TRUE);\r\n initService(\"/api/common/frontend/topusers.json\", MethodJson.GET);\r\n setParameter(\"status\", \"1\");\r\n final JSONObject response = callJsonService();\r\n final JSONObject success = getSucess(response);\r\n final JSONArray items = (JSONArray) success.get(\"profile\");\r\n Assert.assertNotNull(items);\r\n Assert.assertEquals(items.size(), 1);\r\n }",
"@Test\r\n\tpublic void driverRatioSponsorshipsStatus() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateRatioSponsorshipsStatus((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStandardUserSpecificAccounts_RBP() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether confirmation page is getting displayed for Reads, Bills, Payments users\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SubmitMeterReadodb\");\n\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"SlingshotCrmDetailsRBP\"); \n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\n\t\t.VerifySpecificAccountsViewName(userProfile);\t\t\t\t\t \t \t\t\t\t\t \t \t\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUserdata(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTabledetails(userProfile)\n\t\t.AdduserConfirmationPage();\n\t\t/*.confirmationPageVerificationLinks()\n\t\t.UserJourney_RBPAccessVerification(userProfile);\n\t\tnew SapCrmAction()\n\t\t.loginDetails(crmuserProfile)\n\t\t.searchCrmFieldsVerification(crmuserProfile, userProfile);*/\n\t}",
"@Test\n\tpublic void searchIteratorStatusRankCriteria(){\n\t\tRegionQueryPart regionQueryPart = new RegionQueryPart();\n\t\tregionQueryPart.setRegion(new String[]{\"AB\",\"bc\"});\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ANY_OF);\n\t\t\n\t\tIterator<TaxonLookupModel> it = taxonDAO.searchIterator(200, null, -1,regionQueryPart, NATIVE_EPHEMERE_STATUSES, new String[]{\"family\",\"variety\"}, false, null);\n\t\tList<String> mockTaxonList = extractMockTaxonNameFromLookup(it);\n\t\tassertTrue(mockTaxonList.containsAll(Arrays.asList(new String[]{\"_Mock2\"})));\n\t\tassertTrue(!mockTaxonList.contains(\"_Mock4\"));\n\t}",
"boolean hasRank();",
"@Test\n public void LeaderBoardServer()\n {\n PlayFabServerModels.GetLeaderboardRequest serverRequest = new PlayFabServerModels.GetLeaderboardRequest();\n serverRequest.MaxResultsCount = 3;\n serverRequest.StatisticName = TEST_STAT_NAME;\n PlayFabResult<PlayFabServerModels.GetLeaderboardResult> serverResult = PlayFabServerAPI.GetLeaderboard(serverRequest);\n VerifyResult(serverResult, true);\n assertTrue(GetSvLbCount(serverResult.Result.Leaderboard) > 0);\n }",
"@Override\n\tpublic List<WalkerRanking> listRanking() {\n\t\tList<Walker> all = walkerRepo.findAllPublic();\n\t\tList<WalkerRanking> allRank = new ArrayList<>();\n\t\t\n\t\tfor(Walker walker : all) {\n\t\t\tallRank.add(getRankingById(walker.getId()));\n\t\t}\n\t\t\n\t\treturn allRank;\n\t}",
"@Test\n public void testCreateUser() throws Exception {\n \n //creates a user with the given parmeters, and randomizes the \n //users weight, then verifys the user was created\n //by using the random number that was generated with the expected result\n System.out.println(\"createUser\");\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/users\", \"root\", \"tech\");\n Statement stmt= (Statement) conn.createStatement();\n Random rn = new Random();\n int maximum = 300;\n int minimum = 1;\n int range = maximum - minimum + 1;\n int randomNum = rn.nextInt(range) + minimum;\n sql=\"insert into user (id,fName,lName,weight,weightgoal,tdee,userName,passWord)\"\n + \"VAlUES (NULL,'Bob','Smith','\"+randomNum+\"','160','2500','bob1','bobpassword')\";\n stmt.executeUpdate(sql);\n sql = \"SELECT * FROM user WHERE weight='\"+randomNum+\"'\";\n rs = stmt.executeQuery(sql);\n \n while(rs.next()){\n assertTrue(rs.getInt(\"weight\")==(randomNum));\n assertFalse(rs.getInt(\"weight\")==(0));\n \n }\n //u.testLogonSuccses();\n }",
"@Test\n void testFirstPlayer() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> heartCards, diamondCards, clubCards, spadeCards;\n\n spadeCards = new ArrayList <Card>();\n heartCards = new ArrayList <Card>();\n diamondCards = new ArrayList <Card>();\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n heartCards.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeCards.add(new Card(Suit.SPADES, rank, true));\n }\n for (Rank rank : Rank.values()) {\n diamondCards.add(new Card(Suit.DIAMONDS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartCards);\n testDealer.getBotB().fillHandCards(spadeCards);\n testDealer.getBotC().fillHandCards(diamondCards);\n testDealer.getUser().fillHandCards(clubCards);\n\n testDealer.setPlayerStarter();\n\n \n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }",
"@Test\n\tpublic void testAddScoreAndGetWinner2() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\t\t\n\t\t//Julia realiza 46 disparos a distintos Crafts y destruye 46 Destroyer, 10 Cruiser y 5 Bomber\n\t\tfor (int i=0; i<46; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tcraftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Julia(PlayerFile):263\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\t//Raul realiza 45 disparos a distintos Crafts y destruye 10 Carrier, 30 Battleship y 5 Fighter\n\t\tfor (int i=0; i<45; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Carrier\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.EAST));\n\t\t}\n\t\t\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\t//Laura realiza 120 disparos a distintos Crafts y destruye 30 Battleship, 10 Cruiser y 5 Fighter\n\t\tfor (int i=0; i<120; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.EAST));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.SOUTH));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\t//Simon realiza 100 disparos a distintos Crafts y destruye 40 Bomber, 15 Destroyer y 75 Transport\n\t\tfor (int i=0; i<100; i++) {\n\t\t\thitScore.score(CellStatus.DESTROYED);\n\t\t\tif (i<40) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.NORTH));\n\t\t\tif (i<15) craftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.WEST));\n\t\t\tif (i<75) craftScore.score(CraftFactory.createCraft(\"aircraft.Transport\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Simon(PlayerFile):1995\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\tcompareRankings(SRANKING4, rankingsToString());\n\t}",
"@Test\n\tpublic void testGetUser() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"2\");\n\t\tuser3.setID(\"3\");\n\t\t\n\t\tassertNull(\"No users in network\", sn.getUser(\"1\"));\n\t\tsn.addUser(user1);\n\t\tassertEquals(\"Only user in network\", user1, sn.getUser(\"1\"));\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\tassertEquals(\"1/3 in list\", user1, sn.getUser(\"1\"));\n\t\tassertEquals(\"2/3 in list\", user2, sn.getUser(\"2\"));\n\t\tassertEquals(\"3/3 in list\", user3, sn.getUser(\"3\"));\n\t\tassertNull(\"Isnt a valid user ID\", sn.getUser(\"4\"));\n\t}",
"public void setRank(Vector rank) {\n this.rank = rank;\n }",
"public static void main(String[] args) {\n \tArrayList<User> users = new ArrayList<User>(); //create arraylist of users\n\n for (String str : Data.users) {\n String [] data = str.split(\",\");\n // create custom user and assign data from array\n User user = new User(data[0], data[1], Integer.parseInt(data[2]), data[3], data[4], data[5], data[6]); \n users.add(user); // add user to arraylist\n }\n Collections.sort(users, new SortbyAge()); // sort users by age using custom comparator\n //print top 10 users\n for (int i=0; i < 11; i++) {\n users.get(i).printUser(); \n }\n }",
"public String rank() {\r\n return rank;\r\n }"
]
| [
"0.6854243",
"0.67787546",
"0.6746764",
"0.6588525",
"0.6435683",
"0.64349085",
"0.634622",
"0.63382983",
"0.6283469",
"0.62784755",
"0.62731165",
"0.617437",
"0.6170448",
"0.6157117",
"0.6157117",
"0.6150521",
"0.6104591",
"0.6091864",
"0.6066066",
"0.6064389",
"0.6051305",
"0.6047195",
"0.60359144",
"0.60324425",
"0.6026161",
"0.60252684",
"0.600953",
"0.59926844",
"0.59754854",
"0.5974813",
"0.597085",
"0.59595275",
"0.5939141",
"0.59264153",
"0.59193665",
"0.59149057",
"0.58898336",
"0.58675027",
"0.5853794",
"0.5843368",
"0.5832135",
"0.5814863",
"0.58142495",
"0.5812499",
"0.5798833",
"0.5795442",
"0.57934004",
"0.5788819",
"0.5774644",
"0.57668096",
"0.57653755",
"0.57645416",
"0.5764162",
"0.5759412",
"0.5756409",
"0.5749744",
"0.5749744",
"0.57395107",
"0.57395107",
"0.57395107",
"0.5728844",
"0.5728078",
"0.5720272",
"0.569066",
"0.56901145",
"0.5682502",
"0.5663422",
"0.5659845",
"0.565263",
"0.5651265",
"0.56418455",
"0.56220365",
"0.56036353",
"0.55946726",
"0.55917925",
"0.55871284",
"0.5585105",
"0.55847436",
"0.55836546",
"0.55820906",
"0.5576551",
"0.5575989",
"0.55753136",
"0.55679446",
"0.556199",
"0.55570936",
"0.5556816",
"0.55514246",
"0.5550015",
"0.5549462",
"0.55473185",
"0.55470425",
"0.55463946",
"0.5535529",
"0.55347645",
"0.553287",
"0.5531149",
"0.5521377",
"0.5520849",
"0.55192584"
]
| 0.6814427 | 1 |
This is the number of comment delimiter characters deleted from the string. It is 4 for a "( ... )" comment, etc. | public CommentToken(String str, int col, int sub, boolean pseudo)
/**********************************************************************
* The constructor for this class. The third argument specifies the *
* rsubtype. The fourth argument is true iff this comment is ended *
* by the beginning of a PlusCal algorithm or begun by the end of a *
* PlusCal algorithm. In either case, two delimiter characters that *
* normally would have been deleted weren't. *
**********************************************************************/
{ type = Token.COMMENT;
column = col ;
string = str;
rsubtype = sub;
subtype = 0 ;
switch (rsubtype)
{ case NORMAL : delimiters = pseudo?2:4;
break;
case LINE :
case BEGIN_OVERRUN :
case END_OVERRUN : delimiters = pseudo?0:2;
break ;
case OVERRUN : break ;
default : Debug.ReportBug(
"CommentToken constructor called with illegal subtype"
);
} ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int countDelimiters(String resource, String delimiter)\r\n {\r\n int delLen = (delimiter.equals(TIGHT_BINDING)) ? TIGHT_BINDING_LEN :\r\n LOOSE_BINDING_LEN ;\r\n\r\n // find the first delimiter\r\n int index = resource.indexOf(delimiter);\r\n\r\n if (index != -1)\r\n return 1 + countDelimiters(resource.substring(index+delLen), delimiter);\r\n else\r\n return 0;\r\n }",
"int number() {\r\n\t\treturn delimiters.size();\r\n\t}",
"int getCommentEndOffset(CharSequence commentText);",
"@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }",
"private String nocomment(String s) {\r\n\t\tint excLocation=s.indexOf('!');\r\n\t\tif(excLocation!=-1) s=s.substring(0,excLocation);\r\n\t\treturn s.trim();\r\n\t}",
"public Short getCommentCount() {\n return commentCount;\n }",
"public int numComments() {\n return this.comments.size();\n }",
"private int numberOfConstants() {\n return (int) Stream.of(this.template.split(\"\\\\.\"))\n .filter(s -> !s.equals(\"*\")).count();\n }",
"int commentsCount();",
"public static String comment(String string, boolean docs, String delimiter){\n String concl = docs ? \"/**\\n\" : \"/*\\n\";\n for (String line : string.split(delimiter)){\n concl += \" * \" + line + \"\\n\";\n }\n return concl + \" */\";\n }",
"public int getCommentCount() {\n return commentCount;\n }",
"public static int codelessLength(String msg)\n\t{\n\t\tint length = 0;\n\t\tint msglen = msg.length();\n\t\tfor (int ctr = 0; ctr < msglen; ctr++)\n\t\t{\n\t\t\tchar cr = msg.charAt(ctr);\n\t\t\tif (cr == '{' || cr == '}')\n\t\t\t\tlength--;\n\t\t\telse if (cr == '^')\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tlength++;\n\t\t}\n\t\treturn length;\n\t}",
"public static String comment(String string, boolean docs, int charCountPerLine){\n //purposefully rounding down\n String concl = \"\";\n String[] words = string.split(\" \");\n int counter = 0;\n String tempString = \"\";\n while (counter < words.length){\n if (words[counter].length() + tempString.length() < charCountPerLine){\n tempString += words[counter] + \" \";\n if (words[counter].contains(\"\\n\")) {//in case the word has \\n in it\n concl += tempString;\n tempString = \"\";\n }\n counter++;\n }\n else{\n //if a word is longer than charCount, make it a line by itself\n if (tempString.length() == 0){\n concl += words[counter] + \" \\n\";\n counter++;\n }\n ///most other cases are this\n else{\n concl += tempString + \"\\n\";\n tempString = \"\";\n }\n }\n }\n return comment(concl + tempString, docs, \"\\n\");\n }",
"@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }",
"public int countSegments(String s) {\r\n int count = 0;\r\n boolean flag = true;\r\n if (s.length() == 0) return 0;\r\n \r\n for (char c : s.toCharArray()) {\r\n if (c == 32) {\r\n flag = true;\r\n } else if (c != 32 && flag) {\r\n flag = false;\r\n count++;\r\n }\r\n }\r\n \r\n return count;\r\n }",
"static int size_of_jpe(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_jc(String passed){\n\t\treturn 3;\n\t}",
"@Test(timeout = 4000)\n public void test019() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }",
"private int countNumberOfStringBlocks() {\n\t\tint counter = 0;\n\t\tString currentLine = \"\";\n\t\t\n\t\twhile (reader.hasNext()) {\n\t\t\tif(currentLine.isEmpty()) {\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t\t\t\n\t\t\t\tif(!currentLine.isEmpty()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t}\n\t\t\n\t\t\n\t\treturn counter;\n\t}",
"@Test(timeout = 4000)\n public void test118() throws Throwable {\n StringReader stringReader0 = new StringReader(\"<SINGLE_LINE_COMMENT>\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(18, javaCharStream0.bufpos);\n assertEquals(50, javaCharStream0.getEndColumn());\n }",
"protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }",
"public abstract char getCommentChar();",
"public Integer getCommentCount() {\n return commentCount;\n }",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }",
"static int size_of_cnc(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_cc(String passed){\n\t\treturn 3;\n\t}",
"public int getCommentsCount() {\n return commentsCount_;\n }",
"public int getProtocolDelimitedLength();",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }",
"static int size_of_jnc(String passed){\n\t\treturn 3;\n\t}",
"public int length() {\n/* 103 */ return this.m_str.length();\n/* */ }",
"private static int GetNumberOfDeletion(String str) {\n\n\t\tint deleteDNumber = 0;\n\t\tString uniqueArray = str.chars().distinct().mapToObj(c -> String.valueOf((char) c))\n\t\t\t\t.collect(Collectors.joining());\n\t\tList<Integer> list = new ArrayList<>();\n\t\tHashMap<Character, Integer> hm = new HashMap<>();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif (hm != null && hm.containsKey(str.charAt(i))) {\n\t\t\t\thm.put(str.charAt(i), hm.get(str.charAt(i)) + 1);\n\t\t\t} else {\n\t\t\t\thm.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < uniqueArray.length(); i++) {\n\t\t\tint count = hm.get(uniqueArray.charAt(i));\n\t\t\twhile (count != 0 && list.contains(count)) {\n\t\t\t\tcount--;\n\t\t\t\tdeleteDNumber++;\n\t\t\t}\n\t\t\tlist.add(count);\n\t\t}\n\n\t\treturn deleteDNumber;\n\n\t}",
"private StringBuilder stripWhitespace(String description)\n/* */ {\n/* 1650 */ StringBuilder result = new StringBuilder();\n/* */ \n/* */ \n/* 1653 */ int start = 0;\n/* 1654 */ while ((start != -1) && (start < description.length()))\n/* */ {\n/* */ \n/* 1657 */ while ((start < description.length()) && (PatternProps.isWhiteSpace(description.charAt(start)))) {\n/* 1658 */ start++;\n/* */ }\n/* */ \n/* */ \n/* 1662 */ if ((start < description.length()) && (description.charAt(start) == ';')) {\n/* 1663 */ start++;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 1670 */ int p = description.indexOf(';', start);\n/* 1671 */ if (p == -1)\n/* */ {\n/* */ \n/* 1674 */ result.append(description.substring(start));\n/* 1675 */ start = -1;\n/* */ }\n/* 1677 */ else if (p < description.length()) {\n/* 1678 */ result.append(description.substring(start, p + 1));\n/* 1679 */ start = p + 1;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* 1687 */ start = -1;\n/* */ }\n/* */ } }\n/* 1690 */ return result;\n/* */ }",
"public int getStaticCharsCount() {\n return 0;\n }",
"static int size_of_cnz(String passed){\n\t\treturn 3;\n\t}",
"public static void main(String[] args) {\n\n\t\tString str=\"I love Florida @@***\";\n\t\t\n\t\tString[] array=str.split(\" \");\n\t\t\n\t\t\n\t\tSystem.out.println(str.replaceAll(\"[A-Za-z]\", \"\").length());\n\t\t\n\t\tSystem.out.println(array.length);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public int minDeletionsToObtainStringInRightFormat(String s) {\n if (s == null || s.isEmpty()) {\n return 0;\n }\n\n int countA = 0;\n int countB = 0;\n int toDelete = 0;\n\n for (char c : s.toCharArray()) {\n if (c == 'A') {\n countA++;\n if (countB > toDelete) {\n toDelete++;\n }\n } else {\n countB++;\n }\n }\n\n return Math.min(countA, Math.min(countB, toDelete));\n }",
"static int getNumPatterns() { return 64; }",
"protected static int removeWhiteSpace(char[] data) {\n if (data == null)\n return 0;\n \n // count characters that's not whitespace\n int newSize = 0;\n int len = data.length;\n for (int i = 0; i < len; i++) {\n if (!isWhiteSpace(data[i]))\n data[newSize++] = data[i];\n }\n return newSize;\n }",
"static int size_of_daa(String passed){\n\t\treturn 1;\n\t}",
"public long getCommentCount() {\n return comments;\n }",
"private static int removeWhiteSpace(char[] data) {\n if (CommonUtil.isNull(data)) {\n return 0;\n }\n\n // count characters that's not whitespace\n int newSize = 0;\n int len = data.length;\n for (int i = 0; i < len; i++) {\n if (!isWhiteSpace(data[i])) {\n data[newSize++] = data[i];\n }\n }\n return newSize;\n }",
"static int size_of_jz(String passed){\n\t\treturn 3;\n\t}",
"public String delimiterRegex() {\n return DELIMITER_REGEX;\n }",
"int getMaxStringLiteralSize();",
"private int countLength ( StringBuffer sequence )\n{\n int bases = 0;\n\n // Count up the non-gap base characters.\n for ( int i = 0; i < sequence.length (); i++ )\n\n if ( sequence.charAt ( i ) != '*' ) bases++;\n\n return bases;\n}",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }",
"public java.lang.String getDelete() {\n java.lang.String ref = \"\";\n if (patternCase_ == 5) {\n ref = (java.lang.String) pattern_;\n }\n return ref;\n }",
"private void skipCommentLine() {\n while (position < length) {\n int c = data.charAt(position);\n if (c == '\\r' || c == '\\n') {\n return;\n }\n position++;\n }\n }",
"static int size_of_dcr(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_cm(String passed){\n\t\treturn 3;\n\t}",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"private String removeComments(String str) {\n boolean inDQ = false;\n boolean inSQ = false;\n \n String result = str;\n \n for(int i = 0; i < result.length()-1; i++) {\n char c = result.charAt(i);\n \n if(inDQ) {\n if(c == '\\\"' && result.charAt(i-1) != '\\\\') {\n inDQ = false;\n }\n }\n else if(inSQ) {\n if(c == '\\'' && result.charAt(i-1) != '\\\\') {\n inSQ = false;\n }\n }\n else {\n \n // Line comment\n if(c == '/' && result.charAt(i+1) == '/') {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex);\n i--;\n }\n \n // Block comment\n else if(c == '/' && result.charAt(i+1) == '*') {\n int endBlockIndex = result.indexOf(\"*/\", i) + 2;\n \n result = result.substring(0, i) + result.substring(endBlockIndex);\n i--;\n }\n \n // Python comment\n else if(c == '#' && (i == 0 || result.charAt(i-1) == '\\n')) {\n int newLineIndex = result.indexOf(\"\\n\", i);\n \n result = result.substring(0, i) + result.substring(newLineIndex+1); \n i--;\n }\n else if(c == '\\\"') {\n inDQ = true;\n }\n else if(c == '\\'') {\n inSQ = true;\n }\n }\n }\n \n return result;\n }",
"public static int sizeOf()\n {\n return 4;\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"static int size_of_cp(String passed){\n\t\treturn 3;\n\t}",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private int ignoreComment(int nextVal) throws java.io.IOException {\n\t\tint c = nextVal;\n\t\twhile (!isNewLine(c) && c != EOF) {\n\t\t\tc = reader.read();\n\t\t}\n\t\treturn c;\n\t}",
"@Override\n\tpublic int getLength() {\n\t\tint c = 0;\n\t\tfor (char c1 : theString.toCharArray()) {\n\t\t\tc++;\n\t\t}\n\t\treturn c;\n\t}",
"static int size_of_pchl(String passed){\n\t\treturn 1;\n\t}"
]
| [
"0.6223086",
"0.6139729",
"0.6040746",
"0.57000965",
"0.5572187",
"0.5515099",
"0.54886687",
"0.5474645",
"0.54639935",
"0.5459915",
"0.5458011",
"0.5448354",
"0.54392415",
"0.54300743",
"0.5421933",
"0.54114234",
"0.5408601",
"0.5405779",
"0.539674",
"0.53832614",
"0.53233594",
"0.5322822",
"0.5319587",
"0.530121",
"0.52870625",
"0.5275314",
"0.5268242",
"0.5252948",
"0.5221962",
"0.520882",
"0.51774645",
"0.5149853",
"0.51315355",
"0.5125911",
"0.512005",
"0.5111047",
"0.51022905",
"0.50939804",
"0.5090544",
"0.50830966",
"0.5078822",
"0.5064165",
"0.50627065",
"0.505678",
"0.50549006",
"0.50506943",
"0.50314057",
"0.50283456",
"0.5020312",
"0.5018983",
"0.5014565",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50096166",
"0.50021744",
"0.49985707",
"0.49939054",
"0.49939054",
"0.49939054",
"0.49939054",
"0.49939054",
"0.49935132",
"0.49929056",
"0.49825338",
"0.49687296",
"0.49660233"
]
| 0.5393423 | 19 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_user_information, container, false);
nombre = (EditText) view.findViewById(R.id.rg_nombre);
apellido = (EditText) view.findViewById(R.id.rg_apellido);
cedula = (EditText) view.findViewById(R.id.rg_cedula);
tomo = (EditText) view.findViewById(R.id.rg_tomo);
asiento = (EditText) view.findViewById(R.id.rg_asiento);
fecha = (EditText) view.findViewById(R.id.rg_fecha_nacimiento);
sexo = (TextView) view.findViewById(R.id.rg_sexo);
etnia = (TextView) view.findViewById(R.id.rg_etnia_text);
sp_etnia = (Spinner) view.findViewById(R.id.rg_etnia);
sp_sexo = (Spinner) view.findViewById(R.id.rg_sp_sexo);
sp_ced = (Spinner) view.findViewById(R.id.sp_ced);
ced = new ArrayList<>();
ced.add("01");
ced.add("02");
ced.add("03");
ced.add("04");
ced.add("05");
ced.add("06");
ced.add("07");
ced.add("08");
ced.add("09");
ced.add("10");
ced.add("11");
ced.add("12");
ced.add("13");
ced.add("AV");
ced.add("E");
ced.add("N");
ced.add("PE");
ced.add("PI");
ced.add("SB");
sp_ced.setAdapter(new ArrayAdapter<String>(getContext(),R.layout.support_simple_spinner_dropdown_item,ced));
sp_ced.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
cedula.setText(adapterView.getSelectedItem().toString());
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
presenterINT = new RegistroPresenterIMP(this);
etnias = new ArrayList<>();
adapterEtnias = new ArrayAdapter<Etnia>(getContext(), R.layout.support_simple_spinner_dropdown_item,etnias);
arraySexo = new ArrayList<>();
arraySexo .add("Mujer");
arraySexo .add("Hombre");
adapterSexo = new ArrayAdapter<String>(getContext(), R.layout.support_simple_spinner_dropdown_item,arraySexo);
sp_sexo .setAdapter(adapterSexo);
sp_etnia .setAdapter(adapterEtnias);
presenterINT .getEtnias(getContext());
btn_fecha_rg = (Button) view.findViewById(R.id.btn_fecha_rg);
btn_fecha_rg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
showFechaDialogo(view);
}
});
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
/ access modifiers changed from: packageprivate | public void logValue(String str, byte[] bArr) {
if (bArr == null) {
bArr = this.gattCharacteristic.getValue();
}
String bytesToHex = bArr != null ? ByteUtils.bytesToHex(bArr) : "(null)";
RxBleLog.m1116v(str + " Characteristic(uuid: " + this.gattCharacteristic.getUuid().toString() + ", id: " + this.f1174id + ", value: " + bytesToHex + ")", new Object[0]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"public abstract void mo70713b();",
"public void m23075a() {\n }",
"public void mo38117a() {\n }",
"private MApi() {}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void mo21779D() {\n }",
"public abstract void mo27386d();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"void m1864a() {\r\n }",
"public abstract Object mo26777y();",
"public void mo21825b() {\n }",
"protected boolean func_70814_o() { return true; }",
"public final void mo91715d() {\n }",
"public abstract void mo27385c();",
"public void mo97908d() {\n }",
"public void mo21782G() {\n }",
"private TMCourse() {\n\t}",
"private test5() {\r\n\t\r\n\t}",
"private Util() { }",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private abstract void privateabstract();",
"public void mo21877s() {\n }",
"public void mo21787L() {\n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo21791P() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public abstract void mo6549b();",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }",
"public void mo23813b() {\n }",
"public void mo44053a() {\n }",
"public void smell() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo115190b() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo21785J() {\n }",
"public void mo21793R() {\n }",
"public void mo21878t() {\n }",
"public void mo56167c() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public abstract String mo118046b();",
"private SourcecodePackage() {}",
"public void mo115188a() {\n }",
"public abstract String mo41079d();",
"void mo57277b();",
"public void mo6944a() {\n }",
"public abstract void mo42329d();",
"public abstract void mo30696a();",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"private final zzgy zzgb() {\n }",
"protected boolean func_70041_e_() { return false; }",
"zzafe mo29840Y() throws RemoteException;",
"private Singletion3() {}",
"public abstract void mo42331g();",
"public abstract void mo35054b();",
"public abstract String mo13682d();",
"public void mo21786K() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo21794S() {\n }",
"public void mo12628c() {\n }",
"private Infer() {\n\n }",
"public void mo9848a() {\n }",
"private OMUtil() { }",
"public abstract void mo27464a();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo2740a() {\n }",
"private NativeSupport() {\n\t}",
"@Override\n public boolean isPrivate() {\n return true;\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}"
]
| [
"0.7151204",
"0.6685856",
"0.65579224",
"0.64821804",
"0.6429287",
"0.6384333",
"0.63834417",
"0.63473904",
"0.63293463",
"0.6275806",
"0.62622887",
"0.62497604",
"0.62368774",
"0.623226",
"0.62282825",
"0.61979276",
"0.61979276",
"0.61937356",
"0.618325",
"0.6179347",
"0.6156394",
"0.6152321",
"0.6150922",
"0.6116055",
"0.61086726",
"0.6107442",
"0.6086904",
"0.60811025",
"0.6072478",
"0.60696185",
"0.60570914",
"0.6054833",
"0.6054526",
"0.60525656",
"0.60491097",
"0.60460424",
"0.6045443",
"0.60358196",
"0.6024209",
"0.6024209",
"0.6024209",
"0.6024209",
"0.6019897",
"0.6018897",
"0.60171866",
"0.60158986",
"0.60048693",
"0.6001631",
"0.5998349",
"0.59978527",
"0.5995711",
"0.5994793",
"0.59905267",
"0.59905267",
"0.59905267",
"0.59905267",
"0.59905267",
"0.59905267",
"0.59905267",
"0.5989437",
"0.5986115",
"0.5986115",
"0.59834504",
"0.5981717",
"0.5972327",
"0.5957651",
"0.59563696",
"0.5951661",
"0.5950725",
"0.59470475",
"0.59463423",
"0.5943738",
"0.5941805",
"0.59394234",
"0.5937379",
"0.59370273",
"0.59262437",
"0.59262437",
"0.59256387",
"0.592516",
"0.59133077",
"0.5910573",
"0.59043795",
"0.5903848",
"0.59034365",
"0.5898162",
"0.58955926",
"0.5892817",
"0.5892674",
"0.588908",
"0.5881135",
"0.58779347",
"0.5876591",
"0.5876238",
"0.5875925",
"0.5872185",
"0.58655745",
"0.58654153",
"0.5865284",
"0.586524",
"0.586524"
]
| 0.0 | -1 |
los achivos en color verde son colores nuevos | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}",
"public void colorearSecuencialAlternativo() {\n\t\tint color;\n\t\tcantColores = 0;\n\t\tfor (int i = 0; i < cantNodos; i++) {\n\t\t\tcolor = 1;\n\t\t\t/** Mientras el color no se pueda usar, elijo otro color **/\n\t\t\twhile (!sePuedeColorear(i, color))\n\t\t\t\tcolor++;\n\n\t\t\tnodos.get(i).setColor(color);\n\n\t\t\tif (color > cantColores)\n\t\t\t\tcantColores = color;\n\t\t}\n\t}",
"public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }",
"private Color couleurOfficiel( int numeroDeCouleur) {\n\t\tif(numeroDeCouleur ==1) {\n\n\t\t\treturn new Color(230,57,70);\n\t\t}\n\n\t\tif(numeroDeCouleur ==2) {\n\n\t\t\treturn new Color(241,250,238);\n\t\t}\n\t\tif(numeroDeCouleur ==3) {\n\n\t\t\treturn new Color(168,218,220);\n\t\t}\n\t\tif(numeroDeCouleur ==4) {\n\n\t\t\treturn new Color(168,218,220);\n\t\t}\n\t\telse {\n\t\t\treturn new Color(29,53,87);\n\t\t}\n\n\t}",
"public void decida()\n {\n if(color == Color.red)\n {\n color = Color.yellow;\n }\n \n else if(color == Color.yellow){\n color = Color.red;\n }\n }",
"public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }",
"private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }",
"public void ocultarMensaje(String msje, String fo, String nueFo){\n String mensaje, binario;\n Color color;\n int r,g,b;\n try{\n mensaje = lecturaArchivo(msje);\n binario = preparaMensaje(mensaje);\n BufferedImage image = sacaFoto(fo);\n int k = 0;\n for(int i = 0; i < image.getHeight(); i++)\n for(int j = 0; j < image.getWidth(); j++){\n color = new Color(image.getRGB(j, i));\n if(k <= binario.length()){\n String red = toBinary((byte) color.getRed());\n String green = toBinary((byte) color.getGreen());\n String blue = toBinary((byte) color.getBlue());\n red = reemplazarLSB(red, binario);\n green = reemplazarLSB(green, binario);\n blue = reemplazarLSB(blue, binario);\n r = Integer.parseInt(red ,2);\n g = Integer.parseInt(green ,2);\n b = Integer.parseInt(blue ,2);\n }else{\n r = color.getRed();\n g = color.getGreen();\n b = color.getBlue();\n }\n image.setRGB(j, i, new Color(r,g,b).getRGB());\n k+=3;\n }\n File output = new File(nueFo);\n ImageIO.write(image, \"png\", output);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la escritura de la imagen\");\n System.exit(1);\n }\n }",
"Rey(){\r\n \r\n color_rey=Color.BLANCO;\r\n posicion_rey.fila=1;\r\n posicion_rey.columna='e';\r\n \r\n }",
"protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }",
"private void red(){\n\t\tthis.arretes_fR();\n\t\tthis.coins_fR();\n\t\tthis.coins_a1R();\n\t\tthis.coins_a2R();\n\t\tthis.aretes_aR();\n\t\tthis.cube[13] = \"R\";\n\t}",
"private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }",
"void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }",
"private void yellow(){\n\t\tthis.arretes_fY();\n\t\tthis.coins_fY();\n\t\tthis.coins_a1Y();\n\t\tthis.coins_a2Y();\n\t\tthis.aretes_aY();\n\t\tthis.cube[49] = \"Y\";\n\t}",
"@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}",
"private void updateMainColors () {\n int mainColor = getCurrentMainColor();\n int index = 0;\n int[] topColors = new int[256];\n for ( int y = 0; y < 256; y++ ) {\n for ( int x = 0; x < 256; x++ ) {\n if ( y == 0 ) {\n mMainColors[index] = Color.rgb( 255 - ( 255 - Color.red( mainColor ) ) * x / 255, 255 - ( 255 - Color.green( mainColor ) ) * x / 255, 255 - ( 255 - Color.blue( mainColor ) ) * x / 255 );\n topColors[x] = mMainColors[index];\n } else\n mMainColors[index] = Color.rgb( ( 255 - y ) * Color.red( topColors[x] ) / 255, ( 255 - y ) * Color.green( topColors[x] ) / 255, ( 255 - y ) * Color.blue( topColors[x] ) / 255 );\n index++;\n }\n }\n }",
"public Coche (String color, String modelo) {\r\n\t super(color, modelo);\r\n\t numeroDeRuedas = 4;\r\n\t }",
"RGB getNewColor();",
"private void trocaCor(int btn) {\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n bt_Resultado.setColorFilter(getResources().getColor(R.color.white));\n bt_Triangulo.setColorFilter(getResources().getColor(R.color.white));\n bt_Compatibilidade.setColorFilter(getResources().getColor(R.color.white));\n bt_Arcanos.setColorFilter(getResources().getColor(R.color.white));\n bt_Descricao.setColorFilter(getResources().getColor(R.color.white));\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n // COR PARA PRAGMENTO DESATIVO\n\n // COR PARA FRAGMENTO ATIVO\n ImageButton bt = findViewById(btn);\n bt.setColorFilter(getResources().getColor(R.color.TODO));\n // COR PARA FRAGMENTO ATIVO\n }",
"@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }",
"private String comprobarColor(String color) {\r\n String colores[] = { \"blanco\", \"negro\", \"rojo\", \"azul\", \"gris\" };\r\n boolean encontrado = false;\r\n for (int i = 0; i < colores.length && !encontrado; i++) {\r\n if (colores[i].equals(color)) {\r\n encontrado = true;\r\n }\r\n }\r\n if (encontrado) {\r\n this.color = color;\r\n } else {\r\n this.color = COLOR_POR_DEFECTO;\r\n }\r\n return this.color;\r\n }",
"public void bolita2() {\n fill(colores[f]); // Color random seg\\u00fan array anteriormente mencionado.\n noStroke();\n ellipse(y, x, a, b);\n }",
"private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }",
"private void aggiornaMappeColori(Scena scena) {\n\t\tMappaColori colori=creaMappaColoriCompleta(scena.getPersonaggiPrincipali());\n\t\t// pulisce l'elenco delle mappe di colori associate ad ogni\n\t\t// visualizzatore\n\t\taggiornaColori(colori);\n\t}",
"public void PonerColor(JTextPane modif, String str){\n ChangeColor=new CuadroTexto();\n ChangeColor.setPrueva(modif);\n String an =\"\"; \n int d = 0;\n while(d < str.length()){\n if(str.charAt(d) == ';'){\n for(int i = d; i < str.length();i++){\n if(str.charAt(d+1) != '('){\n an += str.charAt(d);\n d++;\n }\n }\n ChangeColor.append(new Color(153,102,0), an);\n an = \"\";\n }\n if(str.charAt(d) == '('){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d++;\n for(int i = d; i < str.length();i++){ \n if(d < str.length()){\n if(str.charAt(d) == '('){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n }\n /*if(d < str.length()){\n if(str.charAt(d) == '\"'){\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n for(int q = d; (str.charAt(d) != '\"') && (str.charAt(d+1) != ' '); q++){\n \n System.out.println(\"si estoy mucho\");\n an += str.charAt(d);\n i++;\n d++;\n\n }\n ChangeColor.append(new Color(0,0,0), an);\n an = \"\";\n }\n }*/\n /*if(d < str.length()){\n for(int z = d; z < str.length(); z++)\n if(((str.charAt(d) == '0') && (str.charAt(d) == ' ')) || ((str.charAt(d) == '1') && (str.charAt(d) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '2') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '3') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '4') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '5') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '6') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '7') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '8') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '9') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n \n }*/\n if(d < str.length()){\n for(int b = d; b < str.length();b++){\n if(str.charAt(d) == ')'){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n }\n\n }\n \n if(d < str.length()){\n ChangeColor.append(new Color(25, 25, 112), Character.toString(str.charAt(d)));\n }\n \n d++;\n }\n an = \"\";\n }\n d++;\n } \n }",
"public void deleteColors();",
"public void Color() {\n\t\t\r\n\t}",
"String getColor();",
"void fill(int rgb);",
"public void RGB_Change(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 Change\");\r\n adb.setItems(colors, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n color[which]=255;\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n }\r\n });\r\n adb.setPositiveButton(\"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 }",
"private void initRelationsColors() {\n for (int i=0;i<20;i++) {\n int r = 255-(i*12);\n int gb = 38-(i*2);\n relationsC[i] = newColor(r,gb,gb);\n }\n // do green.. 20-39, dark to bright\n for (int i=0;i<20;i++) {\n int g = 17+(i*12);\n int rb = i*2;\n relationsC[20+i] = newColor(rb,g,rb);\n }\n }",
"public int getColor();",
"public int getColor();",
"public void init_colors(Color c1,Color c2,Color c3,Color c4){\n\t\tcolors = new Color [100];\n\t\tfor (int i = 0; i < 33; i++){\n\t\t\tdouble f = ((double)i) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c1.getRed() + (f * (c2.getRed() - c1.getRed())) )),\n\t\t\t\tclamp((int)( c1.getGreen() + (f * (c2.getGreen() - c1.getGreen())) )),\n\t\t\t\tclamp((int)( c1.getBlue() + (f * (c2.getBlue() - c1.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 33; i < 66; i++){\n\t\t\tdouble f = ((double)(i - 33)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c2.getRed() + (f * (c3.getRed() - c2.getRed())) )),\n\t\t\t\tclamp((int)( c2.getGreen() + (f * (c3.getGreen() - c2.getGreen())) )),\n\t\t\t\tclamp((int)( c2.getBlue() + (f * (c3.getBlue() - c2.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 66; i < 100; i++){\n\t\t\tdouble f = ((double)(i - 66)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c3.getRed() + (f * (c4.getRed() - c3.getRed())) )),\n\t\t\t\tclamp((int)( c3.getGreen() + (f * (c4.getGreen() - c3.getGreen())) )),\n\t\t\t\tclamp((int)( c3.getBlue() + (f * (c4.getBlue() - c3.getBlue())) ))\n\t\t\t);\n\t\t}\n\t}",
"public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }",
"public void init_colors_red(){\t\n\t\tColor c1 = new Color(0,0,0);\t\t// BLACK\t\t\n\t\tColor c2 = new Color(255,0,0);\t// RED\n\t\tColor c3 = new Color(255,170,0);\t// ORANGE\n\t\tColor c4 = new Color(255,255,255);\t// WHITE\n\t\t\n\t\tinit_colors(c1,c2,c3,c4);\n\t}",
"public void touche() {\n if (theme==0) { //Changer les couleurs ici et dans Option\n couleurNote1=0xff00FF00;\n couleurNote2=0xffFF0000;\n couleurNote3=0xffFFFF00;\n couleurNote4=0xff0000FF;\n }\n if (theme==1) {\n couleurNote1=0xffFF0000;\n couleurNote2=0xffFFFF00;\n couleurNote3=0xff0081FF;\n couleurNote4=0xff973EFF;\n }\n if (theme==2) {\n couleurNote1=0xff8FF5F2;\n couleurNote2=0xffFAACE3;\n couleurNote3=0xffF5E8A6;\n couleurNote4=0xffD9F074;\n }\n if (theme==3) {\n couleurNote1=0xffD4AF37;\n couleurNote2=0xffD4AF37;\n couleurNote3=0xffD4AF37;\n couleurNote4=0xffD4AF37;\n }\n\n if (theme==4) {\n couleurNote1=PApplet.parseInt(random(0xff000000, 0xffFFFFFF));\n couleurNote2=PApplet.parseInt(random(0xff000000, 0xffFFFFFF));\n couleurNote3=PApplet.parseInt(random(0xff000000, 0xffFFFFFF));\n couleurNote4=PApplet.parseInt(random(0xff000000, 0xffFFFFFF));\n }\n //#3F48CC\n\n if (touche1) {\n cc1=0xffFFFFFF;\n } else cc1=couleurNote1;\n fill(cc1);\n rect(420, 593, taille+14, taille+13);\n\n if (touche2) {\n cc2=0xffFFFFFF;\n } else cc2=couleurNote2;\n fill(cc2);\n rect(490, 593, taille+14, taille+13);\n\n if (touche3) {\n cc3=0xffFFFFFF;\n } else cc3=couleurNote3;\n fill(cc3);\n rect(560, 593, taille+14, taille+13);\n\n if (touche4) {\n cc4=0xffFFFFFF;\n } else cc4=couleurNote4;\n fill(cc4);\n rect(630, 593, taille+14, taille+13);\n}",
"@Override\n public void ejecutarFrame() {\n //INICIAMOS EL HILO\n try{\n Thread.sleep(250);\n }\n catch (InterruptedException ie){\n ie.printStackTrace();\n }\n\n //VAMOS CAMBIANDO EL COLOR DE LAS LETRAS DE LA PANTALLA DE INICIO\n colorLetra = colorLetra == Color.WHITE ? Color.LIGHT_GRAY : Color.WHITE;\n }",
"private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}",
"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 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 TetrisColors() {\n\t\treset();\t\n\t}",
"public void modCasella(Tauler t){\n if(valor != -1){\n this.setBackground(Color.RED);\n valor = -1;\n t.subMov();\n }\n else{\n valor = 0;\n this.setBackground(color);\n t.addMov();\n }\n }",
"public static String getColorsV()\n {\n Container v = new Container();\n //mal uso del try/catch con streams\n try\n {\n Stream<String> stream = Files.lines( Paths.get( PATHROOT, \"colors2.txt\" ) );\n stream.forEach( x -> v.c = x );\n }\n catch ( Exception e )\n {\n }\n return v.c;\n }",
"@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tfor (int i = 0; i < inc.length; i++) {\n\t\t\t\t\tg.setColor(new Color(220 - i * 50, 220 - i * 50, 220 - i * 50));\n\t\t\t\t\tg.fillOval(inc[i][0], inc[i][1], 30, 30);\n\t\t\t\t}\n\t\t\t\tg.setColor(Color.yellow);\n\t\t\t\tg.fillOval(x, h, 30, 30);\n\n\t\t\t\t// 장애물\n\t\t\t\tg.setColor(Color.red);\n\t\t\t\tg.fillRect(0, 480, 800, 20);\n\t\t\t\tg.fillRect(400, 200, 50, 300);\n\t\t\t\tg.fillRect(300, 350, 100, 30);\n\t\t\t\t//\n\t\t\t\tGraphics2D g2 = bi.createGraphics();\n//\t\t\t\tthis.paintAll(g2);\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackgroundColor(color);\n\n //Toast.makeText(this, \"The new color is: \"+a, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }",
"int getColour();",
"public void resetLongColors(){\n\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\tlongColors[i] = Color.white;\n\t\t}\n\t\t\tfor(int i = 0; i < 10; i++){\n\t\t\t\tlongColors[i] = Color.black;\n\t\t\t}\n\t\t}",
"Color userColorChoose();",
"@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }",
"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 chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public int getColor(){\r\n\t\treturn color;\r\n\t}",
"@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }",
"private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }",
"private void decomposeColors(int[][] array,int[][] red,int[][] green,int[][] blue){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tfor(int j=0;j<array[0].length;j++){\n\t\t\t\tint pixel = array[i][j];\n\t\t\t\tred[i][j] = GImage.getRed(pixel);\n\t\t\t\tgreen[i][j] = GImage.getGreen(pixel);\n\t\t\t\tblue[i][j] = GImage.getBlue(pixel);\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}",
"public static void caja(int x, int y,String cadena,Color color,Graphics g){\n \n g.setColor(color); \n g.fillRect(x, y, 200, 50);\n //rectangulo color contorno\n int blue = color.getBlue();\n color = new Color(color.getRed(),color.getGreen(),color.getBlue(),color.getAlpha()-50);\n g.setColor(color); \n g.drawRect(x, y, 200, 50);\n \n \n //g.setColor( new Color(33,107,255,100));\n g.setColor(Color.white);\n g.setFont(new java.awt.Font(\"Monospaced\", 0, 18));\n g.drawString(cadena, 50+x, 25+y);\n }",
"void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }",
"public void actionPerformed(ActionEvent event) {\r\n\t\t\t\tstatusValue.setText(\"Odbieram\");\r\n\t\t\t\tcolorChangeListener.set_receive(!colorChangeListener\r\n\t\t\t\t\t\t.is_receive());\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// obiekt realizująca zmianę kolorów w wybranych elementach\r\n\t\t\t\t\t// GUI\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<ColorChangeExecutor> executors = new ArrayList<ColorChangeExecutor>();\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createCanvasColorChangeExecutor(canvas));\r\n\t\t\t\t\tList<JSlider> sliders = new ArrayList<JSlider>();\r\n\t\t\t\t\tsliders.add(sliderR);\r\n\t\t\t\t\tsliders.add(sliderG);\r\n\t\t\t\t\tsliders.add(sliderB);\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createSlidersColorChangeExecutor(sliders));\r\n\t\t\t\t\t\r\n\t\t\t\t\t// metoda uruchamia: @1 watek realizujacy nasluchiwanie na\r\n\t\t\t\t\t// zmiane kolorow @2 watek reagujacy na odbior zmiany koloru\r\n\t\t\t\t\tengine.receiveColor(executors);\r\n\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"public int colorVertices();",
"private Paint crearPintura(Casillero casillero) {\n\n\t\tPaint pintura;\n\n\t\tswitch (casillero) {\n\t\t\n\t\t\tcase BLANCAS:\n\t\t\t\tpintura = Color.WHITE;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase NEGRAS:\n\t\t\t\tpintura = Color.BLACK;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tpintura = Color.TRANSPARENT;\n\t\t}\n\n\t\treturn pintura;\n\t}",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n fade = seeker.getProgress();\r\n if(!getLucky) {\r\n Log.i(\"Poop\", \"getLucky == false\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor2){\r\n Log.i(\"Poop\", \"getLuck == true and gotColor2 ==true\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor1) {\r\n Log.i(\"Poop\", \"getLucky == true and gotColor1 == true\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else {\r\n Log.i(\"Poop\", \"getLucky == true and nothing else\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n }\r\n if(gotColor1&& gotColor2) {\r\n getLucky = false;\r\n }\r\n }",
"@Override\n public void onClick(View v) {\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 }",
"@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\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 }",
"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 }",
"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}",
"private void initColorAr() {\n\t\tcolorAr = new ArrayList<Color>();\n\t\tcolorAr.add(Color.black);\n\t\tcolorAr.add(Color.green);\n\t\tcolorAr.add(Color.red);\n\t\tcolorAr.add(Color.blue);\n\t\tcolorAr.add(Color.white);\n\t\tcolorAr.add(Color.orange);\n\t\tcolorAr.add(Color.pink);\n\t\tcolorAr.add(Color.cyan);\n\t\tcolorAr.add(Color.darkGray);\n\t\tcolorAr.add(Color.gray);\n\t\tcolorAr.add(Color.magenta);\n\t\tcolorAr.add(Color.yellow);\n\t\tr = new Random();\n\t}",
"private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }",
"private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}",
"public void crearSala(String color, int SalaoLab, String nombre, String actividad, int capacidad, int computadores, int datas, int mesas,\n int pizarras, int telones, int sillas) {\n for (int i = 0; i < edificios.size(); i++) {\n Edificio edificioActual = edificios.get(i);\n if (edificioActual.getColor().equals(color)) {\n if (SalaoLab == 0){\n edificioActual.agregarSalaClases(nombre, actividad, capacidad, computadores, datas, mesas,\n pizarras, telones, sillas);\n }\n else{\n edificioActual.agregarLaboratorio(nombre, actividad, capacidad, computadores, datas, mesas, pizarras,\n telones, sillas);\n }\n }\n }\n\n }",
"@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }",
"public char getColor();",
"public int getColor() {\n \t\treturn color;\n \t}",
"public Piezas(String color) {\r\n this.color = color;\r\n }",
"public void setRandomCombi(){\r\n Random rand = new Random();\r\n\r\n for (int i = 0; i < COMBI_LENGTH; i++){\r\n //Take a random Color, put length - 1 to avoid picking EMPTY color\r\n this.combi[i] = Colors.values()[rand.nextInt(Colors.values().length - 1)];\r\n }\r\n }",
"@Override\n public Color getColor() {\n return color;\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 void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}",
"public void pintarBloques() {\r\n for (int i = 0; i < this.PrimeraFilaDeBloques.length; i++) {\r\n if (this.PrimeraFilaDeBloques[i] == this.ES_BLOQUE) {\r\n this.pintor.setColor(Color.RED);\r\n } else {\r\n this.pintor.setColor(this.color);\r\n }\r\n this.pintor.clearRect((i * 65) + 40, 60, 60, 40);\r\n this.pintor.fillRect((i * 65) + 40, 60, 60, 40);\r\n }\r\n\r\n for (int i = 0; i < this.SegundaFilaDeBloques.length; i++) {\r\n if (this.SegundaFilaDeBloques[i] == this.ES_BLOQUE) {\r\n this.pintor.setColor(Color.RED);\r\n } else {\r\n this.pintor.setColor(this.color);\r\n }\r\n this.pintor.clearRect((i * 65) + 40, 120, 60, 40);\r\n this.pintor.fillRect((i * 65) + 40, 120, 60, 40);\r\n }\r\n }",
"public void makeRandColor(){}",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"@Override\n\t\tpublic Color color() { return color; }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Object btnOnpress = e.getSource();\n\n // Asignación del color negro\n if (btnOnpress == blackColor) {\n textAreaC.setForeground(Color.BLACK);\n textAreaC.setBackground(Color.WHITE);\n }\n\n // Asignación del color rojo\n if (btnOnpress == redColor) {\n textAreaC.setForeground(Color.RED);\n }\n\n if (btnOnpress == greenColor) {\n textAreaC.setForeground(Color.GREEN);\n }\n\n // Asignación del color amarillo\n if (btnOnpress == yellowColor) {\n textAreaC.setForeground(Color.YELLOW);\n }\n\n // Asignación del color gris oscuro\n if (btnOnpress == darkGrayColor) {\n textAreaC.setForeground(Color.DARK_GRAY);\n }\n\n // Asignación del color gris claro\n if (btnOnpress == lightGrayColor) {\n textAreaC.setForeground(Color.LIGHT_GRAY);\n }\n\n // Asignación del color gris\n if (btnOnpress == grayColor) {\n textAreaC.setForeground(Color.GRAY);\n }\n\n // Asignación del color azul\n if (btnOnpress == blueColor) {\n textAreaC.setForeground(Color.BLUE);\n }\n\n // Asignación del color magenta\n if (btnOnpress == magentaColor) {\n textAreaC.setForeground(Color.MAGENTA);\n }\n\n // Asignación del color blanco\n if (btnOnpress == whiteColor) {\n textAreaC.setForeground(Color.WHITE);\n textAreaC.setBackground(Color.BLACK);\n }\n\n // Asignación del color cyan\n if (btnOnpress == cyanColor) {\n textAreaC.setForeground(Color.CYAN);\n }\n\n // Asignación del color naranaja\n if (btnOnpress == orangeColor) {\n textAreaC.setForeground(Color.ORANGE);\n }\n\n // Asignación del color rosado\n if (btnOnpress == pinkColor) {\n textAreaC.setForeground(Color.PINK);\n }\n\n // Asignación del boton aceptar, la cual hace que la ventana se cierre\n if (btnOnpress == toAccept) {\n dispose();\n }\n\n }",
"public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}",
"private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}",
"public void turnToCorrectColor() {\n\n String gameData = DriverStation.getInstance().getGameSpecificMessage();\n if (gameData.length() != 0) {\n Color colorNeeded;\n\n switch (gameData.charAt(0)) {\n case 'B':\n colorNeeded = blue;\n break;\n case 'G':\n colorNeeded = green;\n break;\n case 'R':\n colorNeeded = red;\n break;\n case 'Y':\n colorNeeded = yellow;\n break;\n default:\n colorNeeded = null;\n break;\n }\n\n boolean onColor = false;\n while (!onColor) {\n wheelTurner.set(0.4);\n ColorMatchResult result = colorMatcher.matchClosestColor(colorSensor.getColor());\n\n if (result == colorMatcher.matchClosestColor(colorNeeded)) {\n wheelTurner.stopMotor();\n onColor = true;\n }\n System.out.print(colorSensor.getRed() + \" \" + colorSensor.getBlue() + \" \" + colorSensor.getGreen());\n }\n\n }\n }",
"@Override\n\tprotected char getColor(int position) {\n\t\treturn color;\n\t}",
"public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }",
"public void actionPerformed(ActionEvent e) {\n float zufall = (float) Math.random(); \n Color grauton = new Color(zufall,zufall,zufall);\n c.setBackground(grauton); // Zugriff auf c moeglich, da\n }",
"private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}",
"public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"public List<Color> controlGrabAmmo(List<Color> ammos){\n int nRed = 0, nBlue = 0, nYellow = 0;\n for(Color a : ammo)\n switch(a){\n case BLUE:\n nBlue++;\n break;\n case YELLOW:\n nYellow++;\n break;\n case RED:\n nRed++;\n break;\n default:\n break;\n }\n List<Color> toRemove = new ArrayList<>();\n for(Color c: ammos)\n {\n if(c == Color.BLUE) {\n if(nBlue >= 3)\n toRemove.add(c);\n nBlue++;\n }\n else if(c == Color.RED)\n {\n if(nRed >= 3)\n toRemove.add(c);\n nRed++;\n }\n else if(c == Color.YELLOW)\n {\n if(nYellow >= 3)\n toRemove.add(c);\n nYellow++;\n }\n }\n for(Color c : toRemove)\n ammos.remove(c);\n return ammos;\n }",
"public GameColor getColor();",
"public Color getColor(){\r\n return color_rey;\r\n }",
"private void generateColors(){\n\t\tRandom r = new Random();\n\t\tcurrentIndex = 0;\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tcolors[i] = COLORS_DEFAULT[r.nextInt(COLORS_DEFAULT.length)];\n\t\t}\n\t}",
"private Image takeBG(Image img) throws SlickException{\r\n\t\t//NO SE PUEDE CAMBIAR UN COLOR QUE YA ESTÁ A TRANSPARENTE\r\n\t\t//SOLO ME QUEDA HACER UNA NUEVA Y DIBUJAR SIN EL FONDO\r\n \tImage result = new Image(img.getWidth(),img.getHeight());\r\n\t\tGraphics g = result.getGraphics();\r\n\t\tg.setColor(Color.transparent);\r\n\t\tg.fillRect(0,0,img.getWidth(),img.getHeight());\r\n\t\tColor backGround = img.getColor(0, 0);\r\n\t\tfor (int y=0 ; y<img.getHeight() ; y++){\r\n \tfor (int x=0 ; x<img.getWidth() ; x++){\r\n \t\tif ( img.getColor(x, y).r != backGround.r || img.getColor(x, y).g != backGround.g || img.getColor(x, y).b != backGround.b ){\r\n \t\t\tg.setColor( img.getColor(x, y) );\r\n \t\t\tg.fillRect(x, y, 1, 1);\r\n \t\t}\r\n }\r\n }\r\n\t\tg.flush();//IMPORTANT!!!\r\n \treturn result;\r\n }",
"public String toString (){\r\n \r\n String mensaje=\"El rey color \"+color_rey+\" esta en la fila \"+posicion_rey.fila+\" y columna \"+posicion_rey.columna+\".\";\r\n \r\n return mensaje;\r\n \r\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 }"
]
| [
"0.6873983",
"0.68522274",
"0.68300366",
"0.6822404",
"0.67505425",
"0.6650139",
"0.6565505",
"0.65637165",
"0.64921737",
"0.64538336",
"0.64432263",
"0.6429804",
"0.6418446",
"0.6381722",
"0.63477963",
"0.632491",
"0.62956196",
"0.6283951",
"0.62822556",
"0.62739056",
"0.6243183",
"0.6242828",
"0.624119",
"0.6230411",
"0.6228889",
"0.62089866",
"0.6188836",
"0.61880684",
"0.618372",
"0.6157727",
"0.6140753",
"0.6135097",
"0.6135097",
"0.61314476",
"0.61296314",
"0.6125355",
"0.61086047",
"0.6108414",
"0.60763353",
"0.605603",
"0.60538244",
"0.6037114",
"0.60246134",
"0.60231686",
"0.59785",
"0.597273",
"0.59691083",
"0.595878",
"0.59574056",
"0.5950585",
"0.5945864",
"0.59444267",
"0.59326",
"0.5931787",
"0.5927573",
"0.592044",
"0.590462",
"0.5897408",
"0.5893059",
"0.5884952",
"0.587739",
"0.58751756",
"0.58740276",
"0.5872549",
"0.58591723",
"0.5856282",
"0.5855423",
"0.58390355",
"0.58385384",
"0.58382374",
"0.5833445",
"0.5831985",
"0.58311945",
"0.5829252",
"0.5823221",
"0.58207333",
"0.5820602",
"0.5819296",
"0.58160686",
"0.5808119",
"0.58066046",
"0.58051395",
"0.5805095",
"0.5805095",
"0.5802766",
"0.57975805",
"0.57959247",
"0.5795619",
"0.5790819",
"0.579032",
"0.5789886",
"0.57895106",
"0.57861125",
"0.5780787",
"0.57793355",
"0.5776335",
"0.577173",
"0.5761146",
"0.5760955",
"0.5760338",
"0.575667"
]
| 0.0 | -1 |
User: alexkorotkikh Date: 12/20/13 Time: 7:18 PM | public interface EmployeeDao {
List<Employee> getAllEmployees() throws ParseException, SQLException;
Employee getEmployeeById(Integer id) throws ParseException, SQLException;
Collection<Employee> getEmployeesByTitle(String title) throws ParseException;
Collection<Employee> getEmployeesWithSalaryHigherTham(Integer salary) throws ParseException;
Collection<Employee> getEmployeesWithNameStartsWith(String firstLetter) throws ParseException;
Collection<Employee> getSubordinatesByManagerId(Integer managerId) throws ParseException;
void saveEmployee(Employee employee) throws SQLException;
void updateEmployee(Employee employee);
void deleteEmployee(Employee employee);
void setManagerForEmployee(Employee employee, Employee manager);
Collection<Employee> getEmployeesByName(String name) throws SQLException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }",
"Long getUserCreated();",
"public static String getUserPassDate() {\n return getUserPassDate(user);\n }",
"Date getAccessTime();",
"private void formatTime() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tm_timeSent = ft.format(date).toString();\r\n\t}",
"private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }",
"public int getUserTime() {\n\t\treturn this.userTime;\n\t}",
"Date getLastLogin();",
"private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}",
"public Date getDateCreated(){return DATE_CREATED;}",
"String getCreated_at();",
"public Date getGmtLogin() {\n return gmtLogin;\n }",
"public void setEntryUserTime( Date entryUserTime ) {\n this.entryUserTime = entryUserTime;\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"long getLoginAt();",
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}",
"public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }",
"public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}",
"int getSignOnTime();",
"Date getDateCreated();",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"@Test\n\tpublic void t1_date_main() {\n\t\tDate in = Date.from(K_ZDT.toInstant());\n\t\t\n\t\t_TestEntityWithDate toDb = new _TestEntityWithDate();\n\t\ttoDb.setId(new Random().nextLong());\n\t\ttoDb.setUserEntered(in);\n\t\t\n\t\tmongo.save(toDb);\n\t\t\n\t\t_TestEntityWithDate fromDb = mongo.findById(toDb.getId(), _TestEntityWithDate.class);\n\t\tassertNotNull(fromDb);\n\t\t\n\t\tassertEquals(in, fromDb.getUserEntered());\n\t}",
"String timeCreated();",
"@Override\n public void setUserTimestamp(Date date) {\n }",
"public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }",
"public static String getUserPassDate(String username) {\n if (username.equals(\"\")) return \"\";\n String s = dateMap.get(username);\n return (s != null) ? s : \"\";\n }",
"Date getLastAccessDate();",
"private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"@Test\n public void withRightDates() {\n Assert.assertEquals(createUserChecking.creationChecking(randomLogin,email, By.xpath(\"//div[@align='center']\")),\"Created user \"+randomLogin+\" with an access level of reporter\\n[ Proceed ]\");\n log.info(\"login \"+randomLogin+\" and email \"+email+\" were typed\");\n\n passConfirm=mailRuReader.letterActivation();\n String randomPassword=random.getNewRandomName();\n Assert.assertEquals(passConfirm.passwordEntering(randomPassword),\"Password successfully updated\\n\" +\"Operation successful.\\n\" + \"[ Proceed ]\");\n log.info(\"Password \"+randomPassword+ \" was successfully typed and user was created correctly\");\n mailRuReader.letterDeleting();\n\n }",
"public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}",
"public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}",
"@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}",
"public String getCreatetime() {\r\n return createtime;\r\n }",
"Date getLastLoginDate();",
"public String getDate(){ return this.start_date;}",
"public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}",
"public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}",
"void setUserCreated(final Long userCreated);",
"public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}",
"private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t;\r\n\t}",
"@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public String getDate(){\n return date;\n }",
"private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"@Override\r\n\tpublic Date getLoginDate() {\n\t\treturn null;\r\n\t}",
"public static void main(String[] args) {\n DateFormat df=new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss a\");\n \n //Get the date today using calender object.\n Date today=Calendar.getInstance().getTime();\n //using DateFormat format method we can create a string\n //representation of a date with the defined format.\n String reportDate=df.format(today);\n //print what date is today!\n System.out.println(\"Current Date: \"+reportDate);\n }",
"private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}",
"Date getRequestedAt();",
"public String Get_date() \n {\n \n return date;\n }",
"if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }",
"static String utc(String column, String user_id) {\n return \"SELECT \" + column + \" FROM \" + TableList.TABLE_UTC + \" WHERE \" + Constants.USER_ID + \"=\" + user_id;\n }",
"private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }",
"private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }",
"public Date getCreationDate() {\n\n \n return creationDate;\n\n }",
"@Override\n public String toString() {\n return this.getTimestamp().atZone(ZoneId.of(\"Europe/Vienna\")).format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy HH:mm\"))\n + \" \" + this.getFirstName()\n + \" \" + this.getLastName().substring(0,1) + \".\"\n //+ \", \" + this.getTelephoneNo()\n //+ \" (\" + this.getEmail() + \")\"\n ;\n }",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"public Date getDateCreated();",
"public Date getDate_of_admission() {\r\n return date_of_admission;\r\n }",
"public static boolean isPassOneHour(String pass)\n {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = new Date();\n String current = dateFormat.format(date);\n\n //Extract current data time all values\n\n int current_year = Integer.parseInt(current.substring(0, 4));\n int current_month = Integer.parseInt(current.substring(5,7))-1;\n int current_day = Integer.parseInt(current.substring(8,10));\n\n int current_hour = Integer.parseInt(current.substring(11,13));\n int current_minute = Integer.parseInt(current.substring(14,16));\n int current_seconds = Integer.parseInt(current.substring(17));\n\n //String pass = \"2016-10-05 10:14:00\";\n\n //Extract last update data (pass from parameter\n\n int year = Integer.parseInt(pass.substring(0, 4));\n int month = Integer.parseInt(pass.substring(5,7))-1;\n int day = Integer.parseInt(pass.substring(8,10));\n\n int hour = Integer.parseInt(pass.substring(11,13));\n int minute = Integer.parseInt(pass.substring(14,16));\n int seconds = Integer.parseInt(pass.substring(17));\n\n\n System.out.println(\"CURRENT: \" + current_year+\"/\"+current_month+\"/\"+current_day+\" \"+current_hour+\":\"+current_minute+\":\"+current_seconds);\n\n System.out.println(\"PASS: \" + year+\"/\"+month+\"/\"+day+\" \"+hour+\":\"+minute+\":\"+seconds);\n\n if (current_year == year)\n {\n if (current_month == month)\n {\n if (current_day == day)\n {\n if (current_hour > hour)\n {\n if ((current_hour - hour > 1))\n {\n //Bi ordu gutxienez\n System.out.println(\"Bi ordu gutxienez: \" + (current_hour) + \" / \" + hour);\n return true;\n }\n else\n {\n if (((current_minute + 60) - minute ) < 60)\n {\n //Ordu barruan dago\n System.out.println(\"Ordu barruan nago ez delako 60 minutu pasa: \" + ((current_minute + 60) - minute ));\n return false;\n }\n else\n {\n //Refresh\n System.out.println(\"Eguneratu, ordu bat pasa da gutxienez: \" + ((current_minute + 60) - minute ));\n return true;\n }\n }\n\n }\n }\n }\n }\n return false;\n }",
"public String getCreatetime() {\n return createtime;\n }",
"public String getCreatetime() {\n return createtime;\n }",
"private Date getSamoaNow() {\n\t\t// Get the current datetime in UTC\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(new Date());\n\t\t\n\t\t// Get the datetime minus 11 hours (Samoa is UTC-11)\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, -11);\n\t\t\n\t\treturn calendar.getTime();\n\t}",
"@Override\n public String getResumeDate() {\n return operate_time;\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public void updateUserDate(User user){\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_AGE, user.getNume());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_EMAIL + \" = ?\",\n new String[]{String.valueOf(user.getEmail())});\n db.close();\n }",
"public Date getCreatTime() {\n return creatTime;\n }",
"public Date getCreatTime() {\n return creatTime;\n }",
"Date getTimestamp()\n{\n return time_stamp;\n}",
"private void updateTimeTxtV()\n {\n String timeFormat =\"hh:mm aaa\";//12:08 PM\n SimpleDateFormat stf = new SimpleDateFormat(timeFormat, Locale.CANADA);\n timeStr = stf.format(cal.getTime());\n timeTxtV.setText(timeStr);\n\n //unix datetime for saving in db\n dateTimeUnix = cal.getTimeInMillis() / 1000L;\n }",
"public int getTime() { return _time; }",
"public static void main(String[] args) {\n\n\t\tDate d=new Date();\n\t\tSimpleDateFormat sdf= new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tSimpleDateFormat hms= new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\tSystem.out.println(sdf.format(d));\n\t\tSystem.out.println(hms.format(d));\n\t\tSystem.out.println(d.toString());\n\t}",
"public Date getCreationDate();",
"public int getCreatedTime() {\n return createdTime_;\n }",
"private Timestamp GetDate(String email, PrintWriter out){\n Timestamp date = null;\n //select che ritorna data creazione link\n DBConnect db = new DBConnect(ip);\n try {\n PreparedStatement ps = db.conn.prepareStatement(\"SELECT countdown FROM users WHERE email = ?\");\n ps.setString(1, email);\n ResultSet rs = db.Query(ps);\n rs.next();\n \n String datevalue = rs.getString(\"countdown\");\n date = Timestamp.valueOf(datevalue);\n } catch (SQLException e) {\n }\n db.DBClose();\n return date;\n }",
"long getCreatedTime();",
"public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }",
"public String getDateCreated(){\n return dateCreated.toString();\n }",
"public String getDate(){\n return date;\n }",
"public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }",
"Date getCreationDate();",
"public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic String getTimeAndDate() throws RemoteException {\n\tDate date = new Date();\n\tSystem.out.println(date.toString());\n\treturn date.toString();\n\t}",
"public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }",
"private String getTodayDate(){\n // get current Date and Time for product_info table\n Date date = Calendar.getInstance().getTime();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:MM\", Locale.getDefault());\n return dateFormat.format(date);\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"@Override\r\n\tpublic void date() {\n\t\tSystem.out.println(\"10/19/21\");\r\n\t}"
]
| [
"0.6161666",
"0.6010684",
"0.5899819",
"0.58791",
"0.58496606",
"0.5817841",
"0.5811267",
"0.5811267",
"0.58010095",
"0.57892025",
"0.5779314",
"0.5778302",
"0.5775405",
"0.57567304",
"0.5744736",
"0.57343596",
"0.57297397",
"0.57108605",
"0.5686059",
"0.56821996",
"0.56780255",
"0.5668557",
"0.5665131",
"0.56559587",
"0.5655273",
"0.56432873",
"0.56432873",
"0.56396896",
"0.5629698",
"0.56246895",
"0.5609302",
"0.5599395",
"0.5578307",
"0.5575596",
"0.55579674",
"0.55579257",
"0.5554378",
"0.5527477",
"0.55263335",
"0.551891",
"0.5518276",
"0.5515342",
"0.5512072",
"0.55093336",
"0.5509258",
"0.5499629",
"0.5497509",
"0.5490789",
"0.54840136",
"0.5473928",
"0.54713005",
"0.5470646",
"0.5467694",
"0.5460106",
"0.54599184",
"0.54590195",
"0.5457423",
"0.5457415",
"0.5450032",
"0.54450756",
"0.5442854",
"0.54412025",
"0.54330003",
"0.5428394",
"0.542519",
"0.5419164",
"0.5419164",
"0.5418983",
"0.5414571",
"0.5413434",
"0.5413434",
"0.5413434",
"0.5404005",
"0.54007316",
"0.54007316",
"0.53999907",
"0.53987134",
"0.5398041",
"0.53886783",
"0.5384903",
"0.53816307",
"0.537427",
"0.53738856",
"0.53727365",
"0.53717077",
"0.537153",
"0.5369871",
"0.53676283",
"0.5365713",
"0.53653646",
"0.5365136",
"0.536101",
"0.5358534",
"0.5358534",
"0.5358534",
"0.5358534",
"0.5358534",
"0.5358534",
"0.5358534",
"0.5358534",
"0.53550005"
]
| 0.0 | -1 |
Configure our custom authentication provider to forward login to oauth2 authorization server. | @Bean
@Override
public AuthenticationManager authenticationManagerBean() {
return new ProviderManager(singletonList(new OAuth2PasswordAuthenticationProvider(properties)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void configure(AuthenticationManagerBuilder auth) {\n auth.authenticationProvider(authProvider);\n }",
"@Override\n protected void configure(AuthenticationManagerBuilder authenticationManagerBuilderObj) throws Exception {\n\t authenticationManagerBuilderObj.authenticationProvider(authenticationProvider());\n }",
"@Override\r\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.authenticationProvider(authenticateionProvider());\r\n\t}",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(loginValidateAuthenticationProvider);\n }",
"@Override\r\n\t@Autowired\r\n\tpublic void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.authenticationProvider(authenticationProvider());\r\n\t}",
"@Override\n\tpublic void setAuthProvider(AuthProvider arg0) {\n\t}",
"@Override\n\t\tpublic void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n\t\t\tendpoints.authenticationManager(authenticationManager);\n\t\t}",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) {\n }",
"@Override\n protected void initiateAuthenticationRequest(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL()\n .replace(\"authenticationendpoint/login.do\", Token2Constants.LOGIN_PAGE);\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = Token2Constants.RETRY_PARAMS;\n }\n try {\n response.sendRedirect(loginPage + (\"?\" + queryParams) + \"&authenticators=\"\n + getName() + retryParam);\n } catch (IOException e) {\n throw new AuthenticationFailedException(\"Authentication failed!\", e);\n }\n }",
"@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n \tKeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider();\n\t\tkeycloakAuthenticationProvider.setGrantedAuthoritiesMapper(new SimpleAuthorityMapper());\n\t\tauth.authenticationProvider(keycloakAuthenticationProvider);\n }",
"@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n KeycloakAuthenticationProvider keycloakAuthenticationProvider =\n keycloakAuthenticationProvider();\n SimpleAuthorityMapper soa = new SimpleAuthorityMapper();\n keycloakAuthenticationProvider.setGrantedAuthoritiesMapper(soa);\n auth.authenticationProvider(keycloakAuthenticationProvider);\n }",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n endpoints.authenticationManager(authenticationManager);\n// .tokenStore(tokenStore()).accessTokenConverter(accessTokenConverter());\n }",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n endpoints.authenticationManager(authenticationManager); // need to specify object of a type authenticationManager by declaring it as a private & autowiring it\n // this object can be used to send as a parameters to the authentication manager of the endpoint object method\n }",
"public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }",
"@Override\n public String getAuthenticationScheme() {\n return \"OAuth2\";\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n //oauthServer.realm(REALM);\n oauthServer.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\")\n //.passwordEncoder(this.passwordEncoder)\n .allowFormAuthenticationForClients();\n\n }",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n endpoints.authenticationManager(authenticationManager)\n .tokenStore(tokenStore());\n\n if (env.getUsejwttokenconverter())\n endpoints.accessTokenConverter(tokenEnhance());\n }",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) {\n endpoints\n .authenticationManager(authenticationManager)\n .tokenStore(jwtTokenStore) //jwt\n .accessTokenConverter(accessTokenConverter); //jwt\n }",
"@Override\n\tpublic void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n\t\t endpoints\n\t\t .tokenStore(tokenStore)// Tell which tokenStore it will use\n\t\t\t .tokenEnhancer(jwtTokenEnhancer)//Required when self signed jwt token is implemented\n\t\t\t //Not required in case of In-MemoryTokenStore and JdbcTokenStore\n\t\t\t .authenticationManager(authenticationManager);\n\t}",
"@Override\n\tpublic void configure(AuthenticationManagerBuilder builder)\n\t\t\tthrows Exception {\n\t\tbuilder.authenticationProvider(discoveryAuthenticationProvider);\n\t}",
"@Override\n\tpublic void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n\t\toauthServer.tokenKeyAccess(\"permitAll()\").checkTokenAccess(\"isAuthenticated()\");\n\t}",
"@Override\n\tpublic void setup(Context context) {\n\t\tlog.debug(\"XXX: try callback to enable authentication\");\n\n final URI uri = context.getPropertyAsURI(\"loginURL\");\n if (uri == null) {\n\t\t\tthrow new IllegalArgumentException(\"loginURL property not defined\");\n }\n\n String loginEmail = context.getString(\"loginEmail\");\n String loginPassword = context.getString(\"loginPassword\");\n if (StringUtils.isBlank(loginEmail) || StringUtils.isBlank(loginPassword)) {\n\t\t\tthrow new IllegalArgumentException(\"loginEmail and loginPassword properties are empty or missing\");\n }\n\n\t\tlog.debug(\"POST auth URL: {}\", uri);\n\t\tHttpPost httppost = new HttpPost(uri);\n\t\thttppost.setHeader(\"Cache-Control\", \"no-cache\");\n\t\tList<NameValuePair> formParams = new ArrayList<NameValuePair>(2);\n\t\tformParams.add(new BasicNameValuePair(\"email\", loginEmail));\n\t\tformParams.add(new BasicNameValuePair(\"id\", loginPassword));\n\t\tfinal HttpResponse response;\n\t\tHttpClient client = null;\n\t\tHttpContext httpContext = localContext;\n\t\ttry {\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(formParams));\n\t\t\tclient = context.getHttpClient();\n\t\t\tif (httpContext == null) {\n\t\t\t\t// Create a local instance of cookie store\n\t\t\t\tCookieStore cookieStore = new BasicCookieStore();\n\t\t\t\t// Create local HTTP context\n\t\t\t\thttpContext = new BasicHttpContext();\n\t\t\t\t// Bind custom cookie store to the local context\n\t\t\t\thttpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);\n\t\t\t}\n\t\t\tresponse = client.execute(httppost, httpContext);\n\t\t\t/*\n\t\t\t <form method='post' action='/auth/developer/callback' noValidate='noValidate'>\n\t\t\t <label for='name'>Name:</label>\n\t\t\t <input type='text' id='name' name='name'/>\n\t\t\t <label for='email'>Email:</label>\n\t\t\t <input type='text' id='email' name='email'/>\n\t\t\t <button type='submit'>Sign In</button> </form>\n\t\t\t */\n\t\t\tif (log.isDebugEnabled() || !checkAuth(response)) {\n ClientHelper.dumpResponse(httppost, response, true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tif (client != null)\n\t\t\t\tclient.getConnectionManager().shutdown();\n\t\t}\n\n\t\tfinal StatusLine statusLine = response.getStatusLine();\n\t\tif (statusLine != null && statusLine.getStatusCode() == 302) {\n\t\t\t// HTTP/1.1 302 Moved Temporarily\n\t\t\tHeader cookie = response.getFirstHeader(\"Set-Cookie\");\n\t\t\tif (cookie != null) {\n\t\t\t\tlog.debug(\"XXX: set local context\");\n\t\t\t\tthis.localContext = httpContext;\n\t\t\t}\n\t\t\telse log.error(\"Expected Set-Cookie header in response\");\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tHeader location = response.getFirstHeader(\"Location\");\n\t\t\t\tif (location != null) {\n\t\t\t\t\tcheckAuthentication(context, location.getValue());\n\t\t\t\t\t//log.debug(\"XXX: set local context\");\n\t\t\t\t\t//this.localContext = httpContext;\n\t\t\t\t}\n\t\t\t\telse log.error(\"Expected Location header in response\");\n\t\t\t}\n\t\t} else {\n\t\t\tlog.error(\"Expected 302 status code in response\");\n\t\t}\n\t}",
"protected OAuthProvider getOAuthProvider() {\r\n \tOAuthProvider provider = new CommonsHttpOAuthProvider(MendeleyApiUrls.OAuthUrls.REQUEST_TOKEN_URL,\r\n \t\t\tMendeleyApiUrls.OAuthUrls.ACCESS_TOKEN_URL, MendeleyApiUrls.OAuthUrls.AUTHORIZE_URL);\r\n \t\r\n \tprovider.setOAuth10a(true);\r\n// for (String headerName : requestHeaders.keySet()) {\r\n// \tprovider.setRequestHeader(headerName, requestHeaders.get(headerName));\r\n// }\r\n \t\r\n \treturn provider;\r\n\t}",
"@PostConstruct\n public void init() {\n oAuthProviders.registerProvider(this);\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer security) {\n //allow send client_id and client_secret in params\n //otherwise headers:{Authorization: 'Basic client_id:client_secret in base64}\n security.allowFormAuthenticationForClients();\n security.checkTokenAccess(\"isAuthenticated()\");\n// security.checkTokenAccess(\"permitAll()\");\n }",
"@Override\n public void init(ServletConfig config) throws ServletException {\n super.init(config);\n\n final ServletContext context = config.getServletContext(); \n redirectOnSuccess =Auth0Constants.AUTH0_LOGIN_SUCCESS.getValue();\n redirectOnFail =Auth0Constants.AUTH0_LOGIN_FAILURE.getValue();\n auth0Namespace =Auth0Constants.AUTH0_NAMESPACE.getValue();\n auth0Issuer =Auth0Constants.AUTH0_ISSUER.getValue();\n auth0URL =Auth0Constants.AUTH0_URL.getValue();\n \n try {\n authAPI = new AuthenticationControllerProvider(config).getAuthAPI();\n\n Auth0KeyProvider provider = new Auth0KeyProvider(auth0URL);\n \n verifier = new Auth0Verifier(auth0Issuer, \n provider.getPublicKey(null)); \n }\n catch (com.auth0.jwk.JwkException e) {\n logger.warn(\"JwkException in init \", e);\n throw new ServletException(\"Couldn't create the AuthenticationController instance. Check the configuration.\", e);\n }\n catch (UnsupportedEncodingException e) {\n throw new ServletException(\"Couldn't create the AuthenticationController instance. Check the configuration.\", e);\n }\n }",
"public static void initAuthentication(AuthenticationOptions options)\n {\n logger.info(\"Registering custom HTTPClient authentication with Solr\");\n SpnegoAuthenticatorFactory authenticatorFactory = \n new SpnegoAuthenticatorFactory.Builder()\n .keytab(options.keytab)\n .principal(options.principal)\n .sslContext(options.ctx)\n .hostnameVerifier(options.verifier)\n .build();\n HttpRequestAuthenticatorProvider.registerFactory(authenticatorFactory);\n }",
"@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tif (isDevelopment()) {\n\t\t\tswitch (this.applicationProperties.getMode()) {\n\t\t\tcase basic:\n\t\t\t\tauth.inMemoryAuthentication().withUser(\"INTW1\").password(\"{noop}intw1\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"ABC\").password(\"{noop}abc\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"JKL\").password(\"{noop}jkl\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"noWrite\").password(\"{noop}a\");\n\t\t\t\tbreak;\n\t\t\tcase noauth:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp\n\t\t\t\n\t\t.cors()\n \t.and()\n .csrf()\n \t.disable()\n .formLogin()\n \t.disable()\n .httpBasic()\n \t.disable()\n .exceptionHandling()\n \t.authenticationEntryPoint(jwtUnauthorizedHandlerEntryPoint)\n \t.and()\n\t\t.authorizeRequests()\n\t\t\t\t.antMatchers(\"/\",\n \"/favicon.ico\",\n \"/**/*.png\",\n \"/**/*.gif\",\n \"/**/*.svg\",\n \"/**/*.jpg\",\n \"/**/*.html\",\n \"/**/*.css\",\n \"/**/*.js\",\n \"/error\", \n \"/webjars/**\").permitAll()\n\t\t\t\t.antMatchers(\"/app/**\").permitAll()\n\t\t\t.anyRequest().authenticated()\n\t\t\t.and()\n\t\t\t.logout()\n\t\t\t\t.logoutSuccessUrl(\"/logout\").permitAll()\n\t\t\t.and()\n\t\t\t.oauth2Login()\n\t\t\t\t.authorizationEndpoint()\n\t\t\t\t.baseUri(\"/oauth2/authorize/\")\n\t\t\t\t.authorizationRequestRepository(customAuthorizationRequestRepository)\n\t\t\t\t.and()\n\t\t\t.userInfoEndpoint()\n\t\t\t\t.userService(customOauth2UserService)\n\t\t\t\t.and()\n .redirectionEndpoint()\n \t.baseUri(\"/oauth2/callback/*\")\n \t.and()\n .successHandler(customAuthenticationSuccessHandler)\n .failureHandler(customAuthenticationFailureHandler)\n .and()\n .addFilterBefore(jwtfilt , UsernamePasswordAuthenticationFilter.class );\n \n \n//\t\t\t.failureHandler((request, response, exception) -> {\n//\t\t\t request.getSession().setAttribute(\"error.message\", exception.getMessage());\n//\t\t\t authenticationFailureHandler.onAuthenticationFailure(request, response, exception);\n// })\n//\t\t\t\t.authorizationEndpoint()\n//\t\t\t\t\t.baseUri(\"/oauth2/authorize\")\n//\t\t\t\t\t.and()\n//\t\t\t\t.redirectionEndpoint()\n//\t\t\t\t\t.baseUri(\"/oauth2/callback/*\")\n//\t\t\t\t\t.and()\n//\t\t\t\t.userInfoEndpoint()\n//\t\t\t\t\t.userService(oauth2UserService)\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t}",
"@Override\n public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n endpoints.tokenServices(tokenServices);\n }",
"@Override\n\tpublic void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {\n\t\tTokenEnhancerChain tokenEnhancerChain = new TokenEnhancerChain();\n\t\ttokenEnhancerChain.setTokenEnhancers(Arrays.asList(tokenEnhancer(), accessTokenConverter()));\n\t\t\n\t\tendpoints\n\t\t\t.tokenStore(tokenStore())\t//Armazena o token na memória.\n\t\t\t.accessTokenConverter(accessTokenConverter())\t//conversor de token\n\t\t\t.tokenEnhancer(tokenEnhancerChain)\n\t\t\t.reuseRefreshTokens(false)\t//A cada AccessToekn solicitado um novo refreshToken também é enviado.\n\t\t\t//Autenticação para validar usuario e senha, retornando usuario padrão do sistema com sua senha e lista de permissões.\n\t\t\t//Para validação da senha que está encriptada com BCrypt usa o método passwordEncoder()\n\t\t\t.userDetailsService(this.userDetailsService)\n\t\t\t.authenticationManager(authenticationManager);\t//valida o token\n\t}",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\n .withUser(\"user1\").password(\"secret1\").roles(\"USER\");\n }",
"@Override\n public void preProcess(ApiConfigurator c) {\n if(null != rsc && rsc.isEnabled()) {\n c.enableOAuth();\n \n //TODO : scopes\n }\n \n ApiConfig conf = c.config();\n OAuthConfig oauthConfig = conf.getOAuthConfig();\n if(oauthConfig == null ||\n (Strings.isEmpty(oauthConfig.getAuthzEndpointUrl()) && Strings.isEmpty(oauthConfig.getTokenEndpointUrl()))) {\n \n //auto set endpoint url if oauth2 client app is enabled locally.\n if(null != owc && owc.isEnabled()) {\n String authzUrl = owc.getServerAuthorizationEndpointUrl();\n String tokenUrl = owc.getServerTokenEndpointUrl();\n if(oauthConfig == null){\n oauthConfig = new OAuthConfig(false, authzUrl,tokenUrl);\n c.setOAuthConfig(oauthConfig);\n return;\n }\n oauthConfig.setAuthzEndpointUrl(authzUrl);\n oauthConfig.setTokenEndpointUrl(tokenUrl);\n return;\n }\n\n //auto set endpoint url if authz server is enabled locally.\n if(null != asc && asc.isEnabled()) {\n //we cannot know the host name and port of local server.\n String contextPath = app.getContextPath();\n String authzUrl = contextPath + asc.getAuthzEndpointPath();\n String tokenUrl = contextPath + asc.getTokenEndpointPath();\n if(oauthConfig == null){\n oauthConfig = new OAuthConfig(false,authzUrl,tokenUrl);\n c.setOAuthConfig(oauthConfig);\n return;\n }\n oauthConfig.setAuthzEndpointUrl(authzUrl);\n oauthConfig.setTokenEndpointUrl(tokenUrl);\n }\n }\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {\n security.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\");\n }",
"@Bean\n public AuthenticationEntryPoint authenticationEntryPoint() {\n return new LoginUrlAuthenticationEntryPoint(redirectUri);\n }",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.inMemoryAuthentication()\n .withUser(\"ahmed\")\n .password(\"123456\")\n .roles(\"admin\");\n }",
"protected EscidocAuthenticationProvider() {\r\n }",
"@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}",
"@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 }",
"@Override\n public OAuth2Authentication loadAuthentication(final String accessToken)\n throws AuthenticationException, InvalidTokenException {\n String zoneId = HttpServletRequestUtil.getZoneName(this.request, this.serviceBaseDomain,\n getServiceZoneHeaderList());\n\n URI requestUri = URI.create(this.request.getRequestURI());\n\n OAuth2Authentication authentication;\n if (isNonZoneSpecificRequest(requestUri)) {\n if (zoneId == null) {\n authentication = authenticateNonZoneSpecificRequest(accessToken);\n } else {\n throw new InvalidRequestException(\"Resource not available for specified zone: \" + zoneId);\n }\n } else {\n if (zoneId == null) {\n throw new InvalidRequestException(\"No zone specified for zone specific request: \" + requestUri);\n } else {\n authentication = authenticateZoneSpecificRequest(accessToken, zoneId);\n }\n }\n\n return authentication;\n }",
"@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp.oauth2ResourceServer().jwt().jwtAuthenticationConverter(jwtAuthenticationConverter());\n\n\t}",
"@Override\n protected void afterAuthenticating() {\n }",
"@Override\npublic boolean supports(Class<?> authentication) {\n return true;\n}",
"public void authenticate(LoginRequest loginRequest) {\n\n }",
"private String getLoginUrl(OpenIdProvider provider) {\n if (env.isRunningInDevMode()) {\n return \"http://\" + env.getHost() + \"/_ah/login?continue=/?gwt.codesvr=\"\n + env.getUrlParameter(\"gwt.codesvr\");\n } else {\n return \"http://\" + env.getHost() + \"/_ah/login_redir?claimid=\" \n + provider.getProviderId() + \"&continue=http://\" + env.getHost() + \"/\";\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}",
"public void customLoginTwitter() {\n //check if user is already authenticated or not\n if (getTwitterSession() == null) {\n\n //if user is not authenticated start authenticating\n client.authorize(this, new Callback<TwitterSession>() {\n @Override\n public void success(Result<TwitterSession> result) {\n\n // Do something with result, which provides a TwitterSession for making API calls\n TwitterSession twitterSession = result.data;\n fetchTwitterEmail(twitterSession);\n }\n\n @Override\n public void failure(TwitterException e) {\n // Do something on failure\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n //if user is already authenticated direct call fetch twitter email api\n Toast.makeText(this, \"User already authenticated\", Toast.LENGTH_SHORT).show();\n// fetchTwitterEmail(getTwitterSession());\n }\n }",
"private void performOAuthLogin(View arg) {\n hideKeyboard(arg);\n // Pass the username and password to the OAuth login activity for OAuth login.\n // Once the login is successful, we automatically check in the merchant in the OAuth activity.\n Intent intent = new Intent(LoginScreenActivity.this, OAuthLoginActivity.class);\n intent.putExtra(\"username\", mUsername);\n intent.putExtra(\"password\", mPassword);\n String serverName = mServerName;\n if(null != serverName && serverName.equals(PayPalHereSDK.ControlledSandbox)){\n serverName = PayPalHereSDK.Live;\n }\n intent.putExtra(\"servername\",serverName);\n startActivity(intent);\n\n }",
"public CustomLoginFilter() {\n connectionManager = new MultiThreadedHttpConnectionManager();\n// httpClient = new HttpClient(connectionManager);\n\n// HostConfiguration hostConfiguration = new HostConfiguration();\n// hostConfiguration.setHost(HOST);\n// httpClient.setHostConfiguration(hostConfiguration);\n }",
"@Bean\n public DaoAuthenticationProvider authenticationProvider() {\n final DaoAuthenticationProvider prov = new DaoAuthenticationProvider();\n prov.setUserDetailsService(this.userDetails());\n prov.setPasswordEncoder(this.passwordEncoder());\n return prov;\n }",
"@Bean\n\tpublic DaoAuthenticationProvider authenticationProvider() {\n\t\t//Create a new authentication provider object\n\t\tDaoAuthenticationProvider authenticationProvider = new DaoAuthenticationProvider();\n\t\t//setting up custom user details service\n\t\tauthenticationProvider.setUserDetailsService(userServiceObj);\n\t\t//setting up password encoder by BCrypt\n\t\tauthenticationProvider.setPasswordEncoder(pswdEncoder()); \n\t\t//Return the authentication provider object\n\t\treturn authenticationProvider;\n\t}",
"@Override\n\tpublic void configure(AuthorizationServerSecurityConfigurer security) throws Exception {\n\t\tsecurity.tokenKeyAccess(\"permitAll()\") //Cualquier cliente puede accesar a la ruta para generar el token\n\t\t.checkTokenAccess(\"isAuthenticated()\"); //Se encarga de validar el token\n\t}",
"@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {\n String token = provider.getTokenFromHttpHeader(request);\n\n try {\n if (token != null && provider.validateToken(token)) {\n Authentication authentication = provider.getAuthentication(token);\n SecurityContextHolder.getContext().setAuthentication(authentication);\n }\n } catch (Exception ex) {\n System.out.println(ex);\n SecurityContextHolder.clearContext();\n }\n\n chain.doFilter(request, response);\n }",
"@Override\n\tpublic void authorize(LoginCallback pCallBack) {\n\t\t\n\t}",
"@Autowired\n public SecurityConfig(final JwtTokenProvider jwtTokenProvider) {\n\n super();\n this.jwtTokenProvider = jwtTokenProvider;\n }",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(userDetailsService);\n }",
"@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\t\n\t http\n\t\t.authorizeRequests()\n\t\t.antMatchers(\"/login\", \"/static/**\", \"/login/**\").permitAll()\n\t\t.antMatchers(\"/oauth/confirm_access\").permitAll()\n\t\t.antMatchers(\"/oauth/token\").permitAll()\n\t\t.antMatchers(\"/oauth/authorize\").permitAll()\n\t\t.antMatchers(\"/student/\").access(\"hasRole('STUDENT')\")\n\t\t.antMatchers(\"/studentview/\").access(\"hasRole('STUDENT')\")\n\t\t.antMatchers(\"/vendor/\").access(\"hasRole('VENDOR')\")\n\t\t.antMatchers(\"/collegeadmin/\").access(\"hasRole('COLLEGEADMIN')\")\n\t\t/*.antMatchers(\"/basicDetail/**\").access(\"hasRole('USER')\")*/\n\t\t.antMatchers(\"/db/\").access(\"hasRole('ADMIN') and hasRole('DBA')\")\n\t\t.antMatchers(\"/admin/\").access(\"hasRole('ADMIN')\").anyRequest().authenticated()\n\t\t.and().formLogin().loginPage(\"/login\").successHandler(customSuccessHandler)\n\t\t.usernameParameter(\"username\").passwordParameter(\"password\")\n\t\t.and()\n\t\t\n\t\t.csrf()\n\t\t.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse())\n\t\t.requireCsrfProtectionMatcher(new AntPathRequestMatcher(\"/oauth/authorize\"))\n\t\t/*.disable()*/\n\t\t.and()\n\t\t.logout()\n\t\t.logoutUrl(\"/logout\")\n\t\t.and().exceptionHandling().accessDeniedPage(\"/Access_Denied/\")\n\t\t/*.and()\n\t\t.formLogin()\n\t\t.loginProcessingUrl(\"/login\")*/;\n\t}",
"protected void onSuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException {\n }",
"@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 }",
"public void handleAuthenticationRequest(RoutingContext context) {\n\n final HttpServerRequest request = context.request();\n\n final String basicAuthentication = request.getHeader(AUTHORIZATION_HEADER);\n\n try {\n\n final String[] auth =\n BasicAuthEncoder.decodeBasicAuthentication(basicAuthentication).split(\":\");\n\n if (auth.length < 2) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n } else {\n\n final Credential credential = new Credential(auth[0], auth[1]);\n\n authenticationService.authenticate(credential, user -> {\n\n if (null != user) {\n\n tokenService.generateToken(user, token -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE).end(token);\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INTERNAL_ERROR.error()));\n\n });\n\n } else {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n }\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(err.toError()));\n\n });\n\n\n }\n\n } catch (final Exception e) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INVALID_AUTHENTICATION_TOKEN.error()));\n\n\n }\n\n\n\n }",
"@Autowired\n public void configAuthentication(AuthenticationManagerBuilder auth) throws Exception {\n auth.jdbcAuthentication().dataSource(getMySQLDataSource());\n }",
"@Bean\r\n\t@Override\r\n\tprotected AuthenticationManager authenticationManager() throws Exception {\n\t\treturn super.authenticationManager();\r\n\t}",
"@Autowired\n\t public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n\t auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());\n\t }",
"@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(jwtUserDetailsService).passwordEncoder(passwordEncoder());\n }",
"private void authenticateUserForSharing() {\n mWeHaveJustAuthenticated = true;\n mSessionData.setCurrentlyAuthenticatingProvider(mSelectedProvider);\n \n /* If the selected provider requires input from the user, go to the user landing view. Or if\n the user started on the user landing page, went back to the list of providers, then selected\n the same provider as their last-used provider, go back to the user landing view. */\n if (mSelectedProvider.requiresInput()) {\n JRUserInterfaceMaestro.getInstance().showUserLanding();\n } else { /* Otherwise, go straight to the web view. */\n JRUserInterfaceMaestro.getInstance().showWebView();\n }\n }",
"@ApiModelProperty(example = \"null\", value = \"The provider of the credentials\")\n public AuthenticationProviderEnum getAuthenticationProvider() {\n return authenticationProvider;\n }",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\n SampleJdbcDaoImpl userService = new SampleJdbcDaoImpl();\n userService.setDataSource(dataSource());\n userService.setUsersByUsernameQuery(\"SELECT login_id, password, true, full_name, dept_name \"\n + \"FROM t_user \"\n + \"WHERE login_id = ?\");\n userService.setAuthoritiesByUsernameQuery(\"SELECT login_id, role_name \"\n + \"FROM t_role \"\n + \" INNER JOIN t_user_role ON t_user_role.role_id = t_role.id \"\n + \" INNER JOIN t_user ON t_user.id = t_user_role.user_id \"\n + \"WHERE login_id = ?\");\n auth.userDetailsService(userService)\n .passwordEncoder(new BCryptPasswordEncoder());\n }",
"public void customLoginTwitter(View view) {\n if (getTwitterSession() == null) {\n\n //if user is not authenticated start authenticating\n client.authorize(getActivity(), new Callback<TwitterSession>() {\n @Override\n public void success(Result<TwitterSession> result) {\n // Do something with result, which provides a TwitterSession for making API calls\n TwitterSession twitterSession = result.data;\n fetchTwitterAccount();\n dismiss();\n }\n\n @Override\n public void failure(TwitterException e) {\n // Do something on failure\n Toast.makeText(getActivity().getApplicationContext(), \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n //if user is already authenticated direct call fetch twitter email api\n Toast.makeText(getActivity().getApplicationContext(), \"User already authenticated\", Toast.LENGTH_SHORT).show();\n }\n }",
"private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context,\n String errorMessage)\n throws AuthenticationFailedException {\n\n // Find the authenticated user.\n AuthenticatedUser authenticatedUser = getUser(context);\n\n if (authenticatedUser == null) {\n throw new AuthenticationFailedException(\"Authentication failed!. \" +\n \"Cannot proceed further without identifying the user\");\n }\n\n String tenantDomain = authenticatedUser.getTenantDomain();\n String username = authenticatedUser.getAuthenticatedSubjectIdentifier();\n String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username);\n\n /*\n In here we do the redirection to the termsAndConditionForm.jsp page.\n If you need to do any api calls and pass any information to the custom page you can do it here and pass\n them as query parameters or else best way is to do the api call using a javascript function within the\n custom page.\n */\n\n try {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL().\n replace(\"login.do\", \"termsAndConditionForm.jsp\");\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = \"&authFailure=true\" +\n \"&authFailureMsg=\" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name());\n }\n String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername,\n tenantDomain);\n String encodedUrl =\n (loginPage + (\"?\" + queryParams\n + \"&username=\" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name())))\n + \"&authenticators=\" + getName() + \":\" + AUTHENTICATOR_TYPE\n + retryParam;\n response.sendRedirect(encodedUrl);\n } catch (IOException e) {\n throw new AuthenticationFailedException(e.getMessage(), e);\n }\n context.setCurrentAuthenticator(getName());\n context.setRetrying(false);\n return AuthenticatorFlowStatus.INCOMPLETE;\n\n }",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }",
"@Override\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows AuthenticationException, IOException, ServletException {\n\t\tString url = request.getServletPath();\n\t\tString header = request.getHeader(AUTHORIZATION);\n\t\tlogger.debug(\"[authorized] request header : \" + header + \",request url :\" + url);\n\t\tif (header != null) {\n\t\t\tfinal int space = header.indexOf(' ');\n\t\t\tif (space > 0) {\n\t\t\t\tfinal String method = header.substring(0, space);\n\t\t\t\tif (PREFIX.equalsIgnoreCase(method)) {\n\t\t\t\t\tfinal String credentials = header.substring(space + 1);\n\t\t\t\t\tAbstractAuthenticationToken userAuthenticationToken = authUserByToken(credentials);\n\t\t\t\t\tif (userAuthenticationToken == null) {\n\t\t\t\t\t\tlogger.error(\"[unauthorized] access token is empty in header ,request header : \"\n\t\t\t\t\t\t\t\t+ header + \",request url :\" + url);\n\t\t\t\t\t\tthrow new AuthTokenException(\"2.404\",\n\t\t\t\t\t\t\t\tMessageFormat.format(\"Error | {0}\", \"Bad Token\"));\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getAuthenticationManager().authenticate(userAuthenticationToken);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new AnonymousAuthenticationToken(UUID.randomUUID().toString(), \"anonymousUser\",\n\t\t\t\tAuthorityUtils.createAuthorityList(\"ROLE_ANONYMOUS\"));\n\t}",
"@Override\n public Principal authenticate(HttpServletRequest request, StringBuilder errMsg) {\n errMsg = errMsg == null ? new StringBuilder(512) : errMsg;\n\n // extract credentials from request\n String jwsString = OAuthAuthorityUtils.extractHeaderToken(request);\n\n // skip when no credentials provided\n if (jwsString == null) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: no credentials, skip...\");\n }\n return null;\n }\n\n // parse certificate\n CertificateIdentity certificateIdentity = null;\n try {\n certificateIdentity = this.certificateIdentityParser.parse(request);\n } catch (CertificateIdentityException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid certificate: \" + e.getMessage(), errMsg);\n return null;\n }\n X509Certificate clientCert = certificateIdentity.getX509Certificate();\n String clientCertPrincipal = certificateIdentity.getPrincipalName();\n\n // parse JWT\n OAuthJwtAccessToken at = null;\n try {\n at = this.parser.parse(jwsString);\n } catch (OAuthJwtAccessTokenException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid JWT: \" + e.getMessage(), errMsg);\n return null;\n }\n\n // validate JWT\n try {\n this.validator.validate(at);\n this.validator.validateClientId(at, clientCertPrincipal);\n\n if (this.shouldVerifyCertThumbprint) {\n String clientCertThumbprint = this.validator.getX509CertificateThumbprint(clientCert);\n this.validator.validateCertificateBinding(at, clientCertThumbprint);\n }\n } catch (CertificateEncodingException | CryptoException | OAuthJwtAccessTokenException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid JWT: \" + e.getMessage(), errMsg);\n return null;\n }\n\n // create principal\n String[] ds = AthenzUtils.splitPrincipalName(at.getSubject());\n if (ds == null) {\n errMsg.append(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: sub is not a valid service identity: got=\").append(at.getSubject());\n return null;\n }\n String domain = ds[0];\n String service = ds[1];\n\n SimplePrincipal principal = (SimplePrincipal) SimplePrincipal.create(domain, service, jwsString, at.getIssuedAt(), this);\n principal.setUnsignedCreds(at.toString());\n principal.setX509Certificate(clientCert);\n // principal.setRoles(at.getScopes());\n principal.setApplicationId(clientCertPrincipal);\n principal.setAuthorizedService(this.authorizedServices.getOrDefault(clientCertPrincipal, clientCertPrincipal));\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: client certificate name=\" + clientCertPrincipal);\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: valid user=\" + principal.toString());\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: unsignedCredentials=\" + principal.getUnsignedCredentials());\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: credentials=\" + principal.getCredentials());\n }\n return principal;\n }",
"@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\n\t\tauth.userDetailsService(this.userService).passwordEncoder(passwordEncoder())\n\t\t.and().authenticationEventPublisher(authenticationEventPublisher);\n\t}",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \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 }",
"public void doLoginWithFacebook() {\n System.out.println(\"Fetching the Authorization URL...\");\n String authorizationUrl = service.getAuthorizationUrl(EMPTY_TOKEN);\n System.out.println(\"Got the Authorization URL!\");\n System.out.println(\"Now go and authorize Scribe here:\");\n this.authorizationUrl = authorizationUrl;\n }",
"OAuth2AuthorizationEndpointConfigurer(ObjectPostProcessor<Object> objectPostProcessor) {\n\t\tsuper(objectPostProcessor);\n\t}",
"@Autowired\n\tpublic void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.userDetailsService(loginService).passwordEncoder(new ShaPasswordEncoder(256));\n\t}",
"@Override\r\n\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\r\n\t\tOAuthConsumer consumer = null;\r\n\t\t//log.info(\" MineTwitterConsumer START\");\r\n\t\tthis.setRedirectUrl(request.getParameter(JpSocialSystemConstants.TW_REDIRECT_URL));\r\n\t\tConfigInterface configInterface = (ConfigInterface) ApsWebApplicationUtils.getBean(\"BaseConfigManager\", request);\r\n\t\tString devMode = configInterface.getParam(JpSocialSystemConstants.DEV_MODE_PARAM_NAME);\r\n\t\tString loginrequest = request.getParameter(\"loginrequest\");\r\n\t\tif (\"true\".equalsIgnoreCase(devMode)) {\r\n\t\t\t_logger.info(\" DEV MODE :: {} - auth url {}\", devMode, this.getDevLoginUrl());\r\n\t\t\tthis.setRedirectUrl(this.getDevLoginUrl());\r\n\t\t\tif (this.getDomain().equals(loginrequest)) {\r\n\t\t\t\tUserDetails userDetails = this.getFakeUser();\r\n\t\t\t\trequest.getSession().setAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER, userDetails);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tITwitterCookieConsumer twitterConsumerManager =\r\n\t\t\t\t\t(ITwitterCookieConsumer) ApsWebApplicationUtils.getBean(JpSocialSystemConstants.TWITTER_CONSUMER_MANAGER, request);\r\n\t\t\ttry {\r\n\t\t\t\tconsumer = twitterConsumerManager.getTwitterConsumer(request);\r\n\t\t\t\tOAuthAccessor accessor = twitterConsumerManager.getAccessor(request, response, consumer);\r\n\t\t\t\tOAuthClient client = new OAuthClient(new TwitterHttpClient());\r\n\t\t\t\tOAuthResponseMessage result = client.access(accessor.newRequestMessage(OAuthMessage.GET,\r\n\t\t\t\t\t\t\"https://api.twitter.com/1.1/account/verify_credentials.json\", null), ParameterStyle.AUTHORIZATION_HEADER);\r\n\t\t\t\tint status = result.getHttpResponse().getStatusCode();\r\n\t\t\t\tif (status != HttpResponseMessage.STATUS_OK) {\r\n\t\t\t\t\tOAuthProblemException problem = result.toOAuthProblemException();\r\n\t\t\t\t\tif (problem.getProblem() != null) {\r\n\t\t\t\t\t\tthrow problem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tMap<String, Object> dump = problem.getParameters();\r\n\t\t\t\t\tresponse.setContentType(\"text/plain\");\r\n\t\t\t\t\tPrintWriter out = response.getWriter();\r\n\t\t\t\t\tout.println(dump.get(HttpMessage.REQUEST));\r\n\t\t\t\t\tout.println(\"----------------------\");\r\n\t\t\t\t\tout.println(dump.get(HttpMessage.RESPONSE));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Simply pass the data through to the browser:\r\n\t\t\t\t\tString json = twitterConsumerManager.copyResponse(result);\r\n//\t\t\t\tSystem.out.println(\"****************************************\");\r\n//\t\t\t\tSystem.out.println(json);\r\n//\t\t\t\tSystem.out.println(\"****************************************\");\r\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(json);\r\n\t\t\t\t\tString id = jsonObject.getString(\"id\");\r\n\t\t\t\t\t//String id_str = jsonObject.getString(\"id_str\");\t\t\t\t\r\n\t\t\t\t\tString name = jsonObject.getString(\"name\");\r\n\t\t\t\t\t//log.info(\" id \" + jsonObject.getString(\"id\"));\r\n\t\t\t\t\t//log.info(\" id_str \" + jsonObject.getString(\"id_str\"));\r\n// log.info(\" name \" + jsonObject.getString(\"name\"));\r\n\t\t\t\t\tITwitterManager twitterManager = (ITwitterManager) ApsWebApplicationUtils.getBean(JpSocialSystemConstants.TWITTER_CLIENT_MANAGER, request);\r\n\t\t\t\t\tTwitterCredentials credentials = (TwitterCredentials) twitterManager.createSocialCredentials(accessor.accessToken, accessor.tokenSecret);\r\n//\t\t\t\t\t((HttpServletRequest) request).getSession().setAttribute(JpSocialSystemConstants.SESSION_PARAM_TWITTER, credentials);\r\n\t\t\t\t\tString currentAction = getAndRemoveNoLoginAction(request);\r\n\t\t\t\t\tURI uri = new URI(this.getRedirectUrl());\r\n\t\t\t\t\tList<NameValuePair> urlMap = URLEncodedUtils.parse(uri, \"UTF-8\");\r\n\t\t\t\t\tboolean login = true;\r\n\t\t\t\t\tfor (int i = 0; i < urlMap.size(); i++) {\r\n\t\t\t\t\t\tNameValuePair nameValuePair = urlMap.get(i);\r\n\t\t\t\t\t\tString namePair = nameValuePair.getName();\r\n\t\t\t\t\t\tif(null != namePair && namePair.endsWith(\"login\")){\r\n\t\t\t\t\t\t\tlogin = Boolean.parseBoolean(nameValuePair.getValue());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!JpSocialSystemConstants.NO_LOGIN.equals(currentAction) && login){\r\n\t\t\t\t\t\tUserDetails userDetails = new TwitterUser(id + this.getDomain(), name);\r\n\t\t\t\t\t\trequest.getSession().setAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER, userDetails);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJpSocialSystemUtils.saveTwitterCredentialsCookie(credentials, response, request);\r\n\t\t\t\t\t//log.info(\" MineTwitterConsumer REDIRECT URL \" + redirectUrl);\r\n\t\t\t\t\tif (null != this.getRedirectUrl() && this.getRedirectUrl().length() > 0) {\r\n\t\t\t\t\t\t//log.info(\" MineTwitterConsumer REDIRECT\");\r\n\t\t\t\t\t\tresponse.sendRedirect(this.getRedirectUrl());\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//log.info(\" MineTwitterConsumer END \");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\ttwitterConsumerManager.handleException(e, request, response, consumer);\r\n\t\t\t} \r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void onAuthenticationFailed() {\n }",
"@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\t\n\t\tauth\n\t\t\t.inMemoryAuthentication()\n\t\t\t.withUser(\"admin\")\n\t\t\t.password(\"admin\")\n\t\t\t.roles(\"ADMIN\");\n\t\t\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}",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());\n }",
"public interface HttpAuthenticationScheme<C extends AuthenticationSchemeConfiguration> {\n\n /**\n * Called one time during initialization.\n *\n * @param config The configuration.\n */\n void initialize(C config);\n\n /**\n * Extracts the credentials from the given {@link javax.servlet.http.HttpServletRequest} and populates the\n * {@link org.picketlink.credential.DefaultLoginCredentials} with them. If the request is not an authentication attempt (as defined by the\n * implementation), then {@code creds} is not affected.\n *\n * @param request\n * The current request, to examine for authentication information.\n * @param creds\n * The credentials instance that will be populated with the credentials found in the request, if any.\n */\n void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds);\n\n /**\n * Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue\n * with the authentication.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * If this method is called, the rest of the filter chain will <i>not</i> be processed, so\n * implementations are free to read the request body if they so choose.\n * @param response\n * The current response, which can be used to send HTTP error results, redirects, or for sending\n * additional challenge headers.\n */\n void challengeClient(HttpServletRequest request, HttpServletResponse response);\n\n /**\n * Performs any post-authentication logic regarding of the authentication result.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * @param response\n * The current response, which can be used to send an HTTP response, or a redirect.\n * @return true if the processing of the filter chain should continue, false if the processing should stop\n * (typically because this filter has already sent a response).\n */\n void onPostAuthentication(HttpServletRequest request, HttpServletResponse response);\n}",
"@Override\r\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t throws AuthenticationException, IOException, ServletException {\r\n\t\r\n\t// ~~~ Token aus dem Header extrahieren\r\n\tString token;\r\n\ttry {\r\n\t token = request.getHeader(WebSecurityConfig.JWT_TOKEN_HEADER);\r\n\t token = token.substring(WebSecurityConfig.JWT_TOKEN_PREFIX.length());\r\n\t} catch (Exception e) {\r\n\t throw new FailedJWTAuthenticationException();\r\n\t}\r\n\t\r\n\t// ~~~ Token als Authentication verpackt weiterleiten\r\n\treturn getAuthenticationManager().authenticate(new JWTAuthenticationToken(JWT.decode(token)));\r\n }",
"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 }",
"@Override\n public void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\n clients.inMemory()\n .withClient(\"clientapp\")\n .secret(\"{noop}123456\")\n .authorizedGrantTypes(\"authorization_code\")\n .scopes(\"user_info\")\n .autoApprove(true)\n .redirectUris(\"http://localhost:8082/user/oauth2/code/\");\n\n }",
"@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n if ((mCredentials != null) && (mCredentials.accessToken != null)) {\n request.addEncodedQueryParam(PARAM_ACCESS_TOKEN, mCredentials.accessToken);\n }\n }",
"@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}",
"public void configure(AuthenticationManagerBuilder auth) throws Exception\n\t{\n\t\tauth.inMemoryAuthentication().withUser(\"raja\").password(\"raja\").roles(\"USER\");\n\t\tauth.inMemoryAuthentication().withUser(\"admin\").password(\"admin\").roles(\"ADMIN\");\n\n\t}",
"@Bean\n\tpublic SavedRequestAwareAuthenticationSuccessHandler successRedirectHandler() {\n\t\tSavedRequestAwareAuthenticationSuccessHandler successRedirectHandler = new SavedRequestAwareAuthenticationSuccessHandler();\n\t\tsuccessRedirectHandler.setDefaultTargetUrl(\"/authorization_code\");\n\t\treturn successRedirectHandler;\n\t}",
"public static String getAuthenticationURL() {\n\n\t\treturn baseURL + \"/authentication-point/authenticate\";\n\t}",
"@Override\n\t\tpublic void init(AuthenticationManagerBuilder auth) throws Exception {\n\t\t\t// @formatter:off\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"dave\")\n\t\t\t\t\t.password(\"secret\").roles(\"USER\");\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"anil\")\n\t\t\t\t\t.password(\"password\").roles(\"ADMIN\");\n\t\t\t// @formatter:on\n\t\t}",
"@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());\n\t\t\n\t}",
"@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(userDetailsService).passwordEncoder(NoOpPasswordEncoder.getInstance());\n }",
"@Override\n public void resolveUrls(KeycloakUriBuilder authUrlBuilder) {\n }",
"public SessionProviderImpl(CredentialsProvider cp) {\n this.cp = cp;\n }",
"@Override\r\n\tpublic void configure(AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception {\n\t\t\r\n\t\tauthenticationManagerBuilder.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());\r\n\t}",
"protected abstract void calculateOauth2RedirectUrl(UriComponentsBuilder uriComponentsBuilder);",
"protected abstract void calculateOauth2RedirectUrl(UriComponentsBuilder uriComponentsBuilder);"
]
| [
"0.7016269",
"0.68628746",
"0.674127",
"0.6674377",
"0.66635144",
"0.6568515",
"0.64562726",
"0.6249366",
"0.6242794",
"0.6216301",
"0.61750865",
"0.6170689",
"0.61306924",
"0.6104554",
"0.6101874",
"0.6008261",
"0.5892125",
"0.58765864",
"0.5831043",
"0.5827442",
"0.5765649",
"0.5734625",
"0.5711214",
"0.5702742",
"0.5626558",
"0.5601649",
"0.55859125",
"0.55740416",
"0.55733347",
"0.5566667",
"0.5530201",
"0.5479888",
"0.53913546",
"0.53301674",
"0.5323309",
"0.5316213",
"0.531434",
"0.53129727",
"0.53105557",
"0.52895385",
"0.5287332",
"0.52577364",
"0.52186894",
"0.521621",
"0.5207221",
"0.5203487",
"0.5203162",
"0.5199235",
"0.518272",
"0.5182436",
"0.51778096",
"0.517655",
"0.516553",
"0.51523995",
"0.51439446",
"0.51400447",
"0.5127029",
"0.512276",
"0.5121823",
"0.51192",
"0.51186633",
"0.5096885",
"0.5094989",
"0.50867367",
"0.50855446",
"0.50842565",
"0.5081696",
"0.50786895",
"0.5077229",
"0.50768095",
"0.50592023",
"0.5058516",
"0.50540286",
"0.50462276",
"0.5045899",
"0.5045468",
"0.5045385",
"0.50222105",
"0.5013456",
"0.5007077",
"0.5002783",
"0.500176",
"0.49977022",
"0.49931586",
"0.49879462",
"0.49765122",
"0.49617547",
"0.49582762",
"0.49559385",
"0.4938585",
"0.49316743",
"0.49135062",
"0.4913435",
"0.49091148",
"0.49090123",
"0.4901775",
"0.4901445",
"0.49009636",
"0.49009097",
"0.49009097"
]
| 0.6717684 | 3 |
Constructs a new exception with the specified value and detail message. | public ScriptThrownException(String message, Object value) {
super(message);
this.value = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }",
"public ValueOutOfRangeException(String message) {\n this.message = message;\n }",
"public ScriptThrownException(Exception e, Object value) {\n super(e);\n this.value = value;\n }",
"public BaseException(String message) {\n super(message);\n setErrorCode();\n }",
"public sparqles.avro.discovery.DGETInfo.Builder setException(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.Exception = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public MyException(String message)\n { super(message); }",
"public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}",
"public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}",
"public ValueConversionException(String message, Throwable cause) {\n/* 52 */ super(message, cause);\n/* */ }",
"public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }",
"public TwilioRestException(String message, int errorCode, String moreInfo) {\n\t\tsuper(message);\n\n\t\tthis.message = message;\n\t\tthis.errorCode = errorCode;\n\t\tthis.moreInfo = moreInfo;\n\t}",
"public static ConfigValidationError valueError(\n String configField, String configValue, String message) {\n // Set oldValue to null\n return new ConfigValidationError(configField, null, configValue, message);\n }",
"public JDBFException (String message){\r\n super(Messages.message(message));\r\n }",
"public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public FaultDetailException(QName faultDetailName, \n\t\t\t\tObject faultDetail) {\n\tthis.faultDetail = faultDetail;\n\tthis.faultDetailName = faultDetailName;\n }",
"public Error(String message) {\r\n \tsuper(message);\r\n \t}",
"public ExceptionValue(Throwable e) {\n this.set(e);\n }",
"public Neo4jException(String message) {\n this(\"N/A\", message);\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }",
"public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }",
"public Builder setError(protodef.b_error.info value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n error_ = value;\n onChanged();\n } else {\n errorBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"public Builder setError(protodef.b_error.info value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n error_ = value;\n onChanged();\n } else {\n errorBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"public IllegalArgumentException buildException() {\n return this.buildException(null);\n }",
"public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public FormatException() {\n\t\tsuper(\"This value is not within the standard.\");\n\t}",
"public AssertionFailedException(Exception ex) {\n/* 63 */ super(Messages.getString(\"AssertionFailedException.0\") + ex.toString() + Messages.getString(\"AssertionFailedException.1\"));\n/* */ }",
"public InvalidParameterValueException(String message) {\n super(message);\n }",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }",
"public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }",
"protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }",
"public ValorInvalidoException (String mensagem, double valorInvalido) {\n\t\tsuper(mensagem);\n\t\t\n\t\tthis.valorInvalido = valorInvalido;\n\t}",
"private FailureReasons(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}",
"public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }",
"public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }",
"public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}",
"public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }",
"private RedisSMQException validationException(Object value, String cause) {\n\t\treturn new RedisSMQException(\"Value \" + value + \" \" + cause);\n\t}",
"public SensorException(String message) {\r\n super(message);\r\n }",
"public XFormsErrorIndication(String message, Exception cause, EventTarget target, Object info) {\n super(message, cause);\n this.target = target;\n this.info = info;\n }",
"MyException(String str)\n {\n //parametrize constructor\n super(str);\n }",
"public DataException(String message, String code){\r\n super(message, code);\r\n }",
"public TDLProException(String message)\n {\n super(message);\n }",
"public Neo4jException(String code, String message) {\n this(code, message, null);\n }",
"public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }",
"public APIException(String message) {\n\t\tsuper(message, null);\n\t}",
"public RecordNotFoundException(String message) {\n this(message, null);\n }",
"public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }",
"public HttpException(int status, String message, String body) {\r\n\t\tsuper(\"Status: \" + status + \", Response: \" + body);\r\n\t\tmStatus = status;\r\n\t\tmMessage = message;\r\n\t\tmBody = body;\r\n\t}",
"public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }",
"public EmployeeException(String message) {\n\t\tsuper(message);\n\t}",
"public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}",
"public static FailureClass of(Class<? extends Message> value) {\n return new FailureClass(checkNotNull(value));\n }",
"public VerifyException(String message) {\n\t\tsuper(message);\n\t}",
"public Builder setException(com.palantir.paxos.persistence.generated.PaxosPersistence.ExceptionProto value) {\n if (exceptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n exception_ = value;\n onChanged();\n } else {\n exceptionBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public ErrorInfo(String details) {\n this.details = details;\n this.unhandledException = true;\n this.code = ERROR.toString();\n }",
"public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}",
"public void testConfigurationExceptionCtor1_Detail() {\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message here.\n assertEquals(\"Equal error message expected.\", TEST_MESSAGE, test.getMessage());\n }",
"public ValueOutOfRangeException(String value, int lowerBound, int upperBound) {\n this.message = String.format(VALUE_OUT_OF_EXPECTED_RANGE, value, lowerBound, upperBound);\n }",
"public TwoDAReadException(String message) { super(message); }",
"public Exception(String s) {\n\tsuper(s);\n }",
"public InstrumenterException(String message) {\r\n super(message);\r\n }",
"public PriceModelException(Reason reason) {\n super(reason.toString());\n setMessageKey(getMessageKey() + \".\" + reason.toString());\n }",
"public Builder setErrmsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n errmsg_ = value;\n onChanged();\n return this;\n }",
"public OLMSException(String message) {\r\n super(message);\r\n }",
"public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}",
"public JDBFException (String message, Object [] args){\r\n super(Messages.format(message, args));\r\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testFromValueWithException() {\n System.out.println(\"fromValue\");\n String value = \"DELETED\";\n StatusType expResult = StatusType.DELETED;\n StatusType result = StatusType.fromValue(value);\n assertEquals(expResult, result);\n }",
"private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }",
"public OperationException(String message) {\n super(message);\n }",
"public Builder setError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.set(index, value);\n onChanged();\n } else {\n errorBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Builder addError(WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(value);\n onChanged();\n } else {\n errorBuilder_.addMessage(value);\n }\n return this;\n }",
"public ValidationException(String msgKey) {\r\n\t\tsuper(getMessageValue(msgKey));\r\n\t}",
"public ValidationFailure(String message) {\n this.message = message;\n }",
"public static ReturnError instance(Object value) {\n ReturnError instance = INSTANCE;\n instance.value = value;\n return instance;\n }",
"public ArgumentException(String msg) {\n super(msg);\n }",
"@Api(1.4)\n public HaloParsingException(@Nullable String message, @Nullable Exception e) {\n super(message, e);\n }",
"public InvalidDatumException(String message) {\n \n super(message);\n }",
"public ArithmeticaException (String message) {\n super(message);\n }",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public MessageParseException(String message) {\n super(message);\n }",
"public void testPersistenceExceptionStringAccuracy() {\r\n //Construct PersistenceException with a detail message\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n assertEquals(\"Detailed error message should be identical.\", DETAIL_MESSAGE, exception.getMessage());\r\n }",
"public JiraServiceException(String message) {\r\n super(message);\r\n }",
"public InvalidModelException(String message) {\n super(message);\n }",
"public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}",
"public CassetteException(String message) {\r\n super(message);\r\n }",
"public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }",
"public AbstractCodeGenException(final String message) {\n super(message);\n }",
"public PriceModelException(final String message) {\n super(message);\n }",
"public InvalidInvocationException(String detailMessage, Throwable throwable)\n {\n super(detailMessage, throwable);\n }",
"public SonsureException(IEnum e) {\n this(e.getCode(), e.getDesc());\n }",
"public DataException(String field, String reason) {\n super(reason);\n this.field = field;\n this.reason = reason;\n }",
"public RecordNotFoundException(String message) {\n super(message);\n }",
"public ApiException(int code, String msg) {\n\t\tsuper(msg);\n\t\tthis.code = code;\n\t}",
"public ExceptionDate(String parMessage){\n\t\tsuper(parMessage);\n\t}"
]
| [
"0.63232315",
"0.6238719",
"0.60298777",
"0.5881406",
"0.5873726",
"0.582185",
"0.5804039",
"0.5787346",
"0.57245874",
"0.5709769",
"0.570867",
"0.5671463",
"0.5670891",
"0.5668799",
"0.56651443",
"0.5658371",
"0.5655509",
"0.5639446",
"0.56329095",
"0.5631254",
"0.56277275",
"0.56258774",
"0.56258774",
"0.56216896",
"0.5615295",
"0.5604623",
"0.5602062",
"0.55848265",
"0.55764335",
"0.5569512",
"0.55671865",
"0.5562827",
"0.55481744",
"0.5537738",
"0.553609",
"0.5532384",
"0.5530839",
"0.55272216",
"0.5518349",
"0.5499004",
"0.54904366",
"0.54871",
"0.5457787",
"0.5454054",
"0.5437829",
"0.54313004",
"0.5429851",
"0.5420173",
"0.5414815",
"0.54097456",
"0.5405052",
"0.5403182",
"0.5392733",
"0.53919435",
"0.53886396",
"0.5380335",
"0.53748727",
"0.5373732",
"0.5362693",
"0.5339578",
"0.53393066",
"0.533845",
"0.53373015",
"0.53349584",
"0.5328985",
"0.5328138",
"0.53273267",
"0.53234637",
"0.5315885",
"0.5312652",
"0.530818",
"0.5308019",
"0.5305948",
"0.5302829",
"0.5297616",
"0.5287517",
"0.5286293",
"0.5286286",
"0.5285217",
"0.5280868",
"0.5280144",
"0.52780235",
"0.52748394",
"0.52564836",
"0.52383524",
"0.52346486",
"0.52278304",
"0.52223575",
"0.5221059",
"0.5219636",
"0.5204545",
"0.52025265",
"0.5200115",
"0.5199782",
"0.51914734",
"0.5185015",
"0.51803154",
"0.5178331",
"0.51775336",
"0.5175664"
]
| 0.6893957 | 0 |
Constructs a new exception with the specified value and cause. | public ScriptThrownException(Exception e, Object value) {
super(e);
this.value = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Exception(String message, Throwable cause) {\n\t\t\tsuper(message, cause);\n\t\t}",
"public Neo4jException(String message, Throwable cause) {\n this(\"N/A\", message, cause);\n }",
"public Exception(Throwable cause) {\n\t\t\tsuper(cause);\n\t\t}",
"public AgentException(String cause) {\n this.cause = cause;\n }",
"private RedisSMQException validationException(Object value, String cause) {\n\t\treturn new RedisSMQException(\"Value \" + value + \" \" + cause);\n\t}",
"public ValueConversionException(String message, Throwable cause) {\n/* 52 */ super(message, cause);\n/* */ }",
"public OLMSException(String message, Throwable cause) {\r\n super(message, cause);\r\n }",
"public CustomException(String message, Throwable cause) {\n super(message, cause);\n }",
"private static IOException createIOException(String message, Exception cause) {\n final IOException exception = new IOException(message);\n exception.initCause(cause);\n return exception;\n }",
"public IOExceptionWithCause(Throwable cause) {\n/* 63 */ super(cause);\n/* */ }",
"private CauseHolder(Throwable cause)\r\n/* 730: */ {\r\n/* 731:798 */ this.cause = cause;\r\n/* 732: */ }",
"public CustomException(Throwable cause) {\n super(cause == null ? null : cause.toString(), cause);\n }",
"public JavaException(@Nullable String message, @Nullable Throwable cause)\r\n\t{\r\n\t\tsuper(message, cause);\r\n\t}",
"public ArithmeticaException (String message, Throwable cause) {\n super(message, cause);\n }",
"public ConverterException(String message, Throwable cause) {\n super(message);\n this.cause = cause;\n }",
"public MessageParseException(Throwable cause) {\n initCause(cause);\n }",
"public JavaException(@Nullable Throwable cause)\r\n\t{\r\n\t\tsuper(cause);\r\n\t}",
"public EmployeeException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public ContextException(final String message, final Throwable cause) {\n super(message, cause);\n }",
"public IORuntimeException(Throwable cause) {\n this(cause.getMessage(), cause);\n }",
"public MyCustomException( Throwable cause )\n {\n\n\t// Why are we doing this??\n super( cause );\n }",
"public void buildException(String message, Throwable cause) {\n\n // lanca a exception\n if (cause != null) {\n\n // mostra o stactrace\n cause.printStackTrace();\n throw new BuildException(message, cause);\n\n } else {\n\n // nao possui throwable\n throw new BuildException(message);\n }\n }",
"public InvalidParameterValueException(String message, Throwable cause) {\n super(message, cause);\n }",
"public SucheException(String message, Throwable cause) {\n super(message, cause);\n // TODO Auto-generated constructor stub\n }",
"public SSHException(String message, Throwable cause) {\n super(message, cause);\n }",
"public OperationException(String message, Throwable cause) {\n super(message, cause);\n }",
"public MessageParseException(String message, Throwable cause) {\n super(message);\n initCause(cause);\n }",
"public ScriptThrownException(String message, Object value) {\n super(message);\n this.value = value;\n }",
"public DslException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public MyCustomException( String message, Throwable cause )\n {\n\n\t// Why are we doing this??\n super( message, cause );\n }",
"public WorkflowException(Exception cause) {\n super(cause);\n }",
"public void testGetCause() {\n Throwable th = new Throwable();\n Throwable th1 = new Throwable();\n assertNull(\"cause should be null\", th.getCause());\n th = new Throwable(th1);\n assertSame(\"incorrect cause\", th1, th.getCause());\n }",
"public ServiceException(String message, Throwable cause){\n super(message, cause);\n }",
"public CodecException(String msg, @Nullable Throwable cause) {\n\t\tsuper(msg, cause);\n\t}",
"public ParseException(String message, Throwable cause) {\n super(message, cause);\n }",
"public TrafficspacesAPIException(Throwable cause, String reason) {\n super(reason);\n rootCause = cause;\n }",
"public TDLProException(String message, Throwable cause)\n {\n super(message, cause);\n }",
"public ExceptionValue(Throwable e) {\n this.set(e);\n }",
"public IORuntimeException(String message, Throwable cause) {\n super(message, cause);\n }",
"public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public InvalidRifValueException(String message, Throwable cause) {\n super(message, cause);\n }",
"public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }",
"public ValidationException(String userMessage, String logMessage, Throwable cause) {\r\n super(userMessage, logMessage, cause);\r\n }",
"public ValidationException(String msgKey, Throwable cause) {\r\n\t\tsuper(getMessageValue(msgKey), cause);\r\n\t}",
"public InvalidRifValueException(Throwable cause) {\n super(cause);\n }",
"@ParametersAreNonnullByDefault\n\tpublic ApplicationException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public AlfrescoServiceException(final String message, final Throwable cause) {\n super(message, cause);\n }",
"public RDISException(String msg, Exception cause) {\n\t\tmMessage = msg;\n\t\tmCause = cause;\n\t}",
"public OLMSException(Throwable cause) {\r\n super(cause);\r\n }",
"public OperationException(Throwable cause) {\n super(cause);\n }",
"public JiraServiceException(String message, Throwable cause) {\r\n super(message, cause);\r\n }",
"private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}",
"public void setCause(CharSequence value) {\n this.cause = value;\n }",
"public XMLParseException(Throwable cause) { super(defaultMessage,cause); }",
"public SyscallException(Throwable cause) {\n\t\tsuper(cause);\n\t}",
"public SyscallException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public CoderException(String message, Throwable cause) {\n super(message, cause);\n }",
"public NoTraceOntimizeJEEException(String message, Throwable cause) {\r\n this(message, cause, (Object[]) null, null, false, false);\r\n }",
"public ExcelImportException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}",
"public CsvException(Throwable cause)\r\n {\r\n super(cause);\r\n }",
"public NEOLoggerException(String message, Throwable cause)\n {\n super(message, cause);\n }",
"public NoTraceOntimizeJEEException(Throwable cause) {\r\n this(cause.getMessage(), cause, NoTraceOntimizeJEEException.getMessageParams(cause),\r\n NoTraceOntimizeJEEException.getMessageType(cause),\r\n NoTraceOntimizeJEEException.isBlocking(cause), NoTraceOntimizeJEEException.isSilent(cause));\r\n }",
"public PlatformException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}",
"public KineticException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public SSAPMessageParseException(String message, Throwable cause) {\n\t\tsuper(message,cause);\n\t}",
"public CommunicationException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}",
"public Cause() {\n this(null);\n }",
"public OCCIClientException( String message, Throwable cause )\r\n {\r\n super( message, cause );\r\n }",
"public TypeConversionException(String message, Throwable cause) {\n super(message, cause);\n }",
"public StreamException(Throwable cause) {\n super(cause);\n }",
"public UserActivationValidationException(String message, Throwable cause,\r\n LocalizedMessage reasonMessage) {\r\n super(message, cause);\r\n this.reasonMessageBuilder = null;\r\n this.reasonMessage = reasonMessage;\r\n }",
"public YardException(String reason, Throwable cause) {\n super(reason, cause);\n }",
"protected InvalidXMLException(String message, Throwable cause){\n super(message, cause);\n }",
"public SucheException(Throwable cause) {\n super(cause);\n // TODO Auto-generated constructor stub\n }",
"Throwable cause();",
"public PanicException(Object payload, Throwable cause, Node location) {\n super(null, cause, UNLIMITED_STACK_TRACE, location);\n if (!InteropLibrary.isValidValue(payload)) {\n CompilerDirectives.transferToInterpreter();\n throw new IllegalArgumentException(\"Only interop values are supported: \" + payload);\n }\n this.payload = payload;\n }",
"public OLMSException(String message, String code, Throwable cause) {\r\n super(message, cause);\r\n }",
"public ImageFormatException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public PetsValidationException(String message, Throwable cause) {\n super(message, cause);\n }",
"public BadRequestException(String msg, Throwable cause) {\n\t\tsuper(msg, cause);\n\t}",
"public QpidRAException(final String message, final Throwable cause)\n {\n super(message, cause);\n }",
"public Asn1FormatException(String message, Throwable cause) {\n super(message, cause);\n }",
"public HealthInformationExchangeException(Exception cause)\n\t{\n\t\tsuper(cause);\n\t}",
"public CacheException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}",
"public TechnicalException(final String message, final Throwable cause) {\n super(message, cause);\n }",
"public void setCause(Throwable cause) {\n this.cause = cause;\n }",
"public RecoverableException(final String message, final Throwable cause) {\n super(message, cause);\n }",
"public ValidationException(String userMessage, String logMessage, Throwable cause, String context) {\r\n super(userMessage, logMessage, cause);\r\n \tsetContext(context);\r\n }",
"public TechnicalException(String message, Throwable cause) {\r\n super(message, cause);\r\n }",
"public RenderingException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}",
"public ExcelImportException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}",
"public void setCause(String cause) {\n this.cause = cause;\n }",
"public void testCtor3Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException(CAUSE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Cause is not properly propagated to super class.\", CAUSE, exception.getCause());\n }",
"public Exception(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {\n\t\t\tsuper(message, cause, enableSuppression, writableStackTrace);\n\t\t}",
"public DAOException(String message, Throwable cause) {\r\n super(message, cause);\r\n }",
"public DAOException(String message, Throwable cause)\r\n {\r\n super(message, cause);\r\n }",
"public CoderException(Throwable cause) {\n super(cause);\n }",
"public ConcurrentRuntimeException(String msg, Throwable cause) {\n/* 70 */ super(msg, ConcurrentUtils.checkedException(cause));\n/* */ }",
"public ExecutionError(String message, Error cause) {\n/* 51 */ super(message, cause);\n/* */ }"
]
| [
"0.64827955",
"0.64621174",
"0.6430261",
"0.6427472",
"0.64070046",
"0.63173765",
"0.6277893",
"0.62642896",
"0.62455726",
"0.6226406",
"0.6222806",
"0.6211587",
"0.62041384",
"0.61665213",
"0.61660963",
"0.61502576",
"0.61487454",
"0.61450887",
"0.6140075",
"0.6136512",
"0.6121172",
"0.6117896",
"0.60940576",
"0.6090714",
"0.60880864",
"0.6077163",
"0.6070176",
"0.6053476",
"0.6047775",
"0.60461307",
"0.60428613",
"0.60390764",
"0.60212886",
"0.60117203",
"0.59840536",
"0.5981998",
"0.5979872",
"0.5979024",
"0.5975423",
"0.59732807",
"0.59253323",
"0.592161",
"0.591743",
"0.5917196",
"0.590301",
"0.58996916",
"0.5896337",
"0.5888833",
"0.5883802",
"0.5877273",
"0.58771676",
"0.5866215",
"0.5864826",
"0.58642405",
"0.5861955",
"0.58576536",
"0.584578",
"0.5844964",
"0.5836828",
"0.5836219",
"0.5834083",
"0.583095",
"0.5822567",
"0.58223236",
"0.58183897",
"0.5814293",
"0.5797515",
"0.5796943",
"0.5796729",
"0.5787442",
"0.5785714",
"0.578397",
"0.57811636",
"0.5774251",
"0.5773173",
"0.57683074",
"0.5751259",
"0.5744877",
"0.5742935",
"0.57399935",
"0.5738976",
"0.5734816",
"0.57327646",
"0.57319325",
"0.5722697",
"0.5715596",
"0.5711476",
"0.57057214",
"0.5693979",
"0.569347",
"0.56922525",
"0.56790423",
"0.5665663",
"0.56527776",
"0.5640171",
"0.5636572",
"0.56351125",
"0.5635089",
"0.5612994",
"0.56061673"
]
| 0.59222794 | 41 |
Returns the value that was thrown from the script. | public Object getValue() {
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"String getException();",
"String getException();",
"public SpawnException getCaught();",
"public static int getValue_from_die()\n {\n return value_from_die;\n }",
"public ByteVector getCodeItemTryCatch() {\n\t\treturn codeItem.getCodeItemTryCatch();\n\t}",
"String getCauseException();",
"private ScriptException getScriptException(LuaException e) {\n\t\tMatcher matcher = LUA_ERROR_MESSAGE.matcher(e.getMessage());\n\t\tif (matcher.find()) {\n\t\t\tString fileName = matcher.group(1);\n\t\t\tint lineNumber = Integer.parseInt(matcher.group(2));\n\t\t\treturn new ScriptException(e.getMessage(), fileName, lineNumber);\n\t\t} else {\n\t\t\treturn new ScriptException(e);\n\t\t}\n\t}",
"@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}",
"public ScriptThrownException(String message, Object value) {\n super(message);\n this.value = value;\n }",
"public java.lang.String getException() {\n return exception;\n }",
"public Throwable getReason() { return err; }",
"public String getScript() {\n/* 256 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"String getFaultReasonValue();",
"public T getOrThrow() {\n if (hasResult) {\n return value;\n } else {\n throw new ReflectionException(exception);\n }\n }",
"int getCauseValue();",
"public int getValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getvalue\", getRefId());\n\t}",
"int getDieValue() throws HaltException {\n printStream.print(\"\\n\\nChoose the value of the die (value goes from 1 to 6)\");\n return takeInput(1,6);\n }",
"public ScriptThrownException(Exception e, Object value) {\n super(e);\n this.value = value;\n }",
"public int getThrowWhen()\n {\n return throwWhen;\n }",
"public int getExceptionNumber(\n ) {return (0);}",
"public Set getThrown() {\n return thrown;\n }",
"@Property\n public native MintMessageException getExceptionError ();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }",
"default Value eval(String script) throws Exception {\n return eval(script, false);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }",
"public RuntimeException getTargetException() {\n/* 76 */ return this.runtimeException;\n/* */ }",
"public java.lang.CharSequence getException() {\n return Exception;\n }",
"public java.lang.CharSequence getException() {\n return Exception;\n }",
"@Override\n public int getExitCode() {\n if (e.getCode() == 0) {\n LOG.warn(\n \"Received an ExecutionEngineException with code 0. \"\n + \"Returning exit code -1 for this Execution.\");\n return -1;\n }\n return e.getCode();\n }",
"public String getExceptionType() {\n return this.excType;\n }",
"public Exception getException ()\r\n {\r\n return exception_;\r\n }",
"ExceptionEvaluationCondition getException();",
"public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}",
"java.lang.String getErr();",
"String getOnExceptionEnd();",
"public Optional<SpreadsheetError> error() {\n final Optional<Object> value = this.value();\n\n final Object maybeValue = this.value()\n .orElse(null);\n return maybeValue instanceof SpreadsheetError ?\n Cast.to(value) :\n SpreadsheetFormula.NO_ERROR;\n }",
"public Throwable getException() {\n return ex;\n }",
"public ActionExecutionException getLastException() {\n return this.lastException;\n }",
"public Exception getException() {\r\n return exception;\r\n }",
"public String getScriptAsString() {\n return this.script;\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"public Exception getException()\n\t{\n\t\treturn exception;\n\t}",
"public TCodeRep getErr() {\n return err;\n }",
"@ScriptyCommand(name = \"dbg-exception\", description =\n \"(dbg-exception)\\n\" +\n \"Get the exception that ended the current debugging session or null.\\n\" +\n \"See also: dbg-expr, dbg-exception?.\")\n @ScriptyRefArgList(ref = \"no arguments\")\n public Exception exception()\n throws CommandException {\n checkTrace();\n return trace.getException();\n }",
"public String getThrowInfo() {\n if (null == throwable) {\n return throwText;\n }\n // return from throwable;\n StringBuffer sb = new StringBuffer();\n StackTraceElement[] stackArray = throwable.getStackTrace();\n for (int i = 0; i < stackArray.length; ++i) {\n StackTraceElement element = stackArray[i];\n sb.append(element.toString() + \"\\n\");\n }\n return sb.toString();\n }",
"public Throwable getCause(){\n\t\treturn status.getException();\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"public Exception getException() {\n return exception;\n }",
"public Throwable getException() {\n\t\treturn adaptee.getException();\n\t}",
"public Exception getException() {\n return exception;\n }",
"public double evaluate() throws Exception {\r\n // this expression compare from variable\r\n throw new Exception(\"this expression contains a variable\");\r\n }",
"public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }",
"default V getOrThrow() {\n return getOrThrow(\"null\");\n }",
"@Nullable\n\tpublic Throwable getException() {\n\t\treturn exception;\n\t}",
"public Throwable getCause() {\n/* 85 */ return this.runtimeException;\n/* */ }",
"public Exception getException()\n {\n return exception;\n }",
"public Exception getException()\n {\n return m_exception;\n }",
"public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}",
"public Exception getException() {\n return mException;\n }",
"int getResultValue();",
"int getResultValue();",
"@Override\n protected String handleGetExceptionType()\n {\n\n final Object value = this.findTaggedValue(GuiProfile.TAGGEDVALUE_EXCEPTION_TYPE);\n\n return (value == null) ? \"\" : value.toString();\n\n }",
"public String getError() {\n\treturn mistake;\n }",
"public int reason() {\r\n return Integer.parseInt(getParm(1));\r\n }",
"public java.lang.String getError() {\n return localError;\n }",
"public java.lang.String getError() {\n return localError;\n }",
"public java.lang.String getError() {\n return localError;\n }",
"public String getScript() {\n return script;\n }",
"public java.lang.String getErr() {\n java.lang.Object ref = err_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n err_ = s;\n }\n return s;\n }\n }",
"public ObjectType getExceptionType() {\n return catchType;\n }",
"public String getExceptioninfo() {\n return exceptioninfo;\n }",
"public CommonExceptionConstants getReason() {\n return this.reason;\n }",
"String getFaultDetailValue();",
"public int getEresult() {\n return eresult_;\n }",
"public Throwable getCause() {\n return getException();\n }",
"public java.lang.String getErr() {\n java.lang.Object ref = err_;\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 err_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getErrorMsg() {\n return this.emsg;\n }",
"public Throwable method_8075() {\r\n return this.field_7865;\r\n }",
"public int getInt() throws Exception\n {\n return 0;\n }",
"public Throwable getCause () {\n\t\treturn ex;\n\t}",
"@Nullable public Throwable error() {\n return err;\n }",
"public int getEresult() {\n return eresult_;\n }",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"public String getError() {\n return writeResult.getError();\n }",
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"String getStringArgument() throws Exception {\n return this.readLine().split(\"\\\\s+\", 2)[1];\n }",
"public String getMostRecentException();",
"public int value() {\n return code;\n }",
"public Integer getLoginTry() throws NotLoadedException {\n return loginTry.getValue();\n }",
"public Object getValue() throws AspException\n {\n if (valuesAsString == null)\n return Constants.undefinedValueNode;\n return valuesAsString;\n }",
"public Exception getException ()\n {\n return exception;\n }",
"@Override\n\tpublic String getLastError() throws emException, TException {\n\t\treturn null;\n\t}",
"public Object getError() {\n\t\treturn error;\n\t}",
"public int getError() {\n return error;\n }",
"public String getError() {\r\n\t\tString error = _error;\r\n\t\t_error = null;\r\n\t\treturn error;\r\n\t}",
"public Object scriptBlockExecutionTimeout() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptBlockExecutionTimeout();\n }",
"java.lang.String getReason();",
"public java.lang.String getError() {\n return error;\n }"
]
| [
"0.66496754",
"0.6510122",
"0.6510122",
"0.6341591",
"0.63297296",
"0.6172812",
"0.6119453",
"0.6100047",
"0.59902614",
"0.5978253",
"0.58552957",
"0.583468",
"0.58310765",
"0.5785412",
"0.5779545",
"0.57557815",
"0.56850225",
"0.56421554",
"0.5613419",
"0.557617",
"0.55551296",
"0.5546651",
"0.5536273",
"0.55357164",
"0.5519828",
"0.5504616",
"0.5501041",
"0.5500767",
"0.5492939",
"0.54927933",
"0.5487568",
"0.54738986",
"0.54336977",
"0.54065734",
"0.5400924",
"0.5398312",
"0.53968394",
"0.53964466",
"0.53649485",
"0.53494453",
"0.53483343",
"0.5343821",
"0.5343821",
"0.5343821",
"0.5332514",
"0.5331779",
"0.5330489",
"0.53295624",
"0.5327745",
"0.5307718",
"0.53070015",
"0.5303696",
"0.5294011",
"0.52800965",
"0.5275163",
"0.52483106",
"0.52351284",
"0.5228712",
"0.5220345",
"0.52146965",
"0.5214411",
"0.5207659",
"0.5207101",
"0.5207101",
"0.52044547",
"0.5203568",
"0.5197347",
"0.51969343",
"0.51969343",
"0.51969343",
"0.5196222",
"0.5194967",
"0.51738405",
"0.5172587",
"0.5170112",
"0.5169067",
"0.5161493",
"0.51603377",
"0.51532716",
"0.5138694",
"0.5133499",
"0.5105092",
"0.5092456",
"0.5091961",
"0.50917447",
"0.5090417",
"0.50873154",
"0.5077093",
"0.5076795",
"0.507602",
"0.5069313",
"0.50535953",
"0.50509053",
"0.50506544",
"0.5048767",
"0.50384843",
"0.50350744",
"0.5034291",
"0.5033544",
"0.5021371",
"0.50125116"
]
| 0.0 | -1 |
Converts the script exception to an appropriate json resource exception. The exception message is set to, in order of precedence 1. Specific message set in the thrown script exception 2. Default exception supplied to this method, or if null 3. value toString of this exception | public ResourceException toResourceException(int defaultCode, String defaultMsg) {
if (value instanceof Map) {
// Convention on structuring well known exceptions with value that
// contains
// code : Integer matching ResourceException codes
// (required for it to be considered a known exception definition)
// reason : String - optional exception reason, not set this use the
// default value
// message : String - optional exception message, set to
// value.toString if not present
// detail : Map<String, Object> - optional structure with exception
// detail
// cause : Throwable - optional cause to chain
JsonValue val = new JsonValue(value);
Integer openidmCode = val.get(FIELD_CODE).asInteger();
if (openidmCode != null) {
String message = val.get(FIELD_MESSAGE).asString();
if (message == null) {
if (defaultMsg != null) {
message = defaultMsg;
} else {
message = String.valueOf(value);
}
}
JsonValue failureDetail = val.get(FIELD_DETAIL);
Throwable throwable = (Throwable) val.get("cause").getObject();
if (throwable == null) {
throwable = this;
}
return getException(openidmCode.intValue(), message, throwable).setDetail(
failureDetail);
}
}
if (defaultMsg != null) {
return getException(defaultCode, defaultMsg, this);
} else if (value == null) {
return getException(defaultCode, null, this);
} else {
return getException(defaultCode, String.valueOf(value.toString()), this);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}",
"@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}",
"private ScriptException getScriptException(LuaException e) {\n\t\tMatcher matcher = LUA_ERROR_MESSAGE.matcher(e.getMessage());\n\t\tif (matcher.find()) {\n\t\t\tString fileName = matcher.group(1);\n\t\t\tint lineNumber = Integer.parseInt(matcher.group(2));\n\t\t\treturn new ScriptException(e.getMessage(), fileName, lineNumber);\n\t\t} else {\n\t\t\treturn new ScriptException(e);\n\t\t}\n\t}",
"String getCauseException();",
"String getException();",
"String getException();",
"protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);",
"public InvalidJsonException(String message) {\n\t\tsuper(message);\n\t}",
"public JSONParsingException(String message) {\n super(message);\n }",
"private JSONObject createError(Exception exception, JSONObject invocationContext) throws JSONException {\n\n\t\tJSONObject callbackResult = new JSONObject();\n\t\ttry {\n\t\t\tcallbackResult.put(\"invocationContext\", invocationContext);\n\t\t\tString errorMessage = exception.getLocalizedMessage();\n\t\t\tif (errorMessage == null)\n\t\t\t\terrorMessage = exception.toString();\n\t\t\tcallbackResult.put(\"errorMessage\", errorMessage);\n\t\t\tif (exception instanceof MqttException)\n\t\t\t{\n\t\t\t\tint errorNumber = ((MqttException) exception).getReasonCode();\n\t\t\t\tcallbackResult.put(\"errorCode\", errorNumber);\n\t\t\t}\n\t\t\telse\n\t\t\t\tcallbackResult.put(\"errorCode\", generalError);\n\t\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\ttraceError(TAG, e.getMessage());\n\t\t}\n\t\treturn callbackResult;\n\t}",
"protected String doErrorMessage(Exception e){\n\t\treturn \"{ \\\"ERROR\\\": \\\"\"+ e.getMessage() + \"\\\"}\" ;\n\t}",
"public String toString ()\n {\n if (exception != null) {\n return exception.toString();\n } else {\n return super.toString();\n }\n }",
"public String getMessage() {\n\t\tif (iCause == null) { return super.getMessage(); }\n\t\treturn super.getMessage() + \"; nested exception is: \\n\\t\" + iCause.toString();\n\t}",
"public JSONException syntaxError(String message, Throwable causedBy) {\n return new JSONException(message + this.toString(), causedBy);\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"com.cg.Exercise4Exception\"+super.getMessage();\r\n\t}",
"@Override\n public String format(Object... args) {\n return new JSONObject(new FlowError(\n (long) args[0],\n (String) args[1],\n (String) args[2],\n (String) args[3],\n (String) args[4],\n (String) args[5],\n (String) args[6]),\n new String[] { moduleId, moduleName, flowId, flowTitle, correlationId, errorType, errorMessage })\n .toString(2);\n }",
"public String getMessage ()\n {\n String message = super.getMessage();\n\n if (message == null && exception != null) {\n return exception.getMessage();\n } else {\n return message;\n }\n }",
"public ScriptThrownException(String message, Object value) {\n super(message);\n this.value = value;\n }",
"protected static String setMessage(Exception exception) {\n if (exception != null) {\n if (exception instanceof ProjectCommonException) {\n return exception.getMessage();\n } else if (exception instanceof akka.pattern.AskTimeoutException) {\n return \"Request timed out. Please try again.\";\n }\n }\n return \"Something went wrong while processing the request. Please try again.\";\n }",
"public WeldExceptionStringMessage(String message) {\n // This will not be further localized\n this.message = message;\n }",
"public InvalidJsonException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"@Override\n public JsonValue apply(ResourceException e) throws ResourceException {\n if (e instanceof NotFoundException) {\n return json(null);\n } else {\n throw e;\n }\n }",
"java.lang.String getReason();",
"public ResourceRuntimeException(String message) {\n super(message);\n }",
"private static String getStorageExceptionString(StorageException e, FlowName flowName, String queueName) {\r\n try {\r\n StorageExtendedErrorInformation extInfo = e.getExtendedErrorInformation();\r\n StringBuffer addInfo = new StringBuffer(\"[\");\r\n if (extInfo != null) {\r\n HashMap<String, String[]> addDetails = extInfo.getAdditionalDetails();\r\n if (addDetails != null) {\r\n for (String key : addDetails.keySet()) {\r\n String[] values = addDetails.get(key);\r\n if (values != null) {\r\n addInfo.append(key).append(\"={\");\r\n boolean added = false;\r\n for (String val : values) {\r\n if (added) {\r\n addInfo.append(\", \");\r\n } else {\r\n added = true;\r\n }\r\n addInfo.append(val);\r\n }\r\n addInfo.append(\"}, \");\r\n }\r\n }\r\n }\r\n }\r\n addInfo.append(\"]\");\r\n\r\n String errorMessage = \"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" HTTP status code: \" + e.getHttpStatusCode() + \" Error code: \" +\r\n e.getErrorCode() + \" Error message: \" + e.getExtendedErrorInformation().getErrorMessage() +\r\n \" Additional info: \" + addInfo.toString();\r\n\r\n return errorMessage;\r\n } catch (Exception exp) {\r\n return \"Error while extracing info from a StorageException: \" + exp.getMessage() + \" StorageException was: \" + (e != null ? e.getMessage() : \"<null>\");\r\n }\r\n }",
"@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ? type.substring(dotIndex + 1) : type);\n\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}",
"public SmartScriptParserException(String message) {super(message);}",
"public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }",
"public InvalidJsonException() {\n\t\tsuper();\n\t}",
"void writeFormattedException(final String message,\n final Level level,\n final Writer out)\n throws IOException {\n JsonGenerator generator = new JsonFactory().createJsonGenerator(out);\n\n String backtrace = ExceptionUtils.getFullStackTrace(new Exception());\n String[] lines = backtrace.split(\"\\n\");\n StringBuilder builder = new StringBuilder();\n for (String line : lines) {\n if (!line.contains(\"com.greplin.gec.GecAppender.\")) {\n builder.append(line);\n builder.append(\"\\n\");\n }\n }\n backtrace = builder.toString();\n\n generator.writeStartObject();\n generator.writeStringField(\"project\", this.project);\n generator.writeStringField(\"environment\", this.environment);\n generator.writeStringField(\"serverName\", this.serverName);\n generator.writeStringField(\"backtrace\", backtrace);\n generator.writeStringField(\"message\", message);\n generator.writeStringField(\"logMessage\", message);\n generator.writeStringField(\"type\", \"N/A\");\n if (level != Level.ERROR) {\n generator.writeStringField(\"errorLevel\", level.toString());\n }\n writeContext(generator);\n generator.writeEndObject();\n generator.close();\n }",
"public EserialInvalidJsonException(String msg) {\n super(String.format(\"%s\", msg));\n }",
"public void addExceptionStyle();",
"public abstract RuntimeException getException(String message);",
"public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }",
"public CoderException(String message) {\n super(message);\n }",
"public JSONException syntaxError(String message) {\n return new JSONException(message + this.toString());\n }",
"String getInvalidMessage();",
"public BaseException(String message) {\n super(message);\n setErrorCode();\n }",
"@Property\n public native MintMessageException getExceptionError ();",
"public JSONObject buildError(String str) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"result\", (Object) \"WX_FAILED\");\n jSONObject.put(\"message\", (Object) str);\n return jSONObject;\n }",
"public CoderException(String message, Throwable cause) {\n super(message, cause);\n }",
"public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }",
"@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }",
"public ScriptThrownException(Exception e, Object value) {\n super(e);\n this.value = value;\n }",
"@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }",
"com.palantir.paxos.persistence.generated.PaxosPersistence.ExceptionProto getException();",
"public java.lang.String getException() {\n return exception;\n }",
"@SuppressWarnings({\"unchecked\"})\n\tpublic static JSONObject handleException(Exception e, int code) {\n\t\tJSONObject res = new JSONObject();\n\n\t\t// Set the result if the environment is development or production\n\t\tif(Config.getEnv() == StdVar.DEVELOPMENT_ENV) {\n\n\t\t\tres.put(\"result\", \"FAIL\");\n\t\t\tres.put(\"errorCode\", code);\n\t\t\tres.put(\"errorType\", e.getClass().toString());\n\t\t\tres.put(\"errorMessage\", e.getMessage());\n\t\t\t\n\t\t\t// Create the stack trace\n\t\t\tJSONArray trace = new JSONArray();\n\t\t\tfor(StackTraceElement element : e.getStackTrace()) {\n\t\t\t\ttrace.add(element.toString());\n\t\t\t}\n\t\t\tres.put(\"errorStackTrace\", trace);\n\n\t\t} else {\n\n\t\t\tres.put(\"result\", \"FAIL\");\n\t\t\tres.put(\"errorCode\", 500);\n\t\t\tres.put(\"errorMessage\", \"Internal server error\");\n\n\t\t}\n\n\t\treturn res;\n\t}",
"public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }",
"protected abstract String getMessage();",
"public GameEndException(String exception){\n\t\tsuper(exception);\n\t}",
"protected String formatException(Throwable failure) {\n Throwable rootCause = Throwables.getRootCause(failure);\n if (rootCause instanceof FileNotFoundException || rootCause instanceof NoSuchFileException) {\n return rootCause.getMessage() + \": No such file or directory\";\n } else if (rootCause instanceof JsonParseException) {\n JsonParseException parseException = (JsonParseException) rootCause;\n return String.format(\"%s at line %d, column %d\", parseException.getOriginalMessage(),\n parseException.getLocation().getLineNr(), parseException.getLocation().getColumnNr());\n } else {\n String message = failure.getLocalizedMessage();\n if (message == null) {\n // Anything is more useful then \"null\"\n message = failure.getClass().getSimpleName();\n message = removeSuffix(message, \"Exception\");\n message = CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, message).replace('_', ' ');\n }\n return message;\n }\n }",
"public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}",
"public JDBFException (String message){\r\n super(Messages.message(message));\r\n }",
"void writeFormattedException(final String message,\n final Throwable throwable,\n final Level level,\n final Writer out)\n throws IOException {\n JsonGenerator generator = new JsonFactory().createJsonGenerator(out);\n\n Throwable rootThrowable = throwable;\n while (this.passthroughExceptions.contains(rootThrowable.getClass())\n && rootThrowable.getCause() != null) {\n rootThrowable = rootThrowable.getCause();\n }\n\n generator.writeStartObject();\n generator.writeStringField(\"project\", this.project);\n generator.writeStringField(\"environment\", this.environment);\n generator.writeStringField(\"serverName\", this.serverName);\n generator.writeStringField(\"backtrace\",\n ExceptionUtils.getStackTrace(throwable));\n generator.writeStringField(\"message\", rootThrowable.getMessage());\n generator.writeStringField(\"logMessage\", message);\n generator.writeStringField(\"type\", rootThrowable.getClass().getName());\n if (level != Level.ERROR) {\n generator.writeStringField(\"errorLevel\", level.toString());\n }\n writeContext(generator);\n generator.writeEndObject();\n generator.close();\n }",
"ErrorType(@StringRes int i, @StringRes int i2) {\n this.mTitleResourceId = i;\n this.mMessageResourceId = i2;\n }",
"public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }",
"@ExceptionHandler({MalformedJsonException.class})\n @ResponseBody\n @ResponseStatus(HttpStatus.BAD_REQUEST)\n public String handleException(final RuntimeException e) {\n return convertErrorAsJson(e.getMessage());\n }",
"public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"public String exception(String text) throws RuntimeException {\n return text;\n }",
"public Twig4jException(String rawMessage) {\n this.rawMessage = rawMessage;\n }",
"protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"public ConverterException(String message) {\n super(message);\n this.cause = null;\n }",
"org.hl7.fhir.String getReason();",
"protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }",
"String getFaultReasonValue();"
]
| [
"0.5891404",
"0.58450025",
"0.5707659",
"0.56464565",
"0.5617287",
"0.5617287",
"0.5584353",
"0.5444282",
"0.5426613",
"0.53308195",
"0.53134793",
"0.5299897",
"0.529771",
"0.5274516",
"0.5261636",
"0.5257807",
"0.519016",
"0.5173503",
"0.515593",
"0.5116984",
"0.5113672",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5057331",
"0.5032685",
"0.50259584",
"0.50027966",
"0.49784094",
"0.4958474",
"0.4940295",
"0.49088144",
"0.4905577",
"0.48885438",
"0.48861745",
"0.48848414",
"0.48776373",
"0.48643413",
"0.48619404",
"0.48601693",
"0.48547456",
"0.48428547",
"0.48225433",
"0.481864",
"0.48131436",
"0.479776",
"0.47909397",
"0.47836035",
"0.4778689",
"0.4775853",
"0.47495577",
"0.47493166",
"0.47365984",
"0.473651",
"0.471631",
"0.4715652",
"0.47109038",
"0.4708221",
"0.47021812",
"0.46974358",
"0.4690128",
"0.46892697",
"0.4686924",
"0.46718186",
"0.46712974",
"0.46636355",
"0.4662358",
"0.46555093",
"0.46489277",
"0.4644895",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46429023",
"0.46295667",
"0.46245474",
"0.4622209",
"0.4604288",
"0.45998174"
]
| 0.55716777 | 7 |
A balanced dupdel mutation operator that performs either deletion OR duplication with some size distribution. | public static <G extends VarLengthGenome<G>> MutationRule<G> withSize(Function<G,DiscreteDistribution> lendist) {
final MutationRule<G> in = Duplication.withSize(lendist);
final MutationRule<G> del = Deletion.withSize(lendist);
return (rng) -> {
final MutationOp<G> in_rng = in.apply(rng);
final MutationOp<G> del_rng = del.apply(rng);
return (g, stats) -> {
if (rng.nextBoolean()) {
in_rng.accept(g, stats);
} else {
del_rng.accept(g, stats);
}
};
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Chromosome doDisplacementMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int allele2 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n\n int leftAllele = Math.min(allele1, allele2);\n int rightAllele = Math.max(allele1, allele2);\n\n var selectionSublist = new ArrayList<Boolean>(newSelection.subList(leftAllele, rightAllele));\n for(int j = leftAllele; j < rightAllele + 1; j++){\n newSelection.remove(leftAllele);\n }\n\n int index = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()+1);\n newSelection.addAll(index, selectionSublist);\n\n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}",
"void delete(int deleteSize);",
"public Chromosome doInsertionMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int allele2 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n boolean value = newSelection.get(allele2);\n\n newSelection.remove(allele2);\n try{\n newSelection.add(allele1 + 1, value);\n }\n catch(IndexOutOfBoundsException e){\n newSelection.add(value);\n }\n \n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"private int[] mutationSingleMove(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint newBin = mutant[pairPoint1];\n\t\twhile (newBin == mutant[pairPoint1]) {\n\t\t\tnewBin = rand.nextInt(binCount);\n\t\t}\n\t\tmutant[pairPoint1] = newBin; //swap to a different bucket\n\t\treturn mutant;\n\t}",
"@Test\n public void testInsertRemoveSeparate() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offsetInsert = new AtomicInteger();\n AtomicInteger offsetRemove = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offsetInsert.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n };\n Runnable remover = () -> {\n int start = offsetRemove.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setTestTimeMillis(4000);\n tst.addTask(threads, inserter);\n tst.addTask(threads, remover);\n tst.run();\n for (int k : c.keys()) {\n c.remove(k);\n }\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }",
"@Override\n\tpublic void deleteDuplicate(byte[] hash, long start, int len)\n\t\t\tthrows IOException {\n\n\t}",
"private void rehash() {\n\t\tint oldSize = this.size;\n\t\tint newSize = size * 2;\n\t\twhile (!isPrime(newSize))\n\t\t\tnewSize++;\n\t\tthis.size = newSize;\n\t\tDataItem[] newHashArray = new DataItem[newSize];\n\t\tString temp;\n\t\tthis.collision = 0;\n\t\tBoolean repeatValue;\n\t\tfor (int i = 0; i < oldSize; i++) {\n\t\t\tif (hashArray[i] != null && hashArray[i] != deleted)\n\t\t\t\ttemp = hashArray[i].value;\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t\trepeatValue = false;\n\t\t\tint hashVal = hashFunc(temp);\n\t\t\tboolean collisionFlag = false;\n\t\t\twhile (newHashArray[hashVal] != null\n\t\t\t\t\t&& !newHashArray[hashVal].value.equals(deleted.value)) {\n\n\t\t\t\tif (!collisionFlag) {\n\n\t\t\t\t\tthis.collision++;\n\t\t\t\t\tcollisionFlag = true;\n\n\t\t\t\t}\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\n\t\t\t}\n\t\t\tif (repeatValue)\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tnewHashArray[hashVal] = hashArray[i];\n\t\t\t}\n\t\t}\n\n\t\tthis.hashArray = newHashArray;\n\t}",
"public Chromosome doExchangeMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int allele2 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n Collections.swap(newSelection, allele1, allele2);\n\n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"public Chromosome doInversionMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int allele2 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n Collections.reverse(newSelection.subList(Math.min(allele1, allele2), Math.max(allele1, allele2)));\n\n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }",
"public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}",
"abstract public void deleteAfterBetaReduction();",
"public GuidedTreeMutationCoordinator(CentralRegistry registry, double chanceOfRandomMutation,\n\t\t\tboolean preventDuplicates, LinkedHashMap<TreeMutationAbstract, Double> smartMutators,\n\t\t\tTreeMutationCoordinator dumbCoordinator) {\n\t\tthis.registry = registry;\n\t\tthis.chanceOfRandomMutation = chanceOfRandomMutation;\n\t\tthis.preventDuplicates = preventDuplicates;\n\t\tthis.smartMutators = smartMutators;\n\t\tthis.dumbCoordinator = dumbCoordinator;\n\t\tcalculateTotalChance();\n\t}",
"public void removeCount() {\n \t\tdupCount--;\n \t}",
"void compareDeletion();",
"public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }",
"private int[] mutationPairwiseExchange(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint pairPoint2 = pairPoint1;\n\t\twhile (mutant[pairPoint2] == mutant[pairPoint1]) {\n\t\t\tpairPoint2 = rand.nextInt(mutant.length); //find element in different bucket\n\t\t}\n\t\tint temp = mutant[pairPoint1];\n\t\tmutant[pairPoint1] = mutant[pairPoint2];\n\t\tmutant[pairPoint2] = temp;\n\t\treturn mutant;\n\t}",
"public void cull(int targetSize){\n\t\tthis.shuffle();\n\t\tArrayList<Bacteria> temp = new ArrayList<Bacteria>();\n\t\tdouble sumFit = 0;\n\t\tfor (Bacteria ind : inds) sumFit += ind.calcObjFit();\n\n\t\t// if all fitnesses are 0, don't change population\n\t\tif (sumFit==0) return;\n\n\t\t// The gap is adjusted so the pop will be shrunken to targetSize\n\t\tdouble gap = sumFit/targetSize;\n\t\tdouble curPoint = gap/2;\n\t\tdouble curSumFit = 0;\n\t\tint curPopIndex = -1;\n\t\tint tempIndex = 0;\n\n\t\twhile (curPopIndex + 1 < inds.size()) {\n\n// System.out.println(getPopSize() + \" \" + tempIndex + \" \" + curPopIndex);\n\t\t\tif (curSumFit >= curPoint) {\n\t\t\t\ttemp.add(tempIndex, inds.get(curPopIndex));\n\t\t\t\ttempIndex++;\n\t\t\t\tcurPoint += gap;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurPopIndex++;\n\t\t\t\tcurSumFit += inds.get(curPopIndex).calcObjFit();\n\t\t\t}\n\t\t}\n\t\tinds = temp;\n\t\t\n\t}",
"@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"public LinearGenomeShrinkMutation(int numberGenesToRemove){\n\t\tthis.numberGenesToRemove = numberGenesToRemove;\n\t}",
"@Override\n protected void rebalanceDelete(Position<Entry<K, V>> p) {\n if (isRed(p)) {\n makeBlack(p);\n } else if (!isRoot(p)) {\n Position<Entry<K, V>> sib = sibling(p);\n if (isInternal(sib) & (isBlack(sib) || isInternal(left(sib)))) {\n remedyDoubleBlack(p);\n }\n }\n }",
"public void setUniformMutationRatio(double delta){\n this.delta = delta;\n }",
"public void deleteMin();",
"void remove (int offset, int size);",
"private void disturbPermut(int[] permutation) {\r\n\t\tpermutation = Arrays.copyOf(permutation, nCities);\r\n\r\n\t\tint i1 = 0, i2 = 0;\r\n\t\twhile (i1 == i2) {\r\n\t\t\ti1 = (int) MathLib.Rand.uniform(0, nCities);\r\n\t\t\ti2 = (int) MathLib.Rand.uniform(0, nCities);\r\n\t\t}\r\n\r\n\t\tpermutation[i1] = permutation[i2];\r\n\t\tpermutation[i2] = permutation[i1];\r\n\t}",
"public abstract int deleteMin();",
"public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapExtractMin();\n\t}",
"int delete(Subdivision subdivision);",
"public int delete(int ind)\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n else {\n int keyItem = heap[ind];\n heap[ind] = heap[heapSize-1];\n heapSize--;\n heapifyDown(ind);\n return keyItem;\n }\n }",
"@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }",
"public T deleteMin();",
"public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}",
"@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}",
"protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }",
"private ListNode deleteReplicateNode(ListNode head) {\n\n if (head == null || head.next == null) {\n System.out.println(\"Head is null or there is only one node\");\n return head;\n }\n\n ListNode preNode = null;\n ListNode node = head;\n while (node != null) {\n\n ListNode nextNode = node.next;\n boolean deleteFlag = false;\n if (nextNode != null && node.val == nextNode.val) {\n deleteFlag = true;\n }\n\n if (!deleteFlag) {\n preNode = node;\n } else {\n int value = node.val;\n ListNode toBeDeleted = node;\n\n while (toBeDeleted != null && toBeDeleted.val == value) {\n nextNode = toBeDeleted.next;\n\n toBeDeleted.next = null;\n\n toBeDeleted = nextNode;\n }\n\n // when old head node is duplicated, we need to assign the new head.\n if (preNode == null) {\n head = nextNode;\n } else {\n // use preNode to connect these non-duplicate nodes.\n preNode.next = nextNode;\n }\n }\n\n node = nextNode;\n }\n\n return head;\n }",
"void delete(final Key key) {\n int r = rank(key);\n if (r == size || keys[r].compareTo(key) != 0) {\n return;\n }\n for (int i = r; i < size - 1; i++) {\n keys[i] = keys[i + 1];\n values[i] = values[i + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }",
"public double getUniformMutationRatio(){\n return delta;\n }",
"public long free(long size);",
"private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}",
"@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }",
"public ByteBuf retainedDuplicate()\r\n/* 83: */ {\r\n/* 84:100 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 85:101 */ return super.retainedDuplicate();\r\n/* 86: */ }",
"LengthDistinct createLengthDistinct();",
"private Node<Value> delete(Node<Value> x, String key, int d)\r\n {\r\n if (x == null) return null;\r\n char c = key.charAt(d);\r\n if (c > x.c) x.right = delete(x.right, key, d);\r\n else if (c < x.c) x.left = delete(x.left, key, d);\r\n else if (d < key.length()-1) x.mid = delete(x.mid, key, d+1);\r\n else if (x.val != null) { x.val = null; --N; }\r\n if (x.mid == null && x.val == null)\r\n {\r\n if (x.left == null) return x.right;\r\n if (x.right == null) return x.left;\r\n Node<Value> t;\r\n if (StdRandom.bernoulli()) // to keep balance\r\n { t = min(x.right); x.right = delMin(x.right); }\r\n else\r\n { t = max(x.left); x.left = delMax(x.left); }\r\n t.right = x.right;\r\n t.left = x.left;\r\n return t;\r\n }\r\n return x;\r\n }",
"public static void QTdeletionMinimization (Graph<Integer,String> g, int currentSize) {\n\t\t\r\n\t\tboolean existsP4orC4 = false;\r\n\t\t\r\n\t\t//int temp = QTDelHeuristic1(Copy(g));\r\n\t\t//System.out.print(\"n = \"+g.getVertexCount()+\" m=\"+g.getEdgeCount()+\" hVal = \"+temp +\"\\n\");\r\n\t\tif (currentSize >= minSoFar) return; \r\n\t\tIterator<Integer> a = g.getVertices().iterator();\r\n\t\tIterator<Integer> b;\r\n\t\tIterator<Integer> c;\r\n\t\tIterator<Integer> d;\r\n\t\twhile(a.hasNext()){\r\n\t\t\tInteger A = a.next();\r\n\t\t\t//System.out.print(\"\"+A+\" \");\r\n\t\t\tb = g.getNeighbors(A).iterator();\r\n\t\t\twhile(b.hasNext()){\r\n\t\t\t\tInteger B = b.next();\r\n\t\t\t\tc = g.getNeighbors(B).iterator();\r\n\t\t\t\twhile (c.hasNext()){\r\n\t\t\t\t\tInteger C = c.next();\r\n\t\t\t\t\tif (g.isNeighbor(C, A) || C==A) continue;\r\n\t\t\t\t\td = g.getNeighbors(C).iterator();\r\n\t\t\t\t\twhile (d.hasNext()){\r\n\t\t\t\t\t\tInteger D = d.next();\r\n\t\t\t\t\t\tif (D==B) continue; \r\n\t\t\t\t\t\tif (g.isNeighbor(D,B)) continue;\r\n\t\t\t\t\t\t//otherwise, we have a P4 or a C4\r\n\r\n\t\t\t\t\t\texistsP4orC4 = true;\r\n\t\t\t\t\t\tif (currentSize + 1 >= minSoFar) return;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.print(\"Found P4: \"+A+\"-\"+B+\"-\"+C+\"-\"+D+\"... not a cograph\\n\");\r\n\t\t\t\t\t\tif (g.isNeighbor(D,A)) {\r\n\t\t\t\t\t\t\t// we have a C4 = a-b-c-d-a\r\n\t\t\t\t\t\t\t// delete any two edges\r\n\t\t\t\t\t\t\tif (currentSize + 2 >= minSoFar) return;\r\n\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, B));\r\n\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\r\n\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(D, A));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\t\t\t\t\t\t\t//g.addEdge(\"mar-\"+A+\"-\"+D, A,D);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+B, A,B);\r\n\t\t\t\t\t\t\t// all cases with AB deleted are done. AD is STILL deleted\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\r\n\t\t\t\t\t\t\t// all cases with AB deleted or AD deleted are done\r\n\t\t\t\t\t\t\t// at this point, CD and AD are still deleted\r\n\t\t\t\t\t\t\t// only need to try BC and CD together deleted.\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+D, A,D);\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\tQTdeletionMinimization(g,2+currentSize);\r\n\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// this case says:\r\n\t\t\t\t\t\t\t// else D is NOT adjacent to A. Then we have P4=abcd\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint choice = randomInt(1,4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (choice == 1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, B));\r\n\t\t\t\t\t\t\t\tQTdeletionMinimization(g,1+currentSize);\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+B, A,B);\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\telse if (choice == 2) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\t\tQTdeletionMinimization(g,1+currentSize);\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\t\tQTdeletionMinimization(g,1+currentSize);\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\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\t\r\n\t\t\t\t\t\tif (existsP4orC4==true) {\r\n\t\t\t\t\t\t\t// it found an obstruction and branched on all its ways.\r\n\t\t\t\t\t\t\t// No need to deal with this graph further.\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} // end d.hasNext()\r\n\t\t\t\t} // end c.hasNext()\r\n\t\t\t} // end b.hasNext() \r\n\t\t} // end a.hasNext()\r\n\r\n\t\t// if we reached here, no P4 was found\r\n\t\tif (existsP4orC4 == false) {\r\n\t\t\t// arrived at a quasi-threshold graph since no P4 or C4 was found\r\n\t\t\tSystem.out.print(\"\\n currentSize = \"+currentSize+\" and minSoFar = \"+minSoFar+\"\\n\");\r\n\t\t\tSystem.out.print(\"Modified graph has \"+g.getEdgeCount()+\" edges and is:\\n\");\r\n\t\t\tminSoFar = currentSize;\r\n\t\t\tSystem.out.print(\"\"+g+\"\\n\");\r\n\t\t\tNewTools.printToFile(currentSize,g,null,\"QTDel.txt\");\r\n\t\t\t//NewTools.DrawIt(g);\r\n\t\t\t//PleaseWait(60000); // one minute\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// ...\r\n\t\tSystem.out.print(\"Critical Error. No P_4 or C_4 found in a non-quasi-threshold graph.\\n\");\r\n\t\treturn;\r\n\r\n\t\t\r\n\t}",
"public Chromosome doBitFlipMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n int itemToMutate = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n newSelection.set(itemToMutate, !newSelection.get(itemToMutate));\n\n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"@Test\n public void testDelMin() {\n PriorityQueue<Integer> instance = new PriorityQueue<>();\n instance.insert(7);\n instance.insert(5);\n instance.insert(6);\n assertEquals(new Integer(5), instance.delMin());\n }",
"@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }",
"@Test\n public void run() throws Exception {\n BranchName main = BranchName.of(\"main\");\n\n // create an old commit referencing both unique and non-unique assets.\n //The unique asset should be identified by the gc policy below since they are older than 1 day.\n store.setOverride(FIVE_DAYS_IN_PAST_MICROS);\n commit().put(\"k1\", new DummyValue().add(-3).add(0).add(100)).withMetadata(\"cOld\").toBranch(main);\n\n // work beyond slop but within gc allowed age.\n store.setOverride(TWO_HOURS_IN_PAST_MICROS);\n // create commits that have time-valid assets. Create more commits than ParentList.MAX_PARENT_LIST to confirm recursion.\n for (int i = 0; i < 55; i++) {\n commit().put(\"k1\", new DummyValue().add(i).add(i + 100)).withMetadata(\"c2\").toBranch(main);\n }\n\n // create a new branch, commit two assets, then delete the branch.\n BranchName toBeDeleted = BranchName.of(\"toBeDeleted\");\n versionStore.create(toBeDeleted, Optional.empty());\n Hash h = commit().put(\"k1\", new DummyValue().add(-1).add(-2)).withMetadata(\"c1\").toBranch(toBeDeleted);\n versionStore.delete(toBeDeleted, Optional.of(h));\n\n store.clearOverride();\n {\n // Create a dangling value to ensure that the slop factor avoids deletion of the assets of this otherwise dangling value.\n save(TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis()), new DummyValue().add(-50).add(-51));\n\n // create a dangling value that should be cleaned up.\n save(TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis()) - TimeUnit.DAYS.toMicros(2), new DummyValue().add(-60).add(-61));\n }\n\n SparkSession spark = SparkSession\n .builder()\n .appName(\"test-nessie-gc-collection\")\n .master(\"local[2]\")\n .getOrCreate();\n\n // now confirm that the unreferenced assets are marked for deletion. These are found based\n // on the no-longer referenced commit as well as the old commit.\n GcOptions options = ImmutableGcOptions.builder()\n .bloomFilterCapacity(10_000_000)\n .maxAgeMicros(ONE_DAY_OLD_MICROS)\n .timeSlopMicros(ONE_HOUR_OLD_MICROS)\n .build();\n IdentifyUnreferencedAssets<DummyValue> app = new IdentifyUnreferencedAssets<DummyValue>(helper, new DynamoSupplier(), spark, options);\n Dataset<UnreferencedItem> items = app.identify();\n Set<String> unreferencedItems = items.collectAsList().stream().map(UnreferencedItem::getName).collect(Collectors.toSet());\n assertThat(unreferencedItems, containsInAnyOrder(\"-1\", \"-2\", \"-3\", \"-60\", \"-61\"));\n }",
"public String dedup(String symbol) {\n\t\tDedup dedup = threadLocalDedup.get();\n\t\tMap<String, String> cache = dedup.cache;\n\t\tString cached;\n\t\tif ((cached = cache.get(symbol)) != null) {\n\t\t\treturn cached;\n\t\t} else {\n\t\t\t// Puts the symbol into cache with 20% probability\n\t\t\tint prob = (int) (Integer.MIN_VALUE + (0.2 * (1L << 32)));\n\t\t\tif (dedup.random.nextInt() < prob) {\n\t\t\t\tcache.put(symbol, symbol);\n\t\t\t}\n\t\t\treturn symbol;\n\t\t}\n\t}",
"public void sizeDecrease1() {\n\t\t _size--;\n\t}",
"public void cull(int targetSize) {\r\n Validate.nonNegative(targetSize, \"target size\");\r\n\r\n while (numElements > targetSize) {\r\n Fitness worst = elementsByFitness.firstKey();\r\n List<Element> list = elementsByFitness.get(worst);\r\n int listSize = list.size();\r\n assert listSize > 0 : listSize;\r\n if (numElements - listSize >= targetSize) {\r\n List<Element> old = elementsByFitness.remove(worst);\r\n assert old != null;\r\n numElements -= listSize;\r\n } else {\r\n Iterator<Element> it = list.iterator();\r\n while (it.hasNext()) {\r\n it.next();\r\n if (numElements > targetSize) {\r\n it.remove();\r\n --numElements;\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void delete(Node<T> x) {\n decreaseKey(x, min.key);\n extractMin();\n }",
"private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }",
"public synchronized void delete() {\ncounter -= 1;\n}",
"public static void generate_deletion(char[] sequence, int nb_deletion, HashSet<String> hash, int offset){\n for(int c=offset;c<sequence.length;c++){\n char[] new_seq = new char[sequence.length-1];\n int newseq_index=0;\n // copy the char array, applying the appropriate modifications\n for(int i=0;i<sequence.length;i++){\n if(i==c) continue;\n new_seq[newseq_index] = sequence[i];\n newseq_index++;\n }\n hash.add(new String(new_seq));\n if(nb_deletion > 1){\n generate_deletion(new_seq,nb_deletion-1,hash,offset);\n }\n }\n }",
"public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }",
"public void createSelectedPopulation(Population previousPopulation, int populationSize, double perc) {\n\t\t\n\t\tint intendedSize = (int)(populationSize * perc/100);\n\t\tSystem.out.println(\"intended size: \" + intendedSize ) ;\n\t\tint currentSize = 0;\n\t\tint randomPopulationSize;\n\t\tSolution mutant;\n\t\tList<ArrayList<String>> added = new ArrayList<ArrayList<String>>();\n\n\t\t\n\t\t//copy solutions from the previous population until the cloning factor is bigger than 1\n\t\tfor(Solution solution : previousPopulation.getPopulation()) {\n\t\t\tif(solution.getCloningFactor() < 1.0) break;\n\t\t\t\n\t\t\t//add as many clones of the current solution\n\t\t\t//as indicates the cloning factor\n\t\t\t//eg. if cloning factor is 2 -> 3 copies of this solution will go to the next population\n\t\t\tfor(int i = 0; i <= (int) solution.getCloningFactor(); i++) {\n\t\t\t\t//if we get a complete population by cloning the solution from the previous population\n\t\t\t\t//leave the method\n\t\t\t\tif(currentSize == intendedSize) break;\n\t\t\t\t\n\t\t\t\t//we create a mutation of each clone\n\t\t\t\t//if mutation is less efficient or already exists in the population we discard it\n\t\t\t\tmutant = new Solution(solution.getFrequencyRelations(), solution.getCabinets());\n\t\t\t\tArrayList<String> mutantSol = solution.mutate();\n\t\t\t\tmutant.setPossibleSolution(mutantSol);\n\t\t\t\tmutant.setPath(mutant.countPath(mutant.getPossibleSolution()));\n\t\t\t\t\n\t\t\t\t//System.out.println(\"M: \" + mutantSol + \" \" + mutant.getPath() );\n\t\t\t//\tSystem.out.println(\"S: \" + solution.getPossibleSolution() + \" \" + solution.getPath() );\n\n\n\t\t\t\tif(mutant.getPath() >= solution.getPath() || added.contains(mutant.getPossibleSolution()) ) {\n\t\t\t\t\tpopulation.add(solution);\n\t\t\t\t\tadded.add(solution.getPossibleSolution());\n\t\t\t\t\t//System.out.println(\"original\");\n\t\t\t\t}else {\n\t\t\t\t\tpopulation.add(mutant);\n\t\t\t\t\tadded.add(mutant.getPossibleSolution());\n\t\t\t\t\t//System.out.println(\"mutant\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\tcurrentSize++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//count the number of random solutions that should be added\n\t\tif(currentSize <= populationSize) {\n\t\t\t randomPopulationSize = populationSize - currentSize;\n\t\t}else return;\n\t\t\n\t\t//create random solutions and add them to the population \n\t\t//until the wished size is reached\n\t\tcreateRandomPopulation(previousPopulation.getCabinetArrangement(), randomPopulationSize);\n\t\t\t\n\t}",
"public ArrayList<Person> hashDoubleDeduplication(){\n\tArrayList<Person> unduplicated1 = new ArrayList<>();\n\tDoubleHashMap<String, Person> map = new DoubleHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t // and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\t//The following lines of codes were commented after usage in the first part of the assignment:\n\t//System.out.println (\"Average number of probes: \"+ average/insertCount );\n\t//System.out.println(\"Max number of probes: \"+ max);\n\t//System.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n\tIterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated1.add(suspect);\n\t}\n\treturn unduplicated1;\n }",
"public static void mutation(Individual[] individuals) {\n for (int i = 0; i < POP_SIZE; i++) {\n for (int j = 0; j < GENE_SIZE; j++) {\n double randomNum = Math.random();\n if (randomNum < MUTATION_RATE) {\n randomNum = Math.random();\n ArrayList<String> bitsList = (ArrayList<String>) bits.clone();\n for (int g = 0; g < bitsList.size(); g++) {\n if (individuals[i].gene[j].equals(bitsList.get(g))) {\n String bit = bitsList.get(g);\n bitsList.remove(g);\n int index;\n if (randomNum < 0.5) {\n index = 0;\n } else {\n index = 1;\n }\n individuals[i].gene[j] = bitsList.get(new Random().nextInt(2));\n bitsList.add(bit);\n }\n }\n }\n }\n individuals[i].generateRulebase();\n }\n matingPool = Arrays.copyOf(individuals, individuals.length);\n }",
"public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }",
"public abstract Instance duplicate();",
"private static Set<Chromosome> mutatePopulation(Set<Chromosome> population, double mutationRate) {\n Set<Chromosome> mutatedChromosomes = new HashSet<>(population);\n\n for (Chromosome path : mutatedChromosomes) {\n double mutationProbability = ThreadLocalRandom.current().nextDouble();\n if (mutationProbability > (1-mutationRate)) {\n // mutate the path using the RSM mutation operator\n mutateRoute(path);\n // indicate that the fitness of this path needs to be recalculated\n path.fitness = -1;\n }\n }\n\n // The set will most probably include certain chromosomes which are already present in the set of children\n // however, given that both are sets, any duplicates will be discarded\n return mutatedChromosomes;\n }",
"void visit(final Delete delete);",
"public T remove() {\r\n if (size() == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n \r\n T deleted = elements[r];\r\n elements[r] = elements[size() - 1];\r\n elements[size() - 1] = null;\r\n size--;\r\n \r\n if (size() > 0 && size() < elements.length / 4) {\r\n resize(elements.length / 2);\r\n }\r\n \r\n return deleted;\r\n }",
"@Test\r\n\tpublic void permutationsTestSize2() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tassertEquals(\"Permutations output\",\"[[1, 2], [2, 1]]\",\tbq.permutations().toString());\r\n\t}",
"@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"void insert(int insertSize);",
"void addCopy() {\r\n numCopies++;\r\n }",
"private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }",
"public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }",
"public static void testDedupe(){\n LinkedList<String> list = new LinkedList<String>();\n \n for(int i = 0; i < 10; i++)\n list.add(\"Number \" + i);\n for(int j = 0; j < 5; j++)\n list.add(\"Number \" + j);\n \n //print test list\n for (String num : list)\n System.out.print(num + \" \");\n \n //Call deDupe and reprint list\n LinkedLists.deDupe(list);\n System.out.println(\"List after removing dupes: \" + '\\n');\n for (String num : list)\n System.out.print(num + \" \");\n }",
"int deleteByExample(DisproductExample example);",
"int deleteByExample(DressExample example);",
"@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void mutation() {\r\n\t\tfinal double MUTATION_PROB = 0.1;\r\n\t\tfor (int i=0; i<this.nChromosomes; i++) {\r\n\t\t\tArrayList<Integer> chr = (ArrayList<Integer>) this.chromosomes.get(i);\r\n\t\t\tfor (int j=0; j<this.nViaPoints; j++) {\r\n\t\t\t\tdouble rand = Math.random();\r\n\t\t\t\tif (rand < MUTATION_PROB) {\r\n\t\t\t\t\t// change the sign\r\n\t\t\t\t\tInteger vPoint = chr.get(j);\r\n\t\t\t\t\tchr.remove(j);\r\n\t\t\t\t\tchr.add(j, new Integer(- (vPoint.intValue()%100)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.printChromosomes(\"After Mutation\");\r\n\t}",
"@Test\r\n public void testSize() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n assertEquals(0, instance.size());\r\n\r\n instance.add(entry1);\r\n\r\n // Test increment\r\n assertEquals(1, instance.size());\r\n\r\n assertTrue(instance.remove(entry1));\r\n\r\n // Test decrement\r\n assertEquals(0, instance.size());\r\n }",
"public final void dup() {\n\t\tif (size > 0) {\n\t\t\tdouble topMostValue = stack[index];\n\t\t\tpush(topMostValue);\n\t\t}\n\t}",
"@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }",
"public Item dequeue() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the removed number is: \" + index);\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t p.prev.next = p.next;\n \t p.next.prev = p.prev;\n \t size = size - 1;\n \t return p.item;\n }",
"private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}",
"void delete (int index);",
"public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }",
"int deleteByExample(CollectExample example);",
"@Override\n\tpublic void delete()\n\t{\n\t\tif (!isAtEnd()) right.pop();\n\t}",
"boolean transfer(Recycler.Stack<?> dst)\r\n/* 302: */ {\r\n/* 303:328 */ Link head = this.head;\r\n/* 304:329 */ if (head == null) {\r\n/* 305:330 */ return false;\r\n/* 306: */ }\r\n/* 307:333 */ if (head.readIndex == Recycler.LINK_CAPACITY)\r\n/* 308: */ {\r\n/* 309:334 */ if (head.next == null) {\r\n/* 310:335 */ return false;\r\n/* 311: */ }\r\n/* 312:337 */ this.head = (head = head.next);\r\n/* 313: */ }\r\n/* 314:340 */ int srcStart = head.readIndex;\r\n/* 315:341 */ int srcEnd = head.get();\r\n/* 316:342 */ int srcSize = srcEnd - srcStart;\r\n/* 317:343 */ if (srcSize == 0) {\r\n/* 318:344 */ return false;\r\n/* 319: */ }\r\n/* 320:347 */ int dstSize = dst.size;\r\n/* 321:348 */ int expectedCapacity = dstSize + srcSize;\r\n/* 322:350 */ if (expectedCapacity > dst.elements.length)\r\n/* 323: */ {\r\n/* 324:351 */ int actualCapacity = dst.increaseCapacity(expectedCapacity);\r\n/* 325:352 */ srcEnd = Math.min(srcStart + actualCapacity - dstSize, srcEnd);\r\n/* 326: */ }\r\n/* 327:355 */ if (srcStart != srcEnd)\r\n/* 328: */ {\r\n/* 329:356 */ Recycler.DefaultHandle[] srcElems = head.elements;\r\n/* 330:357 */ Recycler.DefaultHandle[] dstElems = dst.elements;\r\n/* 331:358 */ int newDstSize = dstSize;\r\n/* 332:359 */ for (int i = srcStart; i < srcEnd; i++)\r\n/* 333: */ {\r\n/* 334:360 */ Recycler.DefaultHandle element = srcElems[i];\r\n/* 335:361 */ if (Recycler.DefaultHandle.access$1500(element) == 0) {\r\n/* 336:362 */ Recycler.DefaultHandle.access$1502(element, Recycler.DefaultHandle.access$1100(element));\r\n/* 337:363 */ } else if (Recycler.DefaultHandle.access$1500(element) != Recycler.DefaultHandle.access$1100(element)) {\r\n/* 338:364 */ throw new IllegalStateException(\"recycled already\");\r\n/* 339: */ }\r\n/* 340:366 */ srcElems[i] = null;\r\n/* 341:368 */ if (!dst.dropHandle(element))\r\n/* 342: */ {\r\n/* 343:372 */ Recycler.DefaultHandle.access$502(element, dst);\r\n/* 344:373 */ dstElems[(newDstSize++)] = element;\r\n/* 345: */ }\r\n/* 346: */ }\r\n/* 347:376 */ if ((srcEnd == Recycler.LINK_CAPACITY) && (head.next != null))\r\n/* 348: */ {\r\n/* 349:378 */ reclaimSpace(Recycler.LINK_CAPACITY);\r\n/* 350: */ \r\n/* 351:380 */ this.head = head.next;\r\n/* 352: */ }\r\n/* 353:383 */ head.readIndex = srcEnd;\r\n/* 354:384 */ if (dst.size == newDstSize) {\r\n/* 355:385 */ return false;\r\n/* 356: */ }\r\n/* 357:387 */ dst.size = newDstSize;\r\n/* 358:388 */ return true;\r\n/* 359: */ }\r\n/* 360:391 */ return false;\r\n/* 361: */ }",
"com.google.spanner.v1.Mutation.Delete getDelete();",
"public void deleteDoubles() {\r\n\t for (int j = 0; j < this.size()-1; j++) {\r\n\t for (int i = j+1; i < this.size(); i++) {\r\n\t if (this.get(i).equals(this.get(j))) {\r\n\t this.remove(i);\r\n\t i--;\r\n\t }\r\n\t }\r\n\t }\r\n\t }",
"public DoubleChromosome(int size) {\t\n\t\tfor(int g=0; g<size; g++){\n\t\t\tgenes.add(random.nextDouble()-0.5);\n\t\t}\n\t\tinit();\n\t}",
"void reduceStarsBy(final int amount);",
"private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }",
"@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3NotAllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}",
"public interface Duplo<T> {\n default Merge<T> merge() {\n return Merge.empty();\n }\n\n /** return the element stored in this instance; */\n T self();\n\n /**\n * do not override\n *\n * @return a stream representation of the element stored in this instance\n */\n default Stream<T> selfStream() {\n return self() == null ? Stream.empty() : Stream.of(self());\n }\n\n /**\n * return a stream of elements encapsulated by in this instance\n *\n * @return a stream representation of the element stored in this instance\n */\n default Stream<T> fullStream() {\n return Stream.empty();\n }\n\n /**\n * A {@link Duplo} which has no neighbors\n *\n * @param <T>\n * @author Yossi Gil\n * @since 2017-03-30\n */\n interface Atomic<T> extends Duplo<T> {\n @Override default Stream<T> fullStream() {\n return selfStream();\n }\n }\n\n interface Compound<T> extends Duplo<T> {\n Iterable<? extends Duplo<T>> components();\n\n @Override default Stream<T> fullStream() {\n return merge().append(self(), components());\n }\n }\n\n @FunctionalInterface interface Merge<T> {\n static <T> Merge<T> empty() {\n return (self, others) -> Stream.empty();\n }\n\n Stream<T> append(T self, Iterable<? extends Duplo<T>> others);\n }\n}",
"@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }",
"boolean delete(int value);",
"@Test\n public void testMixedDeletes() throws Exception {\n List<WALEntry> entries = new ArrayList<>(3);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < 3; i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n entries = new ArrayList(3);\n cells = new ArrayList();\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 0, DeleteColumn, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 1, DeleteFamily, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 2, DeleteColumn, cells));\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(0, scanRes.next(3).length);\n }",
"int deleteByExample(XdSpxxExample example);",
"private static void remove(int[]data,int size){\n int temp = data[0];\n data[0] = data[size-1];\n data[size-1] = temp;\n pushDown(data, size-1, 0);\n }",
"public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }",
"@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }"
]
| [
"0.5696099",
"0.5693743",
"0.5685312",
"0.5624169",
"0.5426503",
"0.5400826",
"0.53379077",
"0.5191976",
"0.50966144",
"0.49731857",
"0.490406",
"0.48984876",
"0.48941028",
"0.48567605",
"0.4803307",
"0.4770597",
"0.4751161",
"0.4731288",
"0.47292718",
"0.47207776",
"0.47148812",
"0.4708716",
"0.47068068",
"0.47062212",
"0.46747434",
"0.46679163",
"0.46617955",
"0.46547413",
"0.46533144",
"0.46421352",
"0.46377894",
"0.46115527",
"0.4608085",
"0.4607564",
"0.46045595",
"0.4601942",
"0.45855066",
"0.45821515",
"0.45779064",
"0.45685092",
"0.45653227",
"0.45631403",
"0.45575392",
"0.4550495",
"0.45478106",
"0.45418775",
"0.44997022",
"0.4494401",
"0.44934377",
"0.44930333",
"0.4490678",
"0.44768408",
"0.44706774",
"0.4467263",
"0.44649142",
"0.44610795",
"0.44559985",
"0.44538805",
"0.4442193",
"0.44360983",
"0.44285244",
"0.4428206",
"0.4423831",
"0.44139126",
"0.44034842",
"0.44019413",
"0.44006276",
"0.4390759",
"0.4390398",
"0.43883118",
"0.43860433",
"0.4382224",
"0.43817934",
"0.4378387",
"0.43748537",
"0.43722442",
"0.43687278",
"0.4367545",
"0.43605304",
"0.43596968",
"0.43591636",
"0.43555972",
"0.43547553",
"0.4350323",
"0.43495905",
"0.43442696",
"0.4343217",
"0.43424872",
"0.43409133",
"0.43400648",
"0.4338859",
"0.43283442",
"0.4326962",
"0.43235004",
"0.43167704",
"0.4314155",
"0.4310273",
"0.43095773",
"0.43087888",
"0.4305892"
]
| 0.5779515 | 0 |
Spring Data JPA repository for the Authority entity. | public interface AuthorityRepository extends JpaRepository<Authority, String> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String>{\n}",
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n Authority findByName(String name);\n\n}",
"public interface AuthorityRepository extends CrudRepository<Authority, Long> {\n\n /**\n * Find all authorities\n *\n * @return list of all authorities\n */\n List<Authority> findAll();\n\n /**\n * Find authority with the specified name\n * Returns null if no authority is associated with the specified name\n *\n * @param name the name of the authority to search by\n * @return authority with the specified name\n */\n Authority findByName(AuthorityName name);\n\n /**\n * Find list of authorities with given authority names.\n *\n * @param names authority names to search by\n * @return list of authorities with specified authority names\n */\n List<Authority> findByNameIn(List<AuthorityName> names);\n\n}",
"@Repository\npublic interface UserAuthorityRepository extends CrudRepository<UserAuthority, Long> {\n\tPage<UserAuthority> findAll(Pageable pageable);\n\n\tList<UserAuthority> findByUser(RegisteredUser registeredUser);\n\n\t@Query(value = \"select * from authorities where username = :username\", nativeQuery = true)\n\tList<UserAuthority> findByUsername(@Param(\"username\") String username);\n}",
"@Component\npublic interface AuthorityJpaRepository extends JpaRepository<Authority, Long> {\n\n}",
"public interface AuthorRepository extends CrudRepository<Author, Long> {\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"public interface AuthorityRepository extends MongoRepository<Authority, String> {\n}",
"public interface AuthorRepository extends CustomJpaRepository<Author, Long> {\n\n\tpublic Author findByAuthorName(String authorName);\n\n\tpublic Set<Author> findByAuthorBooks_Book_Id(Long bookId);\n}",
"public interface AuthorRepository extends Repository<Author, Integer> {\n\n\t\n\tvoid save(Author author) throws DataAccessException;\n\n\t\n\t@Query(\"SELECT DISTINCT author FROM Author author WHERE author.lastName LIKE :lastName%\")\n\tpublic Collection<Author> findByLastName(@Param(\"lastName\") String lastName);\n\n\t//@Query(\"SELECT DISTINCT author FROM Author author WHERE author.user.username = :username\")\n\tpublic Optional<Author> findByUserUsername(String username);\n\t\n\t@Query(\"SELECT author FROM Author author WHERE author.id =:id\")\n\tpublic Author findById(@Param(\"id\") int id);\n\n\t\n\n}",
"public interface AuthorityDAO {\n Authority findById(long id);\n List<Authority> getAllActions();\n}",
"public interface AuthorRepository extends CrudRepository<Author, Long> { //Long because the ID of Author is of type Long\n}",
"public interface AuthorityDao {\n /**\n * @param bucketInst\n * @param authId\n */\n public void saveBucketInstAuthority(BucketInst bucketInst, int authId);\n\n /**\n * @param dataInst\n * @param authId\n */\n public void saveDataInstAuthority(DataInst dataInst, int authId);\n\n /**\n * @param bucketId\n */\n public void deleteBucketInstAuthority(long bucketId);\n\n /**\n * @param bucketId\n * @return\n */\n public Set<Authority> getBucketInstAuthority(long bucketId);\n\n /**\n * @param dataInstId\n */\n public void deleteDataInstAuthority(long dataInstId);\n\n /**\n * @param dataInstId\n * @return\n */\n public Set<Authority> getDataInstAuthority(long dataInstId);\n\n /**\n * @param userId\n * @param bucketId\n * @return\n */\n public BucketInstAuthority getBucketAuthorityInst(long userId, long bucketId);\n\n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}",
"public interface RoleRepository extends CrudRepository<Role, Integer> {\n\n\tIterable<Role> findAll(Sort sort);\n\n\tRole findByRole(String role);\n\n}",
"public interface RoleRepository extends JpaRepository<Role, Long>{\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ConfigAclRepository extends JpaRepository<ConfigAcl, Long> {\n\n}",
"@Repository\npublic interface CityRepository extends JpaRepository<City, Long> {\n}",
"public interface OwnerRepository extends CrudRepository<Owner, Integer> {\n\n Owner findByUserName(String userName);\n\n\n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role,Integer>{\n\n}",
"public interface RoleRepository extends CrudRepository<Role, Long> {\n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role,Long> {\n\n Role findByName(String name);\n\n}",
"@Repository\r\npublic interface AccounterTypeService extends JpaRepository<AccounterType,Long>{\r\n AccounterType getByKind(String kind);\r\n}",
"Authority findByName(AuthorityName name);",
"@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}",
"public interface AccountRoleRepository extends CrudRepository<AccountRole, Long> {\n\n List<AccountRole> findByAccountId(Long accountId);\n\n}",
"public interface AuthorityDAO {\n List<Authority> loadAll();\n void save(Authority authority);\n}",
"public interface RolesRepository extends JpaRepository<RolesEntity, Long> {\n}",
"public interface RoleRepository extends CrudRepository<Role, Long>{\n}",
"public AuthorController(AuthorRepository authorRepository) {\n this.authorRepository = authorRepository;\n }",
"@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}",
"public interface RoleRepository extends CrudRepository<Role, Integer> {\n}",
"public interface CompanyRepository extends JpaRepository<Company, String> {\n Company findByName(String name);\n}",
"public interface RoleRepository extends CrudRepository<Role, Long> {\n\n Role findByName(String name);\n\n}",
"public interface ContactRepository extends JpaRepository<Contact, Long> {\n\n}",
"public interface OwnerRepository extends CrudRepository<Owner, Long> {\n Owner findByLastName(String lastName);\n List<Owner> findAllByLastNameLike(String lastName);\n}",
"public interface RolesRepo extends JpaRepository<Roles, Integer> {\n\n\tRoles findByRoleName(String roleName);\n}",
"public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}",
"@Mapper\npublic interface AuthorityMapper {\n\n Authority create(Authority authority);\n\n Authority update(Authority authority);\n\n Authority delete(Authority authority);\n\n List<Authority> search(PageCondition condition);\n\n}",
"public interface CidadeRepository extends JpaRepository<Cidade, Long> {\n\t\n\tList<Cidade> findByEstadoCodigo(Long estadoCodigo);\n}",
"@Repository\npublic interface ContactInformationDAO extends JpaRepository<Contact, Long> {\n\n}",
"public interface AudienceRepository extends JpaRepository<Audience,Long> {\n\n}",
"public interface CategoryRepository extends JpaRepository<Category, Long> {\n}",
"@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}",
"public interface AddressesRepository extends JpaRepository<Addresses,Long> {\n\n}",
"@Repository\npublic interface CategoryRepository extends CrudRepository<Category,Long> {\n}",
"public interface AccountRepository extends JpaRepository<Account, String> {\n}",
"@Resource(name = \"roleRepository\")\npublic interface RoleRepository extends BaseRepository<Role, Long> {\n\t\n\t@Query(nativeQuery=true,value=\"select permissions from role_permission where role=?1\")\n\tpublic List findPidByRoleId(Long rid);\n}",
"@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n}",
"@Repository\npublic interface CategoryRepository extends JpaRepository<Category,Long> {\n\n\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SchemeRepository extends JpaRepository<Scheme,Long> {\n\n List<Scheme> findSchemeByDriver(Driver driver);\n\n}",
"public interface RolesRepository extends JpaRepository<Role, Integer>{\r\n\tOptional<Role> findByRoleName(Roles role);\r\n}",
"public interface CategoryRepository extends JpaRepository<Category, Integer> {\n}",
"@Repository\npublic interface OwnerRepository extends BaseRepository<EOwner,UUID> {\n}",
"@Repository\npublic interface EditorRepository extends JpaRepository<Editor, Long> {\n}",
"public interface CategoryRepository extends CrudRepository<Category, Long> {\n}",
"@SuppressWarnings(\"unused\")\n//@Repository\n@CrossOrigin(\"http://localhost:4200\")\n@RepositoryRestResource(collectionResourceRel = \"adresses\", path = \"adresses\")\npublic interface AdresseRepository extends JpaRepository<Adresse, Long> {\n\n}",
"public interface ITelephoneRepository extends CrudRepository<Telephone, Long> {\n public List<Telephone> findByAuthorId(Long id);\n}",
"public interface RoleRepository extends CrudRepository<Role, Long> {\n\n List<Role> findAll();\n Role findByName(String name);\n\n}",
"@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}",
"public interface UserRoleRepository extends JpaRepository<UserRoleEntity, Long> {\n\n List<UserRoleEntity> findByUser(UserEntity entity);\n}",
"public interface RoleRepository extends JpaRepository<Role,Long> {\n\n /**\n * Adnotacja Query - Spring Data dzięki adnotacji udostępnia możliwość definiowania zapytania.\n * Dodatkowa metoda findByName - wyszukuje rekord w bazie danych na podstawie nazwy roli.\n */\n @Query(\"SELECT r FROM Role r WHERE r.name = ?1\")\n public Role findByName(String name);\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}",
"public interface Authority {\r\n public int getAuthority(Connection connection,String username) throws SQLException;\r\n}",
"@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}",
"public interface RaceRepository extends CrudRepository<Race, Integer> {\n\n}",
"public interface AccountRepository extends JpaRepository<Account, Integer>{\n}",
"@Repository\npublic interface LandUriRepository extends CrudRepository<LandUri, Long>{\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SocialContactRepository extends JpaRepository<SocialContact, Long> {\n\n}",
"public interface UserRoleRepository extends CrudRepository<UserRole, Integer> {\n}",
"public interface IQrcodeDao extends BaseRepository<Qrcode, Integer>, JpaSpecificationExecutor<Qrcode> {\n}",
"@Repository\npublic interface DistrictCountryRepository extends JpaRepository<DistrictCountry, String> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}",
"public interface IRepositoryRole extends IRepository<Role,UUID> {\n public Role roleByRoleName(String roleName) throws RoleException;\n}",
"public interface SpecialityRepository extends CrudRepository<Speciality,Long> {\n\n}",
"@Repository\npublic interface ClClassificationSchemeConRepository extends AXBootJPAQueryDSLRepository<ClClassificationSchemeCon, ClClassificationSchemeCon.ClClassificationSchemeId>\n{\n\n}",
"@Repository\npublic interface ICountryRepository extends JpaRepository<Country, String> {\n\n Country findByCode(String code);\n}",
"public interface CarsRepository extends JpaRepository<Car, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface WaPersonalAddressRepository extends JpaRepository<WaPersonalAddress, Long> {\n}",
"@Repository\npublic interface UserRepository extends JpaRepository<User,Long>{\n public User findByAccountId(String accountId);\n}",
"@Repository\npublic interface PersonRepository extends JpaRepository<Person, Long> {\n}",
"Collection<? extends GrantedAuthority> getAuthorities();",
"public interface PublisherRepository extends CrudRepository <Publisher, Long> {\n\n}",
"public interface AclSidRepository extends CrudRepository<AclSid, Long> {\n AclSid save(AclSid aclSid);\n}",
"public interface CategoryRepository extends CrudRepository<Category, Integer> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}",
"@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n}",
"@Repository\r\npublic interface RoleRepository extends JpaRepository<Role, Long> {\r\n // Query per ottenere un ruolo conoscendone il nome.\r\n Optional<Role> findByName(RoleName roleName);\r\n}",
"public interface EmployeeRepository extends ArangoRepository<Employee, String> {}",
"@Repository\npublic interface CategoryRepository extends CrudRepository<Category, Long> {\n\n Category findByName(String name);\n}",
"@RequestMapping(value = \"/authority\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<String>> getAll() throws URISyntaxException {\n\t\tlog.debug(\"REST request to get all authority\");\n\t\treturn new ResponseEntity<>(authorityRepository.findAll().stream().map(Authority::getName).collect(Collectors.toList()), HttpStatus.OK);\n\t}"
]
| [
"0.79359925",
"0.7923745",
"0.7796128",
"0.7532417",
"0.72032243",
"0.7125369",
"0.6667799",
"0.6586023",
"0.6586023",
"0.6569341",
"0.6541673",
"0.6367956",
"0.6258347",
"0.61350906",
"0.6083212",
"0.60583526",
"0.6017775",
"0.5965169",
"0.59432715",
"0.5903021",
"0.5886393",
"0.58618623",
"0.5856305",
"0.58537376",
"0.58521014",
"0.5847342",
"0.5837523",
"0.5833509",
"0.58133304",
"0.5796103",
"0.5790701",
"0.5782742",
"0.5762357",
"0.5755272",
"0.5754375",
"0.5753733",
"0.5750076",
"0.57407343",
"0.57005084",
"0.56953883",
"0.5695221",
"0.56893235",
"0.5678578",
"0.5674771",
"0.56505257",
"0.56363034",
"0.563386",
"0.56303424",
"0.5627794",
"0.5623484",
"0.56212753",
"0.5599154",
"0.55953634",
"0.5595233",
"0.5594761",
"0.5593776",
"0.558335",
"0.5583256",
"0.55816215",
"0.55760664",
"0.55757785",
"0.5570348",
"0.5567391",
"0.5560445",
"0.5551948",
"0.5551604",
"0.55353224",
"0.5534502",
"0.55321765",
"0.55306673",
"0.5528205",
"0.5525043",
"0.55179435",
"0.55178374",
"0.5516085",
"0.55150896",
"0.55142844",
"0.5504863",
"0.5502769",
"0.5500603",
"0.5497418",
"0.54946685",
"0.5493068",
"0.5485368",
"0.5485258",
"0.5479562",
"0.547911",
"0.5473211",
"0.54595584",
"0.54516286",
"0.5447198",
"0.54461026",
"0.54419106"
]
| 0.7831635 | 9 |
Returns a string containing the tokens joined by delimiters. | public static String join(CharSequence delimiter, Object[] tokens) {
StringBuilder sb = new StringBuilder();
boolean firstTime = true;
for (Object token : tokens) {
if (firstTime) {
firstTime = false;
} else {
sb.append(delimiter);
}
sb.append(token);
}
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) {\n final Iterator<?> it = tokens.iterator();\n if (!it.hasNext()) {\n return \"\";\n }\n final StringBuilder sb = new StringBuilder();\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n return sb.toString();\n }",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic static String join(CharSequence delimiter, Iterable tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public static String join(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n Iterator<?> it = tokens.iterator();\n if (it.hasNext()) {\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n }\n return sb.toString();\n }",
"public static String join(String[] tokens, String delimiter) {\n\t\treturn join(tokens, delimiter, (tokens == null ? 0 : tokens.length));\n\t}",
"public String getTokenString() {\n String tokenString = \"\";\n\n for (int i = 0; i < clueTokens.size(); i++) {\n tokenString += clueTokens.get(i).getName();\n if (i < clueTokens.size() - 1)\n tokenString += \", \";\n }\n\n return tokenString;\n }",
"public static String join(String[] tokens, String delimiter, int limit) {\n\t\tif (tokens == null || tokens.length == 0 || limit <= 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(tokens[0]);\n\t\tlimit = Math.min(limit, tokens.length);\n\t\tfor (int i = 1; i < limit; i++) {\n\t\t\tbuffer.append(delimiter);\n\t\t\tbuffer.append(tokens[i]);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public String toString() {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < tokens.length; i++) {\n\t\tif (i > 0) {\n\t\t\tbuf.append(\" \");\n\t\t}\t\n\t\tbuf.append(tokens[i]);\n\t}\n\treturn buf.toString();\n}",
"@Override\r\n public String toString() {\r\n String s = new String();\r\n for (String t : tokenList)\r\n s = s + \"~\" + t;\r\n return s;\r\n }",
"public static String getDelimiters(String numbers) {\n\t\tString delimiters = \"\";\n\t\tMatcher m = Pattern.compile(\"\\\\[([^]]*)\\\\]\").matcher(numbers);\n List<String> allDelimiters = new ArrayList<>();\n while (m.find()) {\n \tallDelimiters.add(m.group().replace(\"[\",\"\").replace(\"]\",\"\"));\n }\n \n for(String d : allDelimiters) {\n \tdelimiters += (delimiters.length() > 0 ? \"|\" : \"\") + d;\n }\n \n return delimiters;\n\t}",
"public String nextTo(String delimiters) {\n char c;\n StringBuilder sb = new StringBuilder();\n for(;;) {\n c = this.next();\n if(delimiters.indexOf(c) >= 0 || c == 0 || c == '\\r' || c == '\\n') {\n if(c != 0) {\n this.back();\n }\n return sb.toString().trim();\n }\n sb.append(c);\n }\n }",
"public String nextToken()\n\t{\n\t\tif (current >\tmax) return\t\"\";\n\t\t\n\t\tcurrentToken++;\n\t\t\n\t\tif (current == max) return str.substring(current,++current);\n\n\t\tint nextDel=this.str.indexOf(this.firstDelimiters, current);\n\t\t\n\t\tString returnString;\n\t\t\n\t\tif (nextDel < 0)\n\t\t{\n\t\t\treturnString=this.str.substring(current, this.str.length());\n\t\t\tcurrent=max+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnString=this.str.substring(current, nextDel);\n\t\t\tcurrent=nextDel+1;\n\t\t}\n\t\treturn returnString;\n\t}",
"public String toString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\"Tokens:\\n\");\r\n\t\tfor (int i = 0; i < tokens.size(); i++) {\r\n\t\t\tsb.append(tokens.get(i)).append('\\n');\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString + e + delimiter;\r\n\t\t}\r\n\t\treturn stackString.substring(0, stackString.length()-1);\r\n\t}",
"public static String join(List<String> s, String delimiter) {\n if (s.isEmpty()) return \"\";\n Iterator<String> iter = s.iterator();\n StringBuffer buffer = new StringBuffer(iter.next());\n while (iter.hasNext())\n buffer.append(delimiter).append(iter.next());\n return buffer.toString();\n }",
"private static String extractCustomMultipleDelimiters(String delimiter) {\n\t\tdelimiter = delimiter.substring(1, delimiter.length() - 1);\n\t\tdelimiter = delimiter.replace(\"][\", \"|\");\n\t\treturn delimiter;\n\t}",
"private static String[] tokenize(String str, String delim, boolean returnTokens) {\n StringTokenizer tokenizer = new StringTokenizer(str, delim, returnTokens);\n String[] tokens = new String[tokenizer.countTokens()];\n int i = 0;\n while (tokenizer.hasMoreTokens()) {\n tokens[i] = tokenizer.nextToken();\n i++;\n }\n return tokens;\n }",
"public static String getAsString(List<String> words, String delimiter) {\n /*StringBuilder result = new StringBuilder();\n for(int i = 0; i < words.size() - 1; i++) {\n result.append(words.get(i)).append(delimiter);\n }\n result.append(words.get(words.size() - 1));\n return result.toString();*/\n return ListArrayUtil.listToString(words, delimiter, \"\", \"\");\n }",
"String getDelimiter();",
"private static String listOfTokensToString(List<Token> tokenList) {\n\n StringBuilder stringBuilder = new StringBuilder();\n for (Token token : tokenList) {\n stringBuilder.append(String.format(\"%s\", token.getPattern()));\n }\n return stringBuilder.toString().trim();\n }",
"List<String> getTokens();",
"private static <T> String join(final Collection<T> s, final String delimiter) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tIterator<T> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuilder.append(iter.next());\n\t\t\tif (!iter.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"public String toString (Token T);",
"public static String stringJoin(CharSequence delimiter, CharSequence... args) {\n StringBuilder builder = new StringBuilder();\n boolean first = true;\n for (CharSequence cs : args) {\n if (first) {\n first = false;\n } else {\n builder.append(delimiter);\n }\n builder.append(cs);\n }\n return builder.toString();\n }",
"public static String join(char delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"String concat_ws(String delimiter, String... text);",
"public void printTokens() {\n for (int i = 0; i < tokens.size(); i++) {\n System.out.print(tokens.get(i).getValue());\n if (i + 1 < tokens.size()) {\n System.out.print(\", \");\n }\n }\n System.out.println();\n }",
"public static String packDelim(String in) {\n if (in.contains(DELIM))\n return in;\n return DELIM + in + DELIM;\n }",
"public String join() {\n\t\t// A stringbuilder is an efficient way to create a new string in Java, since += makes copies.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (current != start) {\n\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append(current.value);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }",
"private String[] getDelimiters(String numbers) {\n String firstLine = numbers.lines().findFirst().orElse(\"\");\n\n if (firstLine.startsWith(\"//\")) {\n StringBuilder delimiter = new StringBuilder();\n\n List<String> delimiters = new ArrayList<>();\n\n for (int i = 2; i < firstLine.length(); i++) {\n if (firstLine.charAt(i) == ']') {\n delimiters.add(delimiter.toString());\n delimiter = new StringBuilder();\n } else if (firstLine.charAt(i) != '[') {\n delimiter.append(firstLine.charAt(i));\n }\n }\n return delimiters.stream().sorted((s, t1) -> t1.length() - s.length())\n .toArray(String[]::new);\n }\n\n return new String[0];\n }",
"public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }",
"@Override\n\tpublic String toString(String delimiter) {\n\t\t//Invert the stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size() - 1; i++) {\n\t\t\treturnString += iteratorNode.data.toString() + delimiter;\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Add the bottom Node's data to the returnString (prevents extra terminating delimiter)\n\t\treturnString += iteratorNode.data.toString();\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}",
"public static String join(String delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"String getTokenString();",
"private String formatExpected() {\n String result = \"tokens \";\n if (tokens.length == 1) {\n return \"token \" + tokens[0];\n } else if (tokens.length == 2) {\n return result + tokens[0] + \" and \" + tokens[1];\n }\n\n for (int i = 0; i < tokens.length - 1; i++) {\n result = result.concat(tokens[i] + \", \");\n }\n\n return result + \"and \" + tokens[tokens.length - 1];\n }",
"@Override\n public String toString() {\n return token.toString();\n }",
"public String wordListToSimpleString(List<Word> words) {\n StringBuilder stringBuilder = new StringBuilder();\n for (Word w : words) {\n //do not include things that the tokenizer eats anyway\n if (!tokenisationDelimiters.contains(w.getWord()) && !tokenisationDelimitersPOSTags.contains(w.getPosTag())) {\n stringBuilder.append(w.getWord().replaceAll(\" \", \"_\").replaceAll(tokenisationDelimitersRegex, \"\"));\n stringBuilder.append(\"_\");\n stringBuilder.append(w.getPosTag());\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n }",
"private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }",
"java.lang.String getPunctuationToAppend();",
"public static String join(String delimiter, String... elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"private static String join(String prefix, String delimiter, Iterable<?> items) {\n if (items == null) return (\"\");\n if (prefix == null) prefix = \"\";\n\n StringBuilder sb = new StringBuilder();\n int i = 0;\n for (Object x : items) {\n if (!prefix.isEmpty()) sb.append(prefix);\n sb.append(x != null ? x.toString() : x).append(delimiter);\n i++;\n }\n if (i == 0) return \"\";\n sb.delete(sb.length() - delimiter.length(), sb.length());\n\n return sb.toString();\n }",
"String convertTagsToWhitespaceSeparated(List<T> tags);",
"public static String serialize( List<String> selectedValues, String delimiter )\n {\n return selectedValues == null ? \"\" : TextUtils.join( delimiter, selectedValues );\n }",
"public void setDelimiters(String delimiters) {\n\t\tthis.delimiters = delimiters;\n\t}",
"public TokenString(Tokenizer t) {\n\tVector v = new Vector();\n\ttry {\n\t\twhile (true) {\n\t\t\tToken tok = t.nextToken();\n\t\t\tif (tok.ttype() == Token.TT_EOF) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tv.addElement(tok);\n\t\t};\n\t} catch (IOException e) {\n\t\tthrow new InternalError(\n\t\t\t\"Problem tokenizing string: \" + e);\n\t}\n\ttokens = new Token[v.size()];\n\tv.copyInto(tokens);\n}",
"public static String join(Collection<?> s, String delimiter) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tIterator<?> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuffer.append(iter.next());\n\t\t\tif (iter.hasNext())\n\t\t\t\tbuffer.append(delimiter);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"String[] getLegalLineDelimiters();",
"public String stringJoin(Collection<? extends CharSequence> strings, CharSequence delimiter) {\n return EasonString.join(strings, delimiter);\n }",
"public static final String join(final String delimiter, final List<?> value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tIterator<?> it = value.iterator();\n\t\tif (!it.hasNext()) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (;;) {\n\t\t\tObject val = it.next();\n\t\t\tbuilder.append(val == null ? EMPTY_STRING : val.toString());\n\t\t\tif (!it.hasNext())\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\t}",
"public static CharSequence join(char delim, CharSequence... parts) {\n AppendableCharSequence seq = new AppendableCharSequence();\n for (int i = 0; i < parts.length; i++) {\n seq.append(parts[i]);\n if (i != parts.length - 1) {\n seq.append(delim);\n }\n }\n return seq;\n }",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"public String getRest(StringTokenizer t) {\n String ot = \"\";\n while (t.hasMoreTokens()) {\n ot = ot + \" \" + t.nextToken();\n }\n return ot;\n }",
"public static String join(String delimiter, Collection<String> elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"private static char delimiterEquivalent(char delimiter)\r\n {\r\n char result = ' ';\r\n switch(delimiter)\r\n {\r\n case '}':\r\n result = '{';\r\n break;\r\n\r\n case ')':\r\n result = '(';\r\n break;\r\n \r\n case ']':\r\n result = '[';\r\n break;\r\n }\r\n return result;\r\n }",
"public static String join(char delim, String... parts) {\n return join(delim, Arrays.asList(parts));\n }",
"protected ArrayList<String> tokenize(String text)\r\n\t{\r\n\t\ttext = text.replaceAll(\"\\\\p{Punct}\", \"\");\r\n\t\tArrayList<String> tokens = new ArrayList<>();\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(text);\r\n\r\n\t\t// P2\r\n\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\ttokens.add(tokenizer.nextToken());\r\n\t\t}\r\n\t\treturn tokens;\r\n\t}",
"public static String codeString(String[] sData, char delimiter) {\r\n String result = \"\";\r\n for (int i = 0; i < sData.length; i++) {\r\n if (i < sData.length - 1) {\r\n result += sData[i] + delimiter;\r\n } else {\r\n result += sData[i];\r\n }\r\n }\r\n return result;\r\n }",
"@Override\n public void pushback() {\n if (tokenizer != null) {\n // add 1 to count: when looping through the new tokenizer, we want there to be 1 more token remaining than there is currently.\n int tokensRemaining = tokenizer.countTokens() + 1;\n tokenizer = new StringTokenizer(stringToTokenize, delimiter, includeDelimiterTokens);\n int totalNumberOfTokens = tokenizer.countTokens();\n for (int i = totalNumberOfTokens; i > tokensRemaining; i--) {\n tokenizer.nextToken();\n }\n }\n }",
"protected String getOrConcatenatorSplitter() {\n\t\treturn \"\\\\\" + getOrConcatenator();\n\t}",
"public void tokenize(String input, List<TokenInfo> tokens);",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString queueList = \"\", prefix = \"\";\r\n\t\tArrayList<T> dataCopy = new ArrayList<T>();\r\n\t\tdataCopy = data;\r\n\r\n\t\tfor(T e: dataCopy) {\r\n\t\t\tqueueList += (prefix+e);\r\n\t\t\tprefix = delimiter;\r\n\t\t}\r\n\t\treturn queueList;\r\n\t}",
"private static Stream<String> getTokensFromRawText(String rawText) {\n return Stream.of(rawText.split(\"\\\\s\"));\n }",
"private static String getNextUnescapedToken(StringBuilder escapedTokens) {\n\t\t\tfinal StringBuilder unescapedToken = new StringBuilder();\n\t\t\tint endIndex;\n\t\t\tfor (endIndex = 0; endIndex < escapedTokens.length(); endIndex++) {\n\t\t\t\tif (escapedTokens.charAt(endIndex) == SERIALIZATION_SEPARATOR_CHAR) {\n\t\t\t\t\tendIndex++;\n\t\t\t\t\tif ((endIndex == escapedTokens.length()) || (escapedTokens.charAt(endIndex) != SERIALIZATION_SEPARATOR_CHAR)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tunescapedToken.append(escapedTokens.charAt(endIndex));\n\t\t\t}\n\t\t\tescapedTokens.delete(0, endIndex);\n\t\t\treturn unescapedToken.toString();\n\t\t}",
"public static String toString(Deque<?> deque, String sep) {\n\t\treturn deque.stream().map(o -> o.toString()).collect(Collectors.joining(sep));\n\t}",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"public static List<String> tokenize(String value, String seperator) {\n\n List<String> result = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(value, seperator);\n while(tokenizer.hasMoreTokens()) {\n result.add(tokenizer.nextToken());\n }\n return result;\n }",
"public static <T> String joinArrayItems(T[] array, String delimiter)\n\t{\n\t\tif (array.length == 0)\n\t\t\treturn \"\";\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\tfor (T item : array)\n\t\t{\n\t\t\tbuilder.append(item);\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\t\n\t\tString result = builder.toString();\n\t\t\n\t\treturn \n\t\t\tresult.substring(0, result.length() - delimiter.length());\t\n\t}",
"public String getStringToken()\n\t{\n\t\tgetToken();\n\t\treturn token;\n\t}",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }",
"private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens = expression.split(\r\n\t\t\t\t\"((?<=\\\\+)|(?=\\\\+))|((?<=\\\\-)|(?=\\\\-))|((?<=\\\\*)|(?=\\\\*))|((?<=\\\\/)|(?=\\\\/))|((?<=\\\\()|(?=\\\\())|((?<=\\\\))|(?=\\\\)))\");\r\n\r\n\t\t// not all minus sign is an operator. It can be the signal of a negative number.\r\n\t\t// The following loop will \"merge\" the minus sign with the next number when it\r\n\t\t// is only a signal\r\n\t\tList<String> listTokens = new ArrayList<String>(Arrays.asList(arrayTokens));\r\n\t\tfor (int i = 0; i < listTokens.size() - 1; i++) {\r\n\t\t\tif (listTokens.get(i).equals(\"-\")) {\r\n\t\t\t\tif (i == 0 || listTokens.get(i - 1).equals(\"(\")) {\r\n\t\t\t\t\tlistTokens.set(i + 1, \"-\" + listTokens.get(i + 1));\r\n\t\t\t\t\tlistTokens.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listTokens;\r\n\t}",
"public String getToken(String line){ \n String[] tokensArr = splitTokens(line, \" &,+.'`\");\n ArrayList<String> tokens = new ArrayList<String>(Arrays.asList(tokensArr));\n \n // filter tokens\n tokens = filterTokens(tokens);\n String token = tokens.get(r.nextInt(tokens.size()));\n return token;\n }",
"public static String separate(String separator, String... blocks) {\n requireNonNullElements(blocks);\n return Stream.of(blocks)\n .collect(joining(separator));\n }",
"public static ArrayList<String> getListOfTokens(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tokenSeparatedStr, String delimiter)\n\t{\n\t\tArrayList<String> listOfTokens = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(tokenSeparatedStr))\n\t\t{\n\t\t\tlistOfTokens.add(tokenSeparatedStr);\n\t\t\treturn listOfTokens;\n\t\t}\n\n\t\t/* Validate and assign a default Token Separator */\n\t\tif(StringUtil.isNull(delimiter))\n\t\t{\n\t\t\tdelimiter = TOKEN_SEPARATOR_COMMA;\n\t\t}\n\n\t\tStringTokenizer st = new StringTokenizer(tokenSeparatedStr, delimiter);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tlistOfTokens.add(st.nextToken().trim());\n\t\t}\n\n\t\treturn listOfTokens;\n\t}",
"default String separate(final String... args) {\n final List<String> argList = new ArrayList<>();\n for (final String arg : args) {\n if (!arg.isEmpty()) {\n argList.add(arg);\n }\n }\n return String.join(\" \", argList);\n }",
"public static final String join(final String delimiter,\n\t\t\tfinal Object... value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tif (value.length == 0) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < value.length; ++i) {\n\t\t\tbuilder.append((value[i] == null) ? EMPTY_STRING : value[i]\n\t\t\t\t\t.toString());\n\t\t\tif (i == value.length - 1)\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"String getSeparator();",
"public static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<>();\n\n String token = \"\";\n TokenizeState state = TokenizeState.DEFAULT;\n\n // Many tokens are a single character, like operators and ().\n String charTokens = \"\\n=+-*/<>(),\";\n TokenType[] tokenTypes = {LINE, EQUALS,\n OPERATOR, OPERATOR, OPERATOR,\n OPERATOR, OPERATOR, OPERATOR,\n LEFT_PAREN, RIGHT_PAREN,COMMA\n };\n\n // Scan through the code one character at a time, building up the list\n // of tokens.\n for (int i = 0; i < source.length(); i++) {\n char c = source.charAt(i);\n switch (state) {\n case DEFAULT:\n // Our comment is two -- tokens so we need to check before\n // assuming its a minus sign\n if ( c == '-' && source.charAt(i+1 ) == '-') {\n state = TokenizeState.COMMENT;\n } else if (charTokens.indexOf(c) != -1) {\n tokens.add(new Token(Character.toString(c),\n tokenTypes[charTokens.indexOf(c)]));\n } else if (Character.isLetter(c) || c=='_') { // We support underbars as WORD start.\n token += c;\n state = TokenizeState.WORD;\n } else if (Character.isDigit(c)) {\n token += c;\n state = TokenizeState.NUMBER;\n } else if (c == '\"') {\n state = TokenizeState.STRING;\n } else if (c == '\\'') {\n state = TokenizeState.COMMENT; // TODO Depricated. Delete me.\n }\n break;\n\n case WORD:\n if (Character.isLetterOrDigit(c) || c=='_' ) { // We allow underbars\n token += c;\n } else if (c == ':') {\n tokens.add(new Token(token, TokenType.LABEL));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n tokens.add(new Token(token, TokenType.WORD));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case NUMBER:\n // HACK: Negative numbers and floating points aren't supported.\n // To get a negative number, just do 0 - <your number>.\n // To get a floating point, divide.\n if (Character.isDigit(c)) {\n token += c;\n } else {\n tokens.add(new Token(token, TokenType.NUMBER));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case STRING:\n if (c == '\"') {\n tokens.add(new Token(token, TokenType.STRING));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n token += c;\n }\n break;\n\n case COMMENT:\n if (c == '\\n') {\n state = TokenizeState.DEFAULT;\n }\n break;\n }\n }\n\n // HACK: Silently ignore any in-progress token when we run out of\n // characters. This means that, for example, if a script has a string\n // that's missing the closing \", it will just ditch it.\n return tokens;\n }",
"public abstract char getCustomDelimiter();",
"public String toString() {\n return String.join(\" \", words);\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"public String nextToken(String s, int start)\n {\n TokenBuilder token = new TokenBuilder();\n char[] temp = s.toCharArray();\n int count = start;\n if(Operator.isOperator(temp[start]) || Brackets.isLeftBracket(temp[start]) || Brackets.isRightBracket(temp[start]))\n {\n return temp[start] + \"\";\n }\n while(count < temp.length && isOperand(temp[count] + \"\"))\n {\n token.append(temp[count]);\n count++;\n }\n return token.build();\n }",
"public char getDelimiter()\n {\n return delimiter;\n }",
"public String getTo(){\r\n\t\tString output = \"\";\r\n\t\tfor(int i = 0; i < to.size(); i++){\r\n\t\t\tif(i > 0){\r\n\t\t\t\toutput += \";\";\r\n\t\t\t}\r\n\t\t\toutput += to.get(i);\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public static List<String> tokenizeString(String s) {\r\n\t\t//Create a list of tokens\r\n\t\tList<String> strings = new ArrayList<String>();\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tint beginning = 0;\r\n\t\tString thisChar = \"\";\r\n\t\tString nextChar = \"\";\r\n\t\tString beginTag = \"\";\r\n\t\tString endTag = \"\";\r\n\t\t\r\n\t\tfor (int i=0; i < s.length(); i++) {\r\n\t\t\t//beginning being greater than i means that those characters have already been grabbed as part of another token\r\n\t\t\tif (i < beginning) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets next char\r\n\t\t\tthisChar = String.valueOf(s.charAt(i));\r\n\t\t\tif (i != s.length()-1) {\r\n\t\t\t\tnextChar = String.valueOf(s.charAt(i+1));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnextChar = \" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the four characters after it\r\n\t\t\tif(i+5 == s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+4 < s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i, i+5);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the five characters after it\r\n\t\t\tif(i+6 == s.length()) {\r\n\t\t\t\tendTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+5 < s.length()) {\r\n\t\t\t\tendTag = s.substring(i, i+6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//skips the token if it is a whitespace, but increases the count to keep the positions accurate\r\n\t\t\tif (thisChar.matches(\" \")) {\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of alphabetical letters\r\n\t\t\telse if(thisChar.matches(\"[a-zA-Z]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^a-zA-Z]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of numbers\r\n\t\t\telse if(thisChar.matches(\"[0-9]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^0-9]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding <PER> and <NER> tags\r\n\t\t\telse if (beginTag.equals(\"<PER>\") || beginTag.equals(\"<NER>\")) {\r\n\t\t\t\tstrings.add(beginTag);\r\n\t\t\t\tbeginning = i+5;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding </PER> and </NER> tags\r\n\t\t\telse if (endTag.equals(\"</PER>\") || endTag.equals(\"</NER>\")) {\r\n\t\t\t\tstrings.add(endTag);\r\n\t\t\t\tbeginning = i+6;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens of characters that are not alphabetical or numbers\r\n\t\t\telse if (thisChar.matches(\"\\\\W\")) {\r\n\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn strings;\r\n\t}",
"public TokenString(Token[] tokens) {\n\tthis.tokens = tokens;\n}",
"protected String getTokenString (int token) {\r\n switch (token) {\r\n case START:\r\n return \"START\";\r\n case STRING:\r\n return \"STRING\";\r\n case SQSTRING:\r\n return \"SQSTRING\";\r\n case DQSTRING:\r\n return \"DQSTRING\";\r\n case SINGELQUOTE:\r\n return \"SINGELQUOTE\";\r\n case DOUBLEQUOTE:\r\n return \"DOUBLEQUOTE\";\r\n case LT:\r\n return \"LT\";\r\n case MT:\r\n return \"MT\";\r\n case EQUALS:\r\n return \"EQUALS\";\r\n case COMMENT:\r\n return \"COMMENT\";\r\n case END:\r\n return \"END\";\r\n case UNKNOWN:\r\n return \"UNKNOWN\";\r\n default:\r\n return \"unknown\";\r\n }\r\n }",
"private static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<Token>();\n\n while (!source.equals(\"\")) {\n int pos = 0;\n TokenType t = null;\n if (Character.isWhitespace(source.charAt(0))) {\n while (pos < source.length() && Character.isWhitespace(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.WHITESPACE;\n } else if (Character.isDigit(source.charAt(0))) {\n while (pos < source.length() && Character.isDigit(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.NUMBER;\n } else if (source.charAt(0) == '+') {\n pos = 1;\n t = TokenType.ADD;\n } else if (source.charAt(0) == '-') {\n pos = 1;\n t = TokenType.SUBTRACT;\n } else if (source.charAt(0) == '*') {\n pos = 1;\n t = TokenType.MULTIPLY;\n } else if (source.charAt(0) == '/') {\n pos = 1;\n t = TokenType.DIVIDE;\n } else if (Character.isLetter(source.charAt(0))) {\n while (pos < source.length() && Character.isLetter(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.IDENTIFIER;\n } else {\n System.err.println(String.format(\"Parse error at: %s\", source));\n System.exit(1);\n }\n\n tokens.add(new Token(t, source.substring(0, pos)));\n source = source.substring(pos, source.length());\n }\n\n return tokens;\n }",
"@NotNull\n protected ListToken<SyntaxToken<?>> delimited(@NotNull final char[] del,\n @NotNull final Supplier<SyntaxToken<?>> parser,\n final boolean skipLast) {\n return super.delimited(del, parser, skipLast, true);\n }",
"public String getTokenValue() { return tok; }",
"public static String join(String separator, String... fragments)\n\t{\n\t\tif (fragments.length < 1)\n\t\t{\n\t\t\t// no elements\n\t\t\treturn \"\";\n\t\t}\n\t\telse if (fragments.length < 2)\n\t\t{\n\t\t\t// single element\n\t\t\treturn fragments[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// two or more elements\n\n\t\t\tStringBuilder buff = new StringBuilder(128);\n\t\t\tbuff.append(fragments[0]);\n\t\t\tfor (int i = 1; i < fragments.length; i++)\n\t\t\t{\n\t\t\t\tboolean lhsClosed = fragments[i - 1].endsWith(separator);\n\t\t\t\tboolean rhsClosed = fragments[i].startsWith(separator);\n\t\t\t\tif (lhsClosed && rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i].substring(1));\n\t\t\t\t}\n\t\t\t\telse if (!lhsClosed && !rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(separator).append(fragments[i]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buff.toString();\n\t\t}\n\t}"
]
| [
"0.7133881",
"0.7132544",
"0.6842979",
"0.66349155",
"0.6482836",
"0.64126545",
"0.6231003",
"0.6188539",
"0.61463314",
"0.60716206",
"0.59030604",
"0.5731653",
"0.5722748",
"0.57136714",
"0.5680558",
"0.56608886",
"0.5608188",
"0.5596938",
"0.55420715",
"0.5510877",
"0.5480361",
"0.54521585",
"0.54519403",
"0.5397353",
"0.53113145",
"0.5309465",
"0.5302729",
"0.52419007",
"0.52341014",
"0.52311534",
"0.5226185",
"0.52229613",
"0.5200715",
"0.5196694",
"0.51924986",
"0.51612663",
"0.5143813",
"0.51413274",
"0.50946206",
"0.50781506",
"0.5060271",
"0.505769",
"0.5046046",
"0.5038727",
"0.5032872",
"0.5027916",
"0.5013616",
"0.4993416",
"0.4982439",
"0.4976737",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49619263",
"0.49574074",
"0.49457952",
"0.4944941",
"0.49418056",
"0.49311215",
"0.4930056",
"0.4924947",
"0.4924343",
"0.49135977",
"0.49120545",
"0.48993552",
"0.4889486",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48780978",
"0.48776478",
"0.4876906",
"0.48730555",
"0.4870429",
"0.48664165",
"0.4854572",
"0.4834274",
"0.48328826",
"0.4829109",
"0.48278087",
"0.48146346",
"0.48145336",
"0.4796987",
"0.4791482",
"0.47784397",
"0.47771472",
"0.4767426",
"0.4752806",
"0.47485352",
"0.47411084",
"0.47350204",
"0.47330996",
"0.47321355",
"0.472538",
"0.47248685"
]
| 0.71686286 | 0 |
Returns a string containing the tokens joined by delimiters. | @SuppressWarnings("rawtypes")
public static String join(CharSequence delimiter, Iterable tokens) {
StringBuilder sb = new StringBuilder();
boolean firstTime = true;
for (Object token : tokens) {
if (firstTime) {
firstTime = false;
} else {
sb.append(delimiter);
}
sb.append(token);
}
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(CharSequence delimiter, Object[] tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) {\n final Iterator<?> it = tokens.iterator();\n if (!it.hasNext()) {\n return \"\";\n }\n final StringBuilder sb = new StringBuilder();\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n return sb.toString();\n }",
"public static String join(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n Iterator<?> it = tokens.iterator();\n if (it.hasNext()) {\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n }\n return sb.toString();\n }",
"public static String join(String[] tokens, String delimiter) {\n\t\treturn join(tokens, delimiter, (tokens == null ? 0 : tokens.length));\n\t}",
"public String getTokenString() {\n String tokenString = \"\";\n\n for (int i = 0; i < clueTokens.size(); i++) {\n tokenString += clueTokens.get(i).getName();\n if (i < clueTokens.size() - 1)\n tokenString += \", \";\n }\n\n return tokenString;\n }",
"public static String join(String[] tokens, String delimiter, int limit) {\n\t\tif (tokens == null || tokens.length == 0 || limit <= 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(tokens[0]);\n\t\tlimit = Math.min(limit, tokens.length);\n\t\tfor (int i = 1; i < limit; i++) {\n\t\t\tbuffer.append(delimiter);\n\t\t\tbuffer.append(tokens[i]);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public String toString() {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < tokens.length; i++) {\n\t\tif (i > 0) {\n\t\t\tbuf.append(\" \");\n\t\t}\t\n\t\tbuf.append(tokens[i]);\n\t}\n\treturn buf.toString();\n}",
"@Override\r\n public String toString() {\r\n String s = new String();\r\n for (String t : tokenList)\r\n s = s + \"~\" + t;\r\n return s;\r\n }",
"public static String getDelimiters(String numbers) {\n\t\tString delimiters = \"\";\n\t\tMatcher m = Pattern.compile(\"\\\\[([^]]*)\\\\]\").matcher(numbers);\n List<String> allDelimiters = new ArrayList<>();\n while (m.find()) {\n \tallDelimiters.add(m.group().replace(\"[\",\"\").replace(\"]\",\"\"));\n }\n \n for(String d : allDelimiters) {\n \tdelimiters += (delimiters.length() > 0 ? \"|\" : \"\") + d;\n }\n \n return delimiters;\n\t}",
"public String nextTo(String delimiters) {\n char c;\n StringBuilder sb = new StringBuilder();\n for(;;) {\n c = this.next();\n if(delimiters.indexOf(c) >= 0 || c == 0 || c == '\\r' || c == '\\n') {\n if(c != 0) {\n this.back();\n }\n return sb.toString().trim();\n }\n sb.append(c);\n }\n }",
"public String nextToken()\n\t{\n\t\tif (current >\tmax) return\t\"\";\n\t\t\n\t\tcurrentToken++;\n\t\t\n\t\tif (current == max) return str.substring(current,++current);\n\n\t\tint nextDel=this.str.indexOf(this.firstDelimiters, current);\n\t\t\n\t\tString returnString;\n\t\t\n\t\tif (nextDel < 0)\n\t\t{\n\t\t\treturnString=this.str.substring(current, this.str.length());\n\t\t\tcurrent=max+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnString=this.str.substring(current, nextDel);\n\t\t\tcurrent=nextDel+1;\n\t\t}\n\t\treturn returnString;\n\t}",
"public String toString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\"Tokens:\\n\");\r\n\t\tfor (int i = 0; i < tokens.size(); i++) {\r\n\t\t\tsb.append(tokens.get(i)).append('\\n');\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString + e + delimiter;\r\n\t\t}\r\n\t\treturn stackString.substring(0, stackString.length()-1);\r\n\t}",
"public static String join(List<String> s, String delimiter) {\n if (s.isEmpty()) return \"\";\n Iterator<String> iter = s.iterator();\n StringBuffer buffer = new StringBuffer(iter.next());\n while (iter.hasNext())\n buffer.append(delimiter).append(iter.next());\n return buffer.toString();\n }",
"private static String extractCustomMultipleDelimiters(String delimiter) {\n\t\tdelimiter = delimiter.substring(1, delimiter.length() - 1);\n\t\tdelimiter = delimiter.replace(\"][\", \"|\");\n\t\treturn delimiter;\n\t}",
"private static String[] tokenize(String str, String delim, boolean returnTokens) {\n StringTokenizer tokenizer = new StringTokenizer(str, delim, returnTokens);\n String[] tokens = new String[tokenizer.countTokens()];\n int i = 0;\n while (tokenizer.hasMoreTokens()) {\n tokens[i] = tokenizer.nextToken();\n i++;\n }\n return tokens;\n }",
"public static String getAsString(List<String> words, String delimiter) {\n /*StringBuilder result = new StringBuilder();\n for(int i = 0; i < words.size() - 1; i++) {\n result.append(words.get(i)).append(delimiter);\n }\n result.append(words.get(words.size() - 1));\n return result.toString();*/\n return ListArrayUtil.listToString(words, delimiter, \"\", \"\");\n }",
"String getDelimiter();",
"private static String listOfTokensToString(List<Token> tokenList) {\n\n StringBuilder stringBuilder = new StringBuilder();\n for (Token token : tokenList) {\n stringBuilder.append(String.format(\"%s\", token.getPattern()));\n }\n return stringBuilder.toString().trim();\n }",
"List<String> getTokens();",
"private static <T> String join(final Collection<T> s, final String delimiter) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tIterator<T> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuilder.append(iter.next());\n\t\t\tif (!iter.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"public String toString (Token T);",
"public static String stringJoin(CharSequence delimiter, CharSequence... args) {\n StringBuilder builder = new StringBuilder();\n boolean first = true;\n for (CharSequence cs : args) {\n if (first) {\n first = false;\n } else {\n builder.append(delimiter);\n }\n builder.append(cs);\n }\n return builder.toString();\n }",
"public static String join(char delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"String concat_ws(String delimiter, String... text);",
"public void printTokens() {\n for (int i = 0; i < tokens.size(); i++) {\n System.out.print(tokens.get(i).getValue());\n if (i + 1 < tokens.size()) {\n System.out.print(\", \");\n }\n }\n System.out.println();\n }",
"public static String packDelim(String in) {\n if (in.contains(DELIM))\n return in;\n return DELIM + in + DELIM;\n }",
"public String join() {\n\t\t// A stringbuilder is an efficient way to create a new string in Java, since += makes copies.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (current != start) {\n\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append(current.value);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }",
"private String[] getDelimiters(String numbers) {\n String firstLine = numbers.lines().findFirst().orElse(\"\");\n\n if (firstLine.startsWith(\"//\")) {\n StringBuilder delimiter = new StringBuilder();\n\n List<String> delimiters = new ArrayList<>();\n\n for (int i = 2; i < firstLine.length(); i++) {\n if (firstLine.charAt(i) == ']') {\n delimiters.add(delimiter.toString());\n delimiter = new StringBuilder();\n } else if (firstLine.charAt(i) != '[') {\n delimiter.append(firstLine.charAt(i));\n }\n }\n return delimiters.stream().sorted((s, t1) -> t1.length() - s.length())\n .toArray(String[]::new);\n }\n\n return new String[0];\n }",
"public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }",
"@Override\n\tpublic String toString(String delimiter) {\n\t\t//Invert the stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size() - 1; i++) {\n\t\t\treturnString += iteratorNode.data.toString() + delimiter;\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Add the bottom Node's data to the returnString (prevents extra terminating delimiter)\n\t\treturnString += iteratorNode.data.toString();\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}",
"public static String join(String delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"String getTokenString();",
"private String formatExpected() {\n String result = \"tokens \";\n if (tokens.length == 1) {\n return \"token \" + tokens[0];\n } else if (tokens.length == 2) {\n return result + tokens[0] + \" and \" + tokens[1];\n }\n\n for (int i = 0; i < tokens.length - 1; i++) {\n result = result.concat(tokens[i] + \", \");\n }\n\n return result + \"and \" + tokens[tokens.length - 1];\n }",
"@Override\n public String toString() {\n return token.toString();\n }",
"public String wordListToSimpleString(List<Word> words) {\n StringBuilder stringBuilder = new StringBuilder();\n for (Word w : words) {\n //do not include things that the tokenizer eats anyway\n if (!tokenisationDelimiters.contains(w.getWord()) && !tokenisationDelimitersPOSTags.contains(w.getPosTag())) {\n stringBuilder.append(w.getWord().replaceAll(\" \", \"_\").replaceAll(tokenisationDelimitersRegex, \"\"));\n stringBuilder.append(\"_\");\n stringBuilder.append(w.getPosTag());\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n }",
"private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }",
"java.lang.String getPunctuationToAppend();",
"public static String join(String delimiter, String... elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"private static String join(String prefix, String delimiter, Iterable<?> items) {\n if (items == null) return (\"\");\n if (prefix == null) prefix = \"\";\n\n StringBuilder sb = new StringBuilder();\n int i = 0;\n for (Object x : items) {\n if (!prefix.isEmpty()) sb.append(prefix);\n sb.append(x != null ? x.toString() : x).append(delimiter);\n i++;\n }\n if (i == 0) return \"\";\n sb.delete(sb.length() - delimiter.length(), sb.length());\n\n return sb.toString();\n }",
"String convertTagsToWhitespaceSeparated(List<T> tags);",
"public static String serialize( List<String> selectedValues, String delimiter )\n {\n return selectedValues == null ? \"\" : TextUtils.join( delimiter, selectedValues );\n }",
"public void setDelimiters(String delimiters) {\n\t\tthis.delimiters = delimiters;\n\t}",
"public TokenString(Tokenizer t) {\n\tVector v = new Vector();\n\ttry {\n\t\twhile (true) {\n\t\t\tToken tok = t.nextToken();\n\t\t\tif (tok.ttype() == Token.TT_EOF) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tv.addElement(tok);\n\t\t};\n\t} catch (IOException e) {\n\t\tthrow new InternalError(\n\t\t\t\"Problem tokenizing string: \" + e);\n\t}\n\ttokens = new Token[v.size()];\n\tv.copyInto(tokens);\n}",
"public static String join(Collection<?> s, String delimiter) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tIterator<?> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuffer.append(iter.next());\n\t\t\tif (iter.hasNext())\n\t\t\t\tbuffer.append(delimiter);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"String[] getLegalLineDelimiters();",
"public String stringJoin(Collection<? extends CharSequence> strings, CharSequence delimiter) {\n return EasonString.join(strings, delimiter);\n }",
"public static final String join(final String delimiter, final List<?> value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tIterator<?> it = value.iterator();\n\t\tif (!it.hasNext()) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (;;) {\n\t\t\tObject val = it.next();\n\t\t\tbuilder.append(val == null ? EMPTY_STRING : val.toString());\n\t\t\tif (!it.hasNext())\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\t}",
"public static CharSequence join(char delim, CharSequence... parts) {\n AppendableCharSequence seq = new AppendableCharSequence();\n for (int i = 0; i < parts.length; i++) {\n seq.append(parts[i]);\n if (i != parts.length - 1) {\n seq.append(delim);\n }\n }\n return seq;\n }",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"public String getRest(StringTokenizer t) {\n String ot = \"\";\n while (t.hasMoreTokens()) {\n ot = ot + \" \" + t.nextToken();\n }\n return ot;\n }",
"public static String join(String delimiter, Collection<String> elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"private static char delimiterEquivalent(char delimiter)\r\n {\r\n char result = ' ';\r\n switch(delimiter)\r\n {\r\n case '}':\r\n result = '{';\r\n break;\r\n\r\n case ')':\r\n result = '(';\r\n break;\r\n \r\n case ']':\r\n result = '[';\r\n break;\r\n }\r\n return result;\r\n }",
"public static String join(char delim, String... parts) {\n return join(delim, Arrays.asList(parts));\n }",
"protected ArrayList<String> tokenize(String text)\r\n\t{\r\n\t\ttext = text.replaceAll(\"\\\\p{Punct}\", \"\");\r\n\t\tArrayList<String> tokens = new ArrayList<>();\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(text);\r\n\r\n\t\t// P2\r\n\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\ttokens.add(tokenizer.nextToken());\r\n\t\t}\r\n\t\treturn tokens;\r\n\t}",
"public static String codeString(String[] sData, char delimiter) {\r\n String result = \"\";\r\n for (int i = 0; i < sData.length; i++) {\r\n if (i < sData.length - 1) {\r\n result += sData[i] + delimiter;\r\n } else {\r\n result += sData[i];\r\n }\r\n }\r\n return result;\r\n }",
"@Override\n public void pushback() {\n if (tokenizer != null) {\n // add 1 to count: when looping through the new tokenizer, we want there to be 1 more token remaining than there is currently.\n int tokensRemaining = tokenizer.countTokens() + 1;\n tokenizer = new StringTokenizer(stringToTokenize, delimiter, includeDelimiterTokens);\n int totalNumberOfTokens = tokenizer.countTokens();\n for (int i = totalNumberOfTokens; i > tokensRemaining; i--) {\n tokenizer.nextToken();\n }\n }\n }",
"protected String getOrConcatenatorSplitter() {\n\t\treturn \"\\\\\" + getOrConcatenator();\n\t}",
"public void tokenize(String input, List<TokenInfo> tokens);",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString queueList = \"\", prefix = \"\";\r\n\t\tArrayList<T> dataCopy = new ArrayList<T>();\r\n\t\tdataCopy = data;\r\n\r\n\t\tfor(T e: dataCopy) {\r\n\t\t\tqueueList += (prefix+e);\r\n\t\t\tprefix = delimiter;\r\n\t\t}\r\n\t\treturn queueList;\r\n\t}",
"private static Stream<String> getTokensFromRawText(String rawText) {\n return Stream.of(rawText.split(\"\\\\s\"));\n }",
"private static String getNextUnescapedToken(StringBuilder escapedTokens) {\n\t\t\tfinal StringBuilder unescapedToken = new StringBuilder();\n\t\t\tint endIndex;\n\t\t\tfor (endIndex = 0; endIndex < escapedTokens.length(); endIndex++) {\n\t\t\t\tif (escapedTokens.charAt(endIndex) == SERIALIZATION_SEPARATOR_CHAR) {\n\t\t\t\t\tendIndex++;\n\t\t\t\t\tif ((endIndex == escapedTokens.length()) || (escapedTokens.charAt(endIndex) != SERIALIZATION_SEPARATOR_CHAR)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tunescapedToken.append(escapedTokens.charAt(endIndex));\n\t\t\t}\n\t\t\tescapedTokens.delete(0, endIndex);\n\t\t\treturn unescapedToken.toString();\n\t\t}",
"public static String toString(Deque<?> deque, String sep) {\n\t\treturn deque.stream().map(o -> o.toString()).collect(Collectors.joining(sep));\n\t}",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"public static List<String> tokenize(String value, String seperator) {\n\n List<String> result = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(value, seperator);\n while(tokenizer.hasMoreTokens()) {\n result.add(tokenizer.nextToken());\n }\n return result;\n }",
"public static <T> String joinArrayItems(T[] array, String delimiter)\n\t{\n\t\tif (array.length == 0)\n\t\t\treturn \"\";\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\tfor (T item : array)\n\t\t{\n\t\t\tbuilder.append(item);\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\t\n\t\tString result = builder.toString();\n\t\t\n\t\treturn \n\t\t\tresult.substring(0, result.length() - delimiter.length());\t\n\t}",
"public String getStringToken()\n\t{\n\t\tgetToken();\n\t\treturn token;\n\t}",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }",
"private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens = expression.split(\r\n\t\t\t\t\"((?<=\\\\+)|(?=\\\\+))|((?<=\\\\-)|(?=\\\\-))|((?<=\\\\*)|(?=\\\\*))|((?<=\\\\/)|(?=\\\\/))|((?<=\\\\()|(?=\\\\())|((?<=\\\\))|(?=\\\\)))\");\r\n\r\n\t\t// not all minus sign is an operator. It can be the signal of a negative number.\r\n\t\t// The following loop will \"merge\" the minus sign with the next number when it\r\n\t\t// is only a signal\r\n\t\tList<String> listTokens = new ArrayList<String>(Arrays.asList(arrayTokens));\r\n\t\tfor (int i = 0; i < listTokens.size() - 1; i++) {\r\n\t\t\tif (listTokens.get(i).equals(\"-\")) {\r\n\t\t\t\tif (i == 0 || listTokens.get(i - 1).equals(\"(\")) {\r\n\t\t\t\t\tlistTokens.set(i + 1, \"-\" + listTokens.get(i + 1));\r\n\t\t\t\t\tlistTokens.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listTokens;\r\n\t}",
"public String getToken(String line){ \n String[] tokensArr = splitTokens(line, \" &,+.'`\");\n ArrayList<String> tokens = new ArrayList<String>(Arrays.asList(tokensArr));\n \n // filter tokens\n tokens = filterTokens(tokens);\n String token = tokens.get(r.nextInt(tokens.size()));\n return token;\n }",
"public static String separate(String separator, String... blocks) {\n requireNonNullElements(blocks);\n return Stream.of(blocks)\n .collect(joining(separator));\n }",
"public static ArrayList<String> getListOfTokens(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tokenSeparatedStr, String delimiter)\n\t{\n\t\tArrayList<String> listOfTokens = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(tokenSeparatedStr))\n\t\t{\n\t\t\tlistOfTokens.add(tokenSeparatedStr);\n\t\t\treturn listOfTokens;\n\t\t}\n\n\t\t/* Validate and assign a default Token Separator */\n\t\tif(StringUtil.isNull(delimiter))\n\t\t{\n\t\t\tdelimiter = TOKEN_SEPARATOR_COMMA;\n\t\t}\n\n\t\tStringTokenizer st = new StringTokenizer(tokenSeparatedStr, delimiter);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tlistOfTokens.add(st.nextToken().trim());\n\t\t}\n\n\t\treturn listOfTokens;\n\t}",
"default String separate(final String... args) {\n final List<String> argList = new ArrayList<>();\n for (final String arg : args) {\n if (!arg.isEmpty()) {\n argList.add(arg);\n }\n }\n return String.join(\" \", argList);\n }",
"public static final String join(final String delimiter,\n\t\t\tfinal Object... value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tif (value.length == 0) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < value.length; ++i) {\n\t\t\tbuilder.append((value[i] == null) ? EMPTY_STRING : value[i]\n\t\t\t\t\t.toString());\n\t\t\tif (i == value.length - 1)\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"String getSeparator();",
"public static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<>();\n\n String token = \"\";\n TokenizeState state = TokenizeState.DEFAULT;\n\n // Many tokens are a single character, like operators and ().\n String charTokens = \"\\n=+-*/<>(),\";\n TokenType[] tokenTypes = {LINE, EQUALS,\n OPERATOR, OPERATOR, OPERATOR,\n OPERATOR, OPERATOR, OPERATOR,\n LEFT_PAREN, RIGHT_PAREN,COMMA\n };\n\n // Scan through the code one character at a time, building up the list\n // of tokens.\n for (int i = 0; i < source.length(); i++) {\n char c = source.charAt(i);\n switch (state) {\n case DEFAULT:\n // Our comment is two -- tokens so we need to check before\n // assuming its a minus sign\n if ( c == '-' && source.charAt(i+1 ) == '-') {\n state = TokenizeState.COMMENT;\n } else if (charTokens.indexOf(c) != -1) {\n tokens.add(new Token(Character.toString(c),\n tokenTypes[charTokens.indexOf(c)]));\n } else if (Character.isLetter(c) || c=='_') { // We support underbars as WORD start.\n token += c;\n state = TokenizeState.WORD;\n } else if (Character.isDigit(c)) {\n token += c;\n state = TokenizeState.NUMBER;\n } else if (c == '\"') {\n state = TokenizeState.STRING;\n } else if (c == '\\'') {\n state = TokenizeState.COMMENT; // TODO Depricated. Delete me.\n }\n break;\n\n case WORD:\n if (Character.isLetterOrDigit(c) || c=='_' ) { // We allow underbars\n token += c;\n } else if (c == ':') {\n tokens.add(new Token(token, TokenType.LABEL));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n tokens.add(new Token(token, TokenType.WORD));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case NUMBER:\n // HACK: Negative numbers and floating points aren't supported.\n // To get a negative number, just do 0 - <your number>.\n // To get a floating point, divide.\n if (Character.isDigit(c)) {\n token += c;\n } else {\n tokens.add(new Token(token, TokenType.NUMBER));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case STRING:\n if (c == '\"') {\n tokens.add(new Token(token, TokenType.STRING));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n token += c;\n }\n break;\n\n case COMMENT:\n if (c == '\\n') {\n state = TokenizeState.DEFAULT;\n }\n break;\n }\n }\n\n // HACK: Silently ignore any in-progress token when we run out of\n // characters. This means that, for example, if a script has a string\n // that's missing the closing \", it will just ditch it.\n return tokens;\n }",
"public abstract char getCustomDelimiter();",
"public String toString() {\n return String.join(\" \", words);\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"public String nextToken(String s, int start)\n {\n TokenBuilder token = new TokenBuilder();\n char[] temp = s.toCharArray();\n int count = start;\n if(Operator.isOperator(temp[start]) || Brackets.isLeftBracket(temp[start]) || Brackets.isRightBracket(temp[start]))\n {\n return temp[start] + \"\";\n }\n while(count < temp.length && isOperand(temp[count] + \"\"))\n {\n token.append(temp[count]);\n count++;\n }\n return token.build();\n }",
"public char getDelimiter()\n {\n return delimiter;\n }",
"public String getTo(){\r\n\t\tString output = \"\";\r\n\t\tfor(int i = 0; i < to.size(); i++){\r\n\t\t\tif(i > 0){\r\n\t\t\t\toutput += \";\";\r\n\t\t\t}\r\n\t\t\toutput += to.get(i);\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public static List<String> tokenizeString(String s) {\r\n\t\t//Create a list of tokens\r\n\t\tList<String> strings = new ArrayList<String>();\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tint beginning = 0;\r\n\t\tString thisChar = \"\";\r\n\t\tString nextChar = \"\";\r\n\t\tString beginTag = \"\";\r\n\t\tString endTag = \"\";\r\n\t\t\r\n\t\tfor (int i=0; i < s.length(); i++) {\r\n\t\t\t//beginning being greater than i means that those characters have already been grabbed as part of another token\r\n\t\t\tif (i < beginning) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets next char\r\n\t\t\tthisChar = String.valueOf(s.charAt(i));\r\n\t\t\tif (i != s.length()-1) {\r\n\t\t\t\tnextChar = String.valueOf(s.charAt(i+1));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnextChar = \" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the four characters after it\r\n\t\t\tif(i+5 == s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+4 < s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i, i+5);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the five characters after it\r\n\t\t\tif(i+6 == s.length()) {\r\n\t\t\t\tendTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+5 < s.length()) {\r\n\t\t\t\tendTag = s.substring(i, i+6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//skips the token if it is a whitespace, but increases the count to keep the positions accurate\r\n\t\t\tif (thisChar.matches(\" \")) {\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of alphabetical letters\r\n\t\t\telse if(thisChar.matches(\"[a-zA-Z]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^a-zA-Z]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of numbers\r\n\t\t\telse if(thisChar.matches(\"[0-9]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^0-9]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding <PER> and <NER> tags\r\n\t\t\telse if (beginTag.equals(\"<PER>\") || beginTag.equals(\"<NER>\")) {\r\n\t\t\t\tstrings.add(beginTag);\r\n\t\t\t\tbeginning = i+5;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding </PER> and </NER> tags\r\n\t\t\telse if (endTag.equals(\"</PER>\") || endTag.equals(\"</NER>\")) {\r\n\t\t\t\tstrings.add(endTag);\r\n\t\t\t\tbeginning = i+6;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens of characters that are not alphabetical or numbers\r\n\t\t\telse if (thisChar.matches(\"\\\\W\")) {\r\n\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn strings;\r\n\t}",
"public TokenString(Token[] tokens) {\n\tthis.tokens = tokens;\n}",
"protected String getTokenString (int token) {\r\n switch (token) {\r\n case START:\r\n return \"START\";\r\n case STRING:\r\n return \"STRING\";\r\n case SQSTRING:\r\n return \"SQSTRING\";\r\n case DQSTRING:\r\n return \"DQSTRING\";\r\n case SINGELQUOTE:\r\n return \"SINGELQUOTE\";\r\n case DOUBLEQUOTE:\r\n return \"DOUBLEQUOTE\";\r\n case LT:\r\n return \"LT\";\r\n case MT:\r\n return \"MT\";\r\n case EQUALS:\r\n return \"EQUALS\";\r\n case COMMENT:\r\n return \"COMMENT\";\r\n case END:\r\n return \"END\";\r\n case UNKNOWN:\r\n return \"UNKNOWN\";\r\n default:\r\n return \"unknown\";\r\n }\r\n }",
"private static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<Token>();\n\n while (!source.equals(\"\")) {\n int pos = 0;\n TokenType t = null;\n if (Character.isWhitespace(source.charAt(0))) {\n while (pos < source.length() && Character.isWhitespace(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.WHITESPACE;\n } else if (Character.isDigit(source.charAt(0))) {\n while (pos < source.length() && Character.isDigit(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.NUMBER;\n } else if (source.charAt(0) == '+') {\n pos = 1;\n t = TokenType.ADD;\n } else if (source.charAt(0) == '-') {\n pos = 1;\n t = TokenType.SUBTRACT;\n } else if (source.charAt(0) == '*') {\n pos = 1;\n t = TokenType.MULTIPLY;\n } else if (source.charAt(0) == '/') {\n pos = 1;\n t = TokenType.DIVIDE;\n } else if (Character.isLetter(source.charAt(0))) {\n while (pos < source.length() && Character.isLetter(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.IDENTIFIER;\n } else {\n System.err.println(String.format(\"Parse error at: %s\", source));\n System.exit(1);\n }\n\n tokens.add(new Token(t, source.substring(0, pos)));\n source = source.substring(pos, source.length());\n }\n\n return tokens;\n }",
"@NotNull\n protected ListToken<SyntaxToken<?>> delimited(@NotNull final char[] del,\n @NotNull final Supplier<SyntaxToken<?>> parser,\n final boolean skipLast) {\n return super.delimited(del, parser, skipLast, true);\n }",
"public String getTokenValue() { return tok; }",
"public static String join(String separator, String... fragments)\n\t{\n\t\tif (fragments.length < 1)\n\t\t{\n\t\t\t// no elements\n\t\t\treturn \"\";\n\t\t}\n\t\telse if (fragments.length < 2)\n\t\t{\n\t\t\t// single element\n\t\t\treturn fragments[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// two or more elements\n\n\t\t\tStringBuilder buff = new StringBuilder(128);\n\t\t\tbuff.append(fragments[0]);\n\t\t\tfor (int i = 1; i < fragments.length; i++)\n\t\t\t{\n\t\t\t\tboolean lhsClosed = fragments[i - 1].endsWith(separator);\n\t\t\t\tboolean rhsClosed = fragments[i].startsWith(separator);\n\t\t\t\tif (lhsClosed && rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i].substring(1));\n\t\t\t\t}\n\t\t\t\telse if (!lhsClosed && !rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(separator).append(fragments[i]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buff.toString();\n\t\t}\n\t}"
]
| [
"0.71686286",
"0.7133881",
"0.6842979",
"0.66349155",
"0.6482836",
"0.64126545",
"0.6231003",
"0.6188539",
"0.61463314",
"0.60716206",
"0.59030604",
"0.5731653",
"0.5722748",
"0.57136714",
"0.5680558",
"0.56608886",
"0.5608188",
"0.5596938",
"0.55420715",
"0.5510877",
"0.5480361",
"0.54521585",
"0.54519403",
"0.5397353",
"0.53113145",
"0.5309465",
"0.5302729",
"0.52419007",
"0.52341014",
"0.52311534",
"0.5226185",
"0.52229613",
"0.5200715",
"0.5196694",
"0.51924986",
"0.51612663",
"0.5143813",
"0.51413274",
"0.50946206",
"0.50781506",
"0.5060271",
"0.505769",
"0.5046046",
"0.5038727",
"0.5032872",
"0.5027916",
"0.5013616",
"0.4993416",
"0.4982439",
"0.4976737",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49710658",
"0.49619263",
"0.49574074",
"0.49457952",
"0.4944941",
"0.49418056",
"0.49311215",
"0.4930056",
"0.4924947",
"0.4924343",
"0.49135977",
"0.49120545",
"0.48993552",
"0.4889486",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48859107",
"0.48780978",
"0.48776478",
"0.4876906",
"0.48730555",
"0.4870429",
"0.48664165",
"0.4854572",
"0.4834274",
"0.48328826",
"0.4829109",
"0.48278087",
"0.48146346",
"0.48145336",
"0.4796987",
"0.4791482",
"0.47784397",
"0.47771472",
"0.4767426",
"0.4752806",
"0.47485352",
"0.47411084",
"0.47350204",
"0.47330996",
"0.47321355",
"0.472538",
"0.47248685"
]
| 0.7132544 | 2 |
Splits a string on a pattern. String.split() returns [''] when the string to be split is empty. This returns []. This does not remove any empty strings from the result. | public static String[] split(String text, Pattern pattern) {
if (text.length() == 0) {
return EMPTY_STRING_ARRAY;
} else {
return pattern.split(text, -1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String[] split(String str) {\n\t\treturn split(str, null, -1);\n\t}",
"public String[] splitBySplitter(String s) {\r\n\t\tString[] returnArray = new String[4];\r\n\t\treturnArray = s.split(\"-\");\r\n\t\treturn returnArray;\r\n\t}",
"public static final List<?> splitRegex(final String string, final String dividerRegex) {\n\t\t\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Arrays.asList(string.split(dividerRegex));\n\t}",
"public static final List<?> splitRegexp(final String string, final String dividerRegex) {\n\t\t\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Arrays.asList(string.split(dividerRegex));\n\t}",
"public static final List<?> split(final String string, final String divider) {\n\t\t\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\tfinal List<String> result = new ArrayList<>();\n\t\tfinal int length = divider.length();\n\t\tif (length == 1) {\n\t\t\tfor (final StringTokenizer st = new StringTokenizer(string, divider); st.hasMoreTokens();) {\n\t\t\t\tresult.add(st.nextToken());\n\t\t\t}\n\t\t} else {\n\t\t\tint start = 0;\n\t\t\tint end = 0;\n\t\t\tfor (;;) {\n\t\t\t\tstart = string.indexOf(divider, end);\n\t\t\t\tif (start == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tresult.add(string.substring(end, start));\n\t\t\t\tend = start + length;\n\t\t\t}\n\t\t\tif (end < string.length()) {\n\t\t\t\tresult.add(string.substring(end));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static String[] split(String toSplit, String delimiter) {\n if (!hasLength(toSplit) || !hasLength(delimiter)) {\n return null;\n }\n int offset = toSplit.indexOf(delimiter);\n if (offset < 0) {\n return null;\n }\n\n String beforeDelimiter = toSplit.substring(0, offset);\n String afterDelimiter = toSplit.substring(offset + delimiter.length());\n return new String[]{beforeDelimiter, afterDelimiter};\n }",
"public static String[] split(String s, char token) {\n\t\tint tokenCount = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\ttokenCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString[] splits = new String[tokenCount+1];\n\t\t\n\t\tString temp = \"\";\n\t\tint tokenItr = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\tsplits[tokenItr] = temp;\n\t\t\t\ttokenItr++;\n\t\t\t\ttemp = \"\";\n\t\t\t} else {\n\t\t\t\ttemp+=s.charAt(i);\n\t\t\t}\n\t\t}\n\t\tsplits[tokenItr] = temp; //For the left over strings in s\n\t\t\n\t\treturn splits;\n\t}",
"public static String[] split(String value) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(\",\");\r\n\t}",
"public static String[] split(String s, String sep)\r\n {\r\n if (s == null)\r\n return new String[0];\r\n \r\n if (s.trim().length() == 0 || sep == null || sep.length() == 0)\r\n return new String[]{s};\r\n \r\n List list = new ArrayList();\r\n int k1 = 0;\r\n int k2;\r\n while ((k2 = s.indexOf(sep, k1)) >= 0)\r\n {\r\n list.add(s.substring(k1, k2));\r\n k1 = k2 + 1;\r\n }\r\n list.add(s.substring(k1));\r\n \r\n return (String[]) list.toArray(new String[list.size()]);\r\n }",
"public StringWrapper[] split(DocText docText, BreakStrategy breakStrategy) {\n final String string = docText.getString();\n final String[] pieces = string.split(pattern);\n\n final List<StringWrapper> result = new ArrayList<StringWrapper>();\n\n for (int i = 0; i < pieces.length; ++i) {\n if (!\"\".equals(pieces[i])) {\n result.add(new StringWrapper(pieces[i], breakStrategy));\n }\n }\n\n return result.toArray(new StringWrapper[result.size()]);\n }",
"public static String[] splitFirst(String source, String splitter)\n\t {\n\t Vector<String> rv = new Vector<String>();\n\t int last = 0;\n\t int next = 0;\n\n\t // find first splitter in source\n\t next = source.indexOf(splitter, last);\n\t if (next != -1)\n\t {\n\t // isolate from last thru before next\n\t rv.add(source.substring(last, next));\n\t last = next + splitter.length();\n\t }\n\n\t if (last < source.length())\n\t {\n\t rv.add(source.substring(last, source.length()));\n\t }\n\n\t // convert to array\n\t return (String[]) rv.toArray(new String[rv.size()]);\n\t }",
"public static String[] split(String s)\n\t{\n\t\tArrayList <String> words = new ArrayList<> ();\n\t\t\n\t\tStringBuilder word = new StringBuilder();\n\t\tfor(int i=0; i < s.length(); i++ )\n\t\t{\n\t\t\tif(s.charAt(i) == ' ')\n\t\t\t{\n\t\t\t\twords.add(word.toString());\n\t\t\t\tword = new StringBuilder();\n\t\t\t}\n\t\t\telse\n\t\t\t\tword.append(s.charAt(i));\n\t\t}\n\t\twords.add(word.toString());\n\t\treturn words.toArray(new String[words.size()]);\n\t}",
"private static ArrayList<String> split(String str) {\n String[] splits = str.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }",
"public static String[] strParts(String string, String delim) {\r\n //StringTokenizer st = new StringTokenizer(string);\r\n String[] strings = string.split(delim);\r\n return removeSpaces(strings);\r\n }",
"public static Vector<String> splitString(String str, String delimiter) {\n Vector<String> strVec = new Vector<>();\n int p = 0, dp;\n do {\n dp = str.indexOf(delimiter, p);\n if (dp == -1) dp = str.length();\n if (dp == p) {\n strVec.add(\"\");\n p += delimiter.length();\n } else {\n strVec.add(str.substring(p, dp));\n p = dp + 1;\n }\n } while(p < str.length());\n return strVec;\n }",
"private static String[] splitPartName(String partName) {\n if (partName == null) {\n partName = \"\";\n }\n\n int last_match = 0;\n LinkedList<String> splitted = new LinkedList<String>();\n Matcher m = partNamePattern.matcher(partName);\n while (m.find()) {\n if (!partName.substring(last_match, m.start()).trim().isEmpty()) {\n splitted.add(partName.substring(last_match, m.start()));\n }\n if (!m.group().trim().isEmpty()) {\n splitted.add(m.group());\n }\n last_match = m.end();\n }\n if (!partName.substring(last_match).trim().isEmpty()) {\n splitted.add(partName.substring(last_match));\n }\n return splitted.toArray(new String[splitted.size()]);\n }",
"static String[] SplitText(String input, String regex) {\n ArrayList<String> res = new ArrayList<String>();\n Pattern p = Pattern.compile(regex);\n Matcher m = p.matcher(input);\n int pos = 0;\n while (m.find()) {\n res.add(input.substring(pos, m.start()));\n res.add(input.substring(m.start()+1, m.end()-1));\n pos = m.end();\n }\n if(pos < input.length()) res.add(input.substring(pos));\n return res.toArray(new String[res.size()]);\n }",
"public static String[] splitString(char delim, String string) {\n\t Vector<String> res = new Vector<String>();\n\t int len = string.length();\n\t int start = 0;\n\t for (int i=0; i<len; i++) {\n\t\t if (string.charAt(i) == delim) {\n\t\t\t res.add(string.substring(start, i));\n\t\t\t start = i+1;\n\t\t }\n\t }\n\t res.add(start==len ? \"\" : string.substring(start));\n\t return res.toArray(new String[res.size()]);\n }",
"public static String[] strParts(String string) {\r\n //StringTokenizer st = new StringTokenizer(string);\r\n String[] strings = string.split(\"\\\\s+\");\r\n return removeSpaces(strings);\r\n }",
"public static String[] splitString1(String haystack, String needle) {\n if (haystack.equals(\"\") || needle.equals(\"\") // non empty strings are\n // not accepted\n || haystack.indexOf(needle) == -1) { // haystack must have at\n // least one needle\n throw new IllegalArgumentException();\n }\n\n // Do actual splitting using String.indexOf() method and do-while loop \n String newHaystack = haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n\n do {\n resultList.add(newHaystack.substring(0, index));\n newHaystack = newHaystack.substring(index + needle.length());\n index = newHaystack.indexOf(needle);\n\n } while (index != -1);\n\n resultList.add(newHaystack); // add remaining haystack \n\n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for (int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n }\n return res;\n\n }",
"public static String[] split(String toSplit, char spliter){\n String[] endStringArray = new String[4];\n StringBuilder st = new StringBuilder();\n int i = 0;\n for (int j = 0; j < toSplit.length(); j++){\n if (toSplit.charAt(j) != spliter){\n st.append(toSplit.charAt(j));\n }\n else{\n endStringArray[i] = st.toString();\n st = new StringBuilder();\n i++;\n }\n }\n endStringArray[i] = st.toString();\n int size = 0;\n for (String s : endStringArray){\n if (s != null)\n size++;\n }\n String[] reducedArray = new String[size];\n System.arraycopy(endStringArray, 0, reducedArray, 0, size);\n return reducedArray;\n }",
"public static String[] splitWords(String str){\r\n\t\tArrayList<String> wordsList= new ArrayList<String>();\r\n\t\t\r\n\t\tfor(String s:str.split(\" \")){\r\n\t\t\tif(!s.isEmpty()) wordsList.add(s);\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn wordsList.toArray(new String[wordsList.size()]);\r\n\t}",
"public static String[] splitString4(String haystack, String needle) {\n \n // return array of one empty string element if haystack is empty\n if (haystack.equals(\"\")){\n return new String[] {};\n }\n // for empty needle, just return array of single element = the whole haystack string - still valid\n if (needle.equals(\"\")){\n return new String[] { haystack };\n }\n \n // Do actual splitting using String.indexOf() method\n String newHaystack= haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n \n while (index != -1){ \n if(index > 0) {\n resultList.add(newHaystack.substring(0, index)); \n }\n newHaystack = newHaystack.substring(index + needle.length()); \n index = newHaystack.indexOf(needle); \n if(index == -1 && !newHaystack.equals(\"\")) {\n resultList.add(newHaystack); // add remaining string before exit loop\n }\n }\n \n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for(int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n } \n return res; \n \n }",
"private static ArrayList<String> splitString(String line) {\n String[] splits = line.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }",
"private static String[] splitString(String stringToSplit, String delimiter, boolean takeDelimiter)\n\t{\n\t\tString[] aRet;\n\t\tint iLast;\n\t\tint iFrom;\n\t\tint iFound;\n\t\tint iRecords;\n\t\tint iJump;\n\n\t\t// return Blank Array if stringToSplit == \"\")\n\t\tif (stringToSplit.equals(\"\")) { return new String[0]; }\n\n\t\t// count Field Entries\n\t\tiFrom = 0;\n\t\tiRecords = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tiFound = stringToSplit.indexOf(delimiter, iFrom);\n\t\t\tif (iFound == -1)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tiRecords += (takeDelimiter ? 2 : 1);\n\t\t\tiFrom = iFound + delimiter.length();\n\t\t}\n\t\tiRecords = iRecords + 1;\n\n\t\t// populate aRet[]\n\t\taRet = new String[iRecords];\n\t\tif (iRecords == 1)\n\t\t{\n\t\t\taRet[0] = stringToSplit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tiLast = 0;\n\t\t\tiFrom = 0;\n\t\t\tiFound = 0;\n\t\t\tiJump = 0;\n\t\t\tfor (int i = 0; i < iRecords; i++)\n\t\t\t{\n\t\t\t\tiFound = stringToSplit.indexOf(delimiter, iFrom);\n\t\t\t\tif (takeDelimiter)\n\t\t\t\t{\n\t\t\t\t\tiJump = (iFrom == iFound ? delimiter.length() : 0);\n\t\t\t\t\tiFound += iJump;\n\t\t\t\t}\n\t\t\t\tif (iFound == -1)\n\t\t\t\t{ // at End\n\t\t\t\t\taRet[i] = stringToSplit.substring(iLast + delimiter.length(), stringToSplit.length());\n\t\t\t\t}\n\t\t\t\telse if (iFound == 0)\n\t\t\t\t{ // at Beginning\n\t\t\t\t\taRet[i] = delimiter;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ // somewhere in middle\n\t\t\t\t\taRet[i] = stringToSplit.substring(iFrom, iFound);\n\t\t\t\t}\n\t\t\t\tiLast = iFound - (takeDelimiter ? iJump : 0);\n\t\t\t\tiFrom = iFound + (takeDelimiter ? 0 : delimiter.length());\n\t\t\t}\n\t\t}\n\t\treturn aRet;\n\t}",
"public static String[] splitAt (String toSplit, char splitter) {\n\t\n\t\tint placeHolder = 0; //tracks latest position of new substring\n\t\tint arrayCount = 0; //tracks of position of array entries\n\t\tint numberOfSplitters = 0; /*counts number of splitters so that\n\t\t\t\t\t\t\t\t\t*the length of array will be correct\n\t\t\t\t\t\t\t\t\t*/\n\t\tfor (int x = 0; x < toSplit.length(); x++) {\n\t\t\tif (toSplit.charAt(x) == splitter)\n\t\t\t\tnumberOfSplitters += 1;\n\t\t}\n\t\t/*\n\t\t * creates array to return with the correct number of \n\t\t * elements based on number of splitters plus 1\n\t\t */\n\t\tString[] splitArray = new String[numberOfSplitters + 1];\n\t\tfor (int x = 0; x < toSplit.length(); x++){\n\t\t\tif (toSplit.charAt(x) == splitter) {\n\t\t\t\tsplitArray[arrayCount] = \n\t\t\t\t\t\ttoSplit.substring(placeHolder, x);\n\t\t\t\tplaceHolder = x + 1;\n\t\t\t\tarrayCount += 1;\n\t\t\t}\n\t\t}\n\t //adds substring from last splitter to end of string\n\t\tsplitArray[arrayCount] = \n\t\t\t\ttoSplit.substring(placeHolder);\n\t\treturn splitArray;\n\t}",
"private String[] split(String string){\n\t\tString[] split = string.split( \" \" );\n\t\t\n\t\tfor(int i = 0; i < split.length; i++){\n\t\t\tString index = split[i];\n\t\t\tindex = index.trim();\n\t\t}\n\t\t\n\t\treturn split;\n\t}",
"public static String[] split(final String s, final char c)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn new String[0];\n\t\t}\n\t\tfinal List<String> strings = new ArrayList<String>();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}",
"public static String[] split(String src, String sep) {\n if (src == null || src.equals(\"\") || sep == null || sep.equals(\"\")) return new String[0];\n List<String> v = new ArrayList<String>();\n int idx;\n int len = sep.length();\n while ((idx = src.indexOf(sep)) != -1) {\n v.add(src.substring(0, idx));\n idx += len;\n src = src.substring(idx);\n }\n v.add(src);\n return (String[]) v.toArray(new String[0]);\n }",
"public static String[] splitShortString(String str, char separator)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return org.apache.myfaces.util.lang.ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n int lastTokenIndex = 0;\n\n // Step 1: how many substrings?\n // We exchange double scan time for less memory allocation\n for (int pos = str.indexOf(separator);\n pos >= 0; pos = str.indexOf(separator, pos + 1))\n {\n lastTokenIndex++;\n }\n\n // Step 2: allocate exact size array\n String[] list = new String[lastTokenIndex + 1];\n\n int oldPos = 0;\n\n // Step 3: retrieve substrings\n int pos = str.indexOf(separator);\n int i = 0;\n \n while (pos >= 0)\n {\n list[i++] = substring(str, oldPos, pos);\n oldPos = (pos + 1);\n pos = str.indexOf(separator, oldPos);\n }\n\n list[lastTokenIndex] = substring(str, oldPos, len);\n\n return list;\n }",
"public static String[] split(String string) {\n String[] result = string.split(\",\");\n for (int i = 0; i < result.length; i++) {\n result[i] = result[i].trim();\n }\n return result;\n }",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"public String[] split(String value, String splitter) {\n\t\tString[] newValue;\n\t\tnewValue = value.split(splitter);\n\t\treturn newValue;\n\t}",
"public static List<String> split(String str, String delim) {\n List<String> splitList = null;\n StringTokenizer st;\n\n if (str == null) {\n return null;\n }\n\n st = (delim != null ? new StringTokenizer(str, delim) : new StringTokenizer(str));\n\n if (st.hasMoreTokens()) {\n splitList = new LinkedList<>();\n\n while (st.hasMoreTokens()) {\n splitList.add(st.nextToken());\n }\n }\n return splitList;\n }",
"public static String[] split(String value, String spliter) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(spliter);\r\n\t}",
"public static ArrayList<String> stringToArray(String str) {\n ArrayList<String> temp = new ArrayList<String>();\n\n while (!str.equals(\"\") && str.contains(\" \")) {\n temp.add(str.substring(0, str.indexOf(\" \")));\n str = str.substring(str.indexOf(\" \") + 1, str.length());\n }\n temp.add(str);\n return temp;\n }",
"public static String [] splitwords(String s) {\n return splitwords(s, WHITESPACE);\n }",
"public static String[] split(String str, String separator, int max) {\n\t\tStringTokenizer tok = null;\n\t\tif (separator == null) {\n\t\t\t// Null separator means we're using StringTokenizer's default\n\t\t\t// delimiter, which comprises all whitespace characters.\n\t\t\ttok = new StringTokenizer(str);\n\t\t} else {\n\t\t\ttok = new StringTokenizer(str, separator);\n\t\t}\n\n\t\tint listSize = tok.countTokens();\n\t\tif (max > 0 && listSize > max) {\n\t\t\tlistSize = max;\n\t\t}\n\n\t\tString[] list = new String[listSize];\n\t\tint i = 0;\n\t\tint lastTokenBegin = 0;\n\t\tint lastTokenEnd = 0;\n\t\twhile (tok.hasMoreTokens()) {\n\t\t\tif (max > 0 && i == listSize - 1) {\n\t\t\t\t// In the situation where we hit the max yet have\n\t\t\t\t// tokens left over in our input, the last list\n\t\t\t\t// element gets all remaining text.\n\t\t\t\tString endToken = tok.nextToken();\n\t\t\t\tlastTokenBegin = str.indexOf(endToken, lastTokenEnd);\n\t\t\t\tlist[i] = str.substring(lastTokenBegin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist[i] = tok.nextToken();\n\t\t\tlastTokenBegin = str.indexOf(list[i], lastTokenEnd);\n\t\t\tlastTokenEnd = lastTokenBegin + list[i].length();\n\t\t\ti++;\n\t\t}\n\t\treturn list;\n\t}",
"public static ArrayList<String> stringSplit(String stringToSplit, String delimiter) \n\t{\n\t\tif (delimiter == null) delimiter = \" \";\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tString currentWord = \"\";\n\n\t\tfor (int i = 0; i < stringToSplit.length(); i++) \n\t\t{\n\t\t\tString s = Character.toString(stringToSplit.charAt(i));\n\n\t\t\tif (s.equals(delimiter)) \n\t\t\t{\n\t\t\t\tstringList.add(currentWord);\n\t\t\t\tcurrentWord = \"\";\n\t\t\t} \n\t\t\telse { currentWord += stringToSplit.charAt(i); }\n\n\t\t\tif (i == stringToSplit.length() - 1) stringList.add(currentWord);\n\t\t}\n\n\t\treturn stringList;\n\t}",
"public static String[] splitPurified(String s, String delim) {\n String[] result = null;\n if (s != null && s.length() > 0) {\n String[] input = s.split(delim);\n result = new String[input.length];\n int i = 0;\n for (String v : input) {\n result[i] = v != null ? v.trim() : \"\";\n i++;\n }\n }\n return result;\n }",
"private ArrayList<String> splitString(String arguments) {\n String[] strArray = arguments.trim().split(REGEX_WHITESPACES);\n return new ArrayList<String>(Arrays.asList(strArray));\n }",
"private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }",
"public static String[] splitString3(String haystack, String needle) {\n // return array of one empty string element if haystack is empty\n if(haystack.equals(\"\")){\n return new String[] {};\n }\n // for empty needle, just return array of characters (cast to String)\n if (needle.equals(\"\")){\n char[] charArray = haystack.toCharArray();\n String[] result = new String[charArray.length];\n \n for(int i = 0; i < charArray.length; i++){\n result[i] = Character.toString(charArray[i]);\n };\n return result;\n }\n // Do actual splitting using String.indexOf() method\n String newHaystack= haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n \n while (index != -1){ \n resultList.add(newHaystack.substring(0, index)); \n newHaystack = newHaystack.substring(index + needle.length()); \n index = newHaystack.indexOf(needle); \n if(index == -1) resultList.add(newHaystack); // add remaining string before exit loop\n }\n \n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for(int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n } \n return res; \n \n }",
"public static String[] split(final String s, final char c)\n\t{\n\t\tfinal List strings = new ArrayList();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}",
"public static String[] splitString2(String haystack, String needle) {\n if (haystack.equals(\"\") || needle.equals(\"\") // non empty strings are\n // not accepted\n || haystack.indexOf(needle) == -1 // haystack must have at least\n // one needle\n || haystack.startsWith(needle) // needle must not be at the\n // beginning of haystack\n || haystack.endsWith(needle)// needle must not be at the end of\n // haystack\n || haystack.contains(needle + needle) // needle must not repeat\n ) {\n throw new IllegalArgumentException();\n }\n // Do actual splitting using string builder method\n String newHaystack = haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n\n do {\n StringBuilder before = new StringBuilder();\n for (int i = 0; i < index; i++) {\n before.append(newHaystack.charAt(i));\n if (i == index - 1)\n resultList.add(before.toString());\n }\n StringBuilder after = new StringBuilder();\n for (int i = index + needle.length(); i < newHaystack.length(); i++) {\n after.append(newHaystack.charAt(i));\n if (i == newHaystack.length() - 1)\n newHaystack = after.toString();\n }\n index = newHaystack.indexOf(needle);\n } while (index != -1);\n\n resultList.add(newHaystack); // add remaining haystack \n \n\n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for (int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n }\n return res;\n\n }",
"public static String[] splitLongString(String str, char separator)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n int oldPos = 0;\n ArrayList list = new ArrayList();\n int pos = str.indexOf(separator);\n while (pos >= 0)\n {\n list.add(substring(str, oldPos, pos));\n oldPos = (pos + 1);\n pos = str.indexOf(separator, oldPos);\n }\n\n list.add(substring(str, oldPos, len));\n\n return (String[]) list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);\n }",
"public static String[] splitOutOfString(String string, char split) {\r\n\t\tArrayList<String> ret = new ArrayList<String>();\r\n\t\tboolean inJavaString = false;\r\n\t\tint numBackSlashes = 0;\r\n\t\tint lastSplitIndex = 0;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar cur = string.charAt(i);\r\n\t\t\tif (!inJavaString) {\r\n\t\t\t\tif (cur == split) {\r\n\t\t\t\t\tret.add(string.substring(lastSplitIndex, i));\r\n\t\t\t\t\tlastSplitIndex = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"') {\r\n\t\t\t\t\tinJavaString = true;\r\n\t\t\t\t\tnumBackSlashes = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (cur == '\\\\') {\r\n\t\t\t\t\tnumBackSlashes++;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"' && numBackSlashes % 2 == 0) {\r\n\t\t\t\t\tinJavaString = false;\r\n\t\t\t\t\tif (cur == split) {\r\n\t\t\t\t\t\tret.add(string.substring(lastSplitIndex, i));\r\n\t\t\t\t\t\tlastSplitIndex = i + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (lastSplitIndex < string.length()) {\r\n\t\t\tret.add(string.substring(lastSplitIndex, string.length()));\r\n\t\t}\r\n\t\tString[] retArray = new String[ret.size()];\r\n\t\tfor (int i = 0; i < ret.size(); i++) {\r\n\t\t\tretArray[i] = ret.get(i);\r\n\t\t}\r\n\t\treturn retArray;\r\n\t}",
"public static String[] splitString(String str) {\r\n String line = str.trim();\r\n String info = \"\";\r\n String areas = \"\";\r\n for (int i = 0; i < line.length(); i ++) {\r\n if (i <= 6)\r\n info += line.charAt(i);\r\n else\r\n areas += line.charAt(i);\r\n }\r\n info = info.trim();\r\n areas = areas.trim();\r\n String[] splitString = new String[]{info, areas};\r\n return splitString;\r\n }",
"public static String[] splitPhrase(String phrase) {\n\t\tif (StringUtils.isBlank(phrase)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (phrase.length() > 2) {\n\t\t\tphrase = phrase.replaceAll(OpenmrsConstants.REGEX_LARGE, \" \");\n\t\t} else {\n\t\t\tphrase = phrase.replaceAll(OpenmrsConstants.REGEX_SMALL, \" \");\n\t\t}\n\t\t\n\t\treturn phrase.trim().replace('\\n', ' ').split(\" \");\n\t}",
"public static List<String> splitPathElements(final String path) {\n final List<String> pathElements = new ArrayList<String>();\n\n if (!isNullOrEmpty(path)) {\n final StringTokenizer tokenizer = new StringTokenizer(path, \"/\");\n\n while (tokenizer.hasMoreTokens()) {\n pathElements.add(tokenizer.nextToken());\n }\n }\n return pathElements;\n }",
"static ArrayList<String> split_words(String s){\n ArrayList<String> words = new ArrayList<>();\n\n Pattern p = Pattern.compile(\"\\\\w+\");\n Matcher match = p.matcher(s);\n while (match.find()) {\n words.add(match.group());\n }\n return words;\n }",
"public static List<String> explode(String text, String separator) {\r\n\t\t\tList<String> list = new ArrayList<String>();\r\n\t\t\tif (text != null && separator != null && !text.isEmpty()) {\r\n\t\t\t\tCollections.addAll(list, text.split(separator));\r\n\t\t\t}\r\n\r\n\t\t\treturn list;\r\n\t\t}",
"public static String[] splitMessage(String msg){\n\t\t\n\t\tString content = msg;\n\t\tString[] msgArray = new String[msg.length()/252];\n\t\tint i=0;\n\t\twhile(content.length() >= 252) {\n\t\t msgArray[i] = content.substring(0, 252);\n\t\t i++;\n\t\t content = content.substring(252);\n\t\t}\n\t\treturn msgArray;\n\t}",
"public static String[] splitName(String name) {\n return normalizer.splitName(defaultRule, name);\n }",
"public static String[] breakInput(String input){\n\t\t//Split the thing up on spaces,\n\t\tString[] inputSplit = (input.split(\"\\\\s\"));\n\t\treturn inputSplit;\n\t}",
"public static String[] convertStringToArray(String str){\n String[] arr = str.split(strSeparator);\n return arr;\n }",
"public static String[] explode(char separator, String string) {\n\t if (string == null) return null;\n\t int len = string.length();\n\t int start = 0;\n\t int end;\n\t ArrayList<String> res = new ArrayList<String>(5);\n\t while (start < len) {\n\t\t end = string.indexOf(separator, start);\n\t\t if (end < 0) end = len;\n\t\t res.add(string.substring(start, end));\n\t\t start = end + 1;\n\t }\n\t return res.toArray(new String[res.size()]);\n }",
"public static List<String> splitWhitespace(String text) {\n\t\tif (sb == null) {\n\t\t\tsb = new StringBuilder();\n\t\t}\n\t\tchar[] chars = text.toCharArray();\n\t\tList<String> words = new ArrayList<String>();\n\t\tfor (int i=0; i<chars.length; i++) {\n\t\t\tif (Character.isWhitespace(chars[i])) {\n\t\t\t\tif (sb.length() > 0) {\n\t\t\t\t\twords.add(sb.toString());\n\t\t\t\t}\n\t\t\t\tsb.setLength(0);\n\t\t\t} else {\n\t\t\t\tsb.append(chars[i]);\n\t\t\t}\n\t\t}\n\t\tif (sb.length() > 0) {\n\t\t\twords.add(sb.toString());\n\t\t}\n\t\tsb.setLength(0);\n\t\treturn words;\n\t}",
"public static List<String> splitString(String s, char c) {\r\n List<String> result = new ArrayList<String>();\r\n int startPos = 0;\r\n while (true) {\r\n int pos = s.indexOf(c, startPos);\r\n if (pos == -1) {\r\n break;\r\n }\r\n result.add(s.substring(startPos, pos));\r\n startPos = pos + 1;\r\n }\r\n if (startPos != s.length()) {\r\n result.add(s.substring(startPos, s.length()));\r\n }\r\n return result;\r\n }",
"private ArrayList<String> stringToArrayList(String group, String splitter) {\n\t\t\n\t\t// Temp variables for splitting the string\n\t\tString[] splitString = TextUtils.split(group, splitter);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\t\n\t\t\n\t\tfor(int i=0; i<splitString.length; i++){\n\t\t\tLog.v(TAG, \"Read group \" + splitString[i]);\n\t\t\tal.add(splitString[i]);\n\t\t}\n\t\t\n\t\treturn al;\n\t}",
"public static CharSequence[] split(char delim, CharSequence seq) {\n if (seq.length() == 0) {\n return new CharSequence[0];\n }\n List<CharSequence> l = splitToList(delim, seq);\n return l.toArray(new CharSequence[l.size()]);\n }",
"static String[] splitIntoAlphasAndNums( String s )\n\t{\n\t\tif ( \"\".equals( s ) )\n\t\t{\n\t\t\treturn new String[]{\"\"};\n\t\t}\n\t\ts = s.toLowerCase( Locale.ENGLISH );\n\n\t\tList<String> splits = new ArrayList<String>();\n\t\tString tok = \"\";\n\n\t\tchar c = s.charAt( 0 );\n\t\tboolean isDigit = isDigit( c );\n\t\tboolean isSpecial = isSpecial( c );\n\t\tboolean isAlpha = !isDigit && !isSpecial;\n\t\tint prevMode = isAlpha ? 0 : isDigit ? 1 : -1;\n\n\t\tfor ( int i = 0; i < s.length(); i++ )\n\t\t{\n\t\t\tc = s.charAt( i );\n\t\t\tisDigit = isDigit( c );\n\t\t\tisSpecial = isSpecial( c );\n\t\t\tisAlpha = !isDigit && !isSpecial;\n\t\t\tint mode = isAlpha ? 0 : isDigit ? 1 : -1;\n\t\t\tif ( mode != prevMode )\n\t\t\t{\n\t\t\t\tif ( !\"\".equals( tok ) )\n\t\t\t\t{\n\t\t\t\t\tsplits.add( tok );\n\t\t\t\t\ttok = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// alpha=0, digit=1. Don't append for specials.\n\t\t\tif ( mode >= 0 )\n\t\t\t{\n\t\t\t\t// Special case for minus sign.\n\t\t\t\tif ( i == 1 && isDigit && '-' == s.charAt( 0 ) )\n\t\t\t\t{\n\t\t\t\t\ttok = \"-\";\n\t\t\t\t}\n\t\t\t\ttok += c;\n\t\t\t}\n\t\t\tprevMode = mode;\n\t\t}\n\t\tif ( !\"\".equals( tok ) )\n\t\t{\n\t\t\tsplits.add( tok );\n\t\t}\n\t\tsplits.add( \"\" ); // very important: append empty-string to all returned splits.\n\t\treturn splits.toArray( new String[ splits.size() ] );\n\t}",
"public static String[] split(char delim, String seq) {\n List<String> result = new ArrayList<>(20);\n int max = seq.length();\n int start = 0;\n for (int i = 0; i < max; i++) {\n char c = seq.charAt(i);\n boolean last = i == max - 1;\n if (c == delim || last) {\n result.add(seq.substring(start, last ? c == delim ? i : i + 1 : i));\n start = i + 1;\n }\n }\n return result.toArray(new String[result.size()]);\n }",
"protected List<String> split(String pattern) {\n\t\tint p = 0;\n\t\tint n = pattern.length();\n\t\tList<String> chunks = new ArrayList<String>();\n\t\tStringBuffer buf = new StringBuffer();\n\t\t// find all start and stop indexes first, then collect\n\t\tList<Integer> starts = new ArrayList<Integer>();\n\t\tList<Integer> stops = new ArrayList<Integer>();\n\t\twhile ( p<n ) {\n\t\t\tif ( p == pattern.indexOf(escape+start,p) ) {\n\t\t\t\tp += escape.length() + start.length();\n\t\t\t}\n\t\t\telse if ( p == pattern.indexOf(escape+stop,p) ) {\n\t\t\t\tp += escape.length() + stop.length();\n\t\t\t}\n\t\t\telse if ( p == pattern.indexOf(start,p) ) {\n\t\t\t\tstarts.add(p);\n\t\t\t\tp += start.length();\n\t\t\t}\n\t\t\telse if ( p == pattern.indexOf(stop,p) ) {\n\t\t\t\tstops.add(p);\n\t\t\t\tp += stop.length();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\n//\t\tSystem.out.println(\"\");\n//\t\tSystem.out.println(starts);\n//\t\tSystem.out.println(stops);\n\t\tif ( starts.size() > stops.size() ) {\n\t\t\tthrow new IllegalArgumentException(\"unterminated tag in pattern: \"+pattern);\n\t\t}\n\n\t\tif ( starts.size() < stops.size() ) {\n\t\t\tthrow new IllegalArgumentException(\"missing start tag in pattern: \"+pattern);\n\t\t}\n\n\t\tint ntags = starts.size();\n\t\tfor (int i=0; i<ntags; i++) {\n\t\t\tif ( starts.get(i)>=stops.get(i) ) {\n\t\t\t\tthrow new IllegalArgumentException(\"tag delimiters out of order in pattern: \"+pattern);\n\t\t\t}\n\t\t}\n\n\t\t// collect into chunks now\n\t\tif ( ntags==0 ) {\n\t\t\tchunks.add(pattern.substring(0, n));\n\t\t}\n\n\t\tif ( ntags>0 && starts.get(0)>0 ) { // copy text up to first tag into chunks\n\t\t\tchunks.add(pattern.substring(0, starts.get(0)));\n\t\t}\n\t\tfor (int i=0; i<ntags; i++) {\n\t\t\t// copy inside of <tag>\n\t\t\tString tag = pattern.substring(starts.get(i) + start.length(), stops.get(i));\n\t\t\tchunks.add(tag);\n\t\t\tif ( i+1 < ntags ) {\n\t\t\t\t// copy from end of <tag> to start of next\n\t\t\t\tString text = pattern.substring(stops.get(i) + stop.length(), starts.get(i + 1));\n\t\t\t\tchunks.add(text);\n\t\t\t}\n\t\t}\n\t\tif ( ntags>0 ) {\n\t\t\tint endOfLastTag = stops.get(ntags - 1) + stop.length();\n\t\t\tif ( endOfLastTag < n-1 ) { // copy text from end of last tag to end\n\t\t\t\tString text = pattern.substring(endOfLastTag+stop.length(), n);\n\t\t\t\tchunks.add(text);\n\t\t\t}\n\t\t}\n\n\t\t// strip out the escape sequences\n\t\tfor (int i=0; i<chunks.size(); i++) {\n\t\t\tString chunk = chunks.get(i).replace(escape, \"\");\n\t\t\tchunks.set(i, chunk);\n\t\t}\n\n\t\treturn chunks;\n\t}",
"public static String[] parseEquation(String equation) {\n\t\tString[] result = equation.split(\"(?<=[-+*/])|(?=[-+*/])\");\n\t\treturn result;\n\t}",
"public static List<String> tokenize(final String str) {\n\tfinal LinkedList<String> list = new LinkedList<String>();\n\tfinal StringTokenizer tokenizer = new StringTokenizer(str, ALL_DELIMS, true);\n\n\twhile (tokenizer.hasMoreTokens()) {\n\t final String token = tokenizer.nextToken();\n\t // don't add spaces\n\t if (!token.equals(\" \")) {\n\t\tlist.add(token);\n\t }\n\t}\n\n\treturn list;\n }",
"public static List<String> splitBitStrings(String bitString){\n\t\tList<String> LR = new ArrayList<String>();\n\t\tString L = bitString.substring(0,(bitString.length()/2));\n\t\tString R = bitString.substring((bitString.length()/2),bitString.length());\n\t\tLR.add(L);\n\t\tLR.add(R);\n\t\t\n\t\treturn LR;\n\n\t}",
"private java.util.ArrayList<String> textSplit(String splitted) {\n java.util.ArrayList<String> returned = new java.util.ArrayList<String>();\n String relatedSeparator = this.getLineSeparator(splitted);\n String[] pieces = splitted.split(relatedSeparator + relatedSeparator);\n String rstr = \"\";\n for (int cpiece = 0; cpiece < pieces.length; cpiece++) {\n String cstr = pieces[cpiece];\n if (rstr.length() + cstr.length() > maxLength) {\n if (!rstr.isEmpty()) {\n returned.add(rstr);\n rstr = cstr;\n }\n else {\n returned.add(cstr);\n }\n }\n else {\n if (rstr.equals(\"\")) {\n rstr = cstr;\n }\n else {\n rstr = rstr + lineSeparator + lineSeparator + cstr;\n }\n }\n if (cpiece == pieces.length - 1) {\n returned.add(rstr);\n }\n }\n return returned;\n }",
"public static int[] getDelimiters(String s){\n\t\tint len=s.length();\n\t\tint nb_token=0;\n\t\tboolean previous_is_delimiter=true;\n\t\tfor (int i=0; i<len; i++){\n\t\t\tchar c=s.charAt(i);\n\t\t\tif (tokenize_isdelim(c)){\n\t\t\t\tif (!previous_is_delimiter){\n\t\t\t\t\tnb_token++;\n\t\t\t\t}\n\t\t\t\tprevious_is_delimiter=true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (previous_is_delimiter){\n\t\t\t\t\tnb_token++;\n\t\t\t\t}\n\t\t\t\tprevious_is_delimiter=false;\n\t\t\t}\n\t\t}\n\t\tint[] delimiters=new int[nb_token];\n\t\tint counter=0;\n\t\tprevious_is_delimiter=true;\n\t\tfor (int i=0; i<len; i++){\n\t\t\tchar c=s.charAt(i);\n\t\t\tif (tokenize_isdelim(c)){\n\t\t\t\tif (!previous_is_delimiter){\n\t\t\t\t\tdelimiters[counter]=i;\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\tprevious_is_delimiter=true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (previous_is_delimiter){\n\t\t\t\t\tdelimiters[counter]=i;\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\tprevious_is_delimiter=false;\n\t\t\t}\n\t\t}\n\t\treturn delimiters;\n\t\t\n\t}",
"public static String[] parseBlankSeparatedList(String line) {\n \tArrayList myList = new ArrayList();\n \t\n \tString myLine = new String(line);\n \t\n \twhile(myLine.contains(\" \")) {\n \t\tString item = myLine.substring(0, myLine.indexOf(\" \"));\n \t\tmyList.add(item);\n \t\tmyLine = myLine.substring((myLine.indexOf(\" \") + 1));\n \t\tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \t}\n \tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \tmyList.add(myLine);\n\n \tString[] list = new String[myList.size()];\n \tfor(int i = 0; i < myList.size(); i++) {\n \t\tlist[i] = new String((String)myList.get(i));\n \t}\n \t\n \treturn list;\n }",
"public static String[] wordSeparator(String input) {\n return partition(input, ' ');\n }",
"public static String[] tokenize(String value, String token) {\n checkNotNull(value);\n checkNotNull(token);\n if (value.trim().length() == 0) {\n return new String[] { };\n }\n return value.split(token);\n }",
"public List<String> sentenceSplit(String input)\n {\n return InputNormalizer.sentenceSplit(this.sentenceSplitters, input);\n }",
"private String [] splitString(String name) {\r\n String [] parts = {\"\", \"\"};\r\n if (name != null) {\r\n String [] t = StringExtend.toArray(name, \".\", false);\r\n if (t.length == 3) {\r\n parts [0] = t [0] + \".\" + t [1];\r\n parts [1] = t [2];\r\n }\r\n else if (t.length == 2) {\r\n parts [0] = t [0]; parts [1] = t [1];\r\n }\r\n else if (t.length == 1) {\r\n parts [1] = t [0];\r\n }\r\n }\r\n\r\n return parts;\r\n }",
"public static String[] split(String s) {\n int cp = 0; // Cantidad de palabras\n\n // Recorremos en busca de espacios\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si es un espacio\n cp++; // Aumentamos en uno la cantidad de palabras\n }\n }\n\n // \"Este blog es genial\" tiene 3 espacios y 3 + 1 palabras\n String[] partes = new String[cp + 1];\n for (int i = 0; i < partes.length; i++) {\n partes[i] = \"\"; // Se inicializa en \"\" en lugar de null (defecto)\n }\n\n int ind = 0; // Creamos un índice para las palabras\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si hay un espacio\n ind++; // Pasamos a la siguiente palabra\n continue; // Próximo i\n }\n partes[ind] += s.charAt(i); // Sino, agregamos el carácter a la palabra actual\n }\n return partes; // Devolvemos las partes\n }",
"private String[] parseArray(String val) {\n String[] arrayVals;\n val = val.trim();\n if (emptyVal(val)) {\n arrayVals = Constants.EMPTY_STRING_ARRAY;\n } else {\n arrayVals = val.split(\"\\\\s+\");\n }\n return arrayVals;\n }",
"public static StringBuffer[] splitStringBuffer(String[] splittedString) {\n\n\t\tStringBuffer array[] = new StringBuffer[splittedString.length];\n\n\t\tint i = 0;\n\n\t\tfor (String string : splittedString) {\n\n\t\t\tarray[i++] = new StringBuffer(string);\n\n\t\t}\n\n\t\treturn array;\n\n\t}",
"public static List<String> splitText(String text) {\n int startLine = 0;\n int i = 0;\n int n = text.length();\n ArrayList<String> rc = new ArrayList<>();\n while (i < n) {\n switch (text.charAt(i)) {\n case '\\n' -> {\n i++;\n if (i < n && text.charAt(i) == '\\r') {\n i++;\n }\n rc.add(text.substring(startLine, i));\n startLine = i;\n }\n case '\\r' -> {\n i++;\n if (i < n && text.charAt(i) == '\\n') {\n i++;\n }\n rc.add(text.substring(startLine, i));\n startLine = i;\n }\n default -> i++;\n }\n }\n if (startLine == text.length()) {\n // still add empty line or previous line wouldn't be treated as completed\n rc.add(\"\");\n } else {\n rc.add(text.substring(startLine, i));\n }\n return rc;\n }",
"public static String[] splitPath(String path){\n if(org.apache.commons.lang3.StringUtils.isEmpty(path)){\n return new String[0];\n }\n\n int first = path.indexOf('.');\n\n if(first >=0 ){\n String firstPart = path.substring(0,first);\n if(path.length() > (first+1)) {\n String restPart = path.substring(first + 1, path.length());\n return new String[]{firstPart,restPart};\n }else{\n return new String[]{firstPart};\n }\n }else{\n return new String[]{path};\n }\n }",
"@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }",
"public static String[] splitWordString(String word) {\r\n\t\tString[] letters = word.split(\"[^a-z^A-Z]\");\r\n\t\treturn letters;\r\n\t}",
"private String[] getDelimiters(String numbers) {\n String firstLine = numbers.lines().findFirst().orElse(\"\");\n\n if (firstLine.startsWith(\"//\")) {\n StringBuilder delimiter = new StringBuilder();\n\n List<String> delimiters = new ArrayList<>();\n\n for (int i = 2; i < firstLine.length(); i++) {\n if (firstLine.charAt(i) == ']') {\n delimiters.add(delimiter.toString());\n delimiter = new StringBuilder();\n } else if (firstLine.charAt(i) != '[') {\n delimiter.append(firstLine.charAt(i));\n }\n }\n return delimiters.stream().sorted((s, t1) -> t1.length() - s.length())\n .toArray(String[]::new);\n }\n\n return new String[0];\n }",
"public static String[] splitIntoWords(String s) {\n String[] words = s.split(\" \");\n return words;\n }",
"public static List<String> splitSpaces(String text) {\n\t\treturn splitChar(text, ' ');\n\t}",
"private String[] getStringArray(String data, String regex) {\r\n\r\n\t\tLOG.info(\"getStringArray\");\r\n\t\t\r\n\t\tString[] array = data.split(regex);\r\n\r\n\t\tLOG.debug(\"Array [\" + Arrays.toString(array) + \"]\");\r\n\r\n\t\treturn array;\r\n\t\t\r\n\t}",
"public static String[] svStringToArray(String sv, String separator) {\n String[] split = sv.split(separator);\n for (int i = 0; i < split.length; i++) {\n split[i] = split[i].trim();\n }\n return split;\n }",
"public List<List<String>> partition(String s) {\n if(s == null || s.length() == 0){\n return output;\n }\n \n helper(s, 0, new ArrayList<String>());\n \n return output;\n }",
"private static String[] seperateStr(String str)\r\n\t{\r\n\t\tboolean doubleSpace = false;\r\n\t\tint wordCount = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif (str == null || str.length() == 0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t\twordCount++;\r\n\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\t\tString st[] = new String[wordCount + 1];\r\n\t\tint i = 0;\r\n\r\n\t\tdoubleSpace = false;\r\n\t\tString ch = \"\";\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t{\r\n\t\t\t\t\tst[i] = sb.toString();\r\n\t\t\t\t\tsb.delete(0, sb.length());\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tsb.append(str.charAt(j));\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\r\n\t\tst[i] = sb.toString();\r\n\t\t;\r\n\t\treturn st;\r\n\t}",
"String[] splitSentenceWords() {\n\t\t\tint i=0;\n\t\t\tint j=0;\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\t\n\t\t\t\tString[] allWords = wordPattern.split(purePattern.matcher(sentence).replaceAll(\" \"));//.split(\"(?=\\\\p{Lu})|(\\\\_|\\\\,|\\\\.|\\\\s|\\\\n|\\\\#|\\\\\\\"|\\\\{|\\\\}|\\\\@|\\\\(|\\\\)|\\\\;|\\\\-|\\\\:|\\\\*|\\\\\\\\|\\\\/)+\");\n\t\t\tfor(String word : allWords) {\n\t\t\t\tif(word.length()>2) {\n\t\t\t\t\twords.add(word.toLowerCase());\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\treturn (String[])words.toArray(new String[words.size()]);\n\t\t\n\t\t}",
"public static String[] split(char c, String value) {\n\t\t int count,idx;\n\t\t for(count=1,idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,++idx),++count);\n\t\t String[] rv = new String[count];\n\t\t if(count==1) {\n\t\t\t rv[0]=value;\n\t\t } else {\n\t\t\t int last=0;\n\t\t\t count=-1;\n\t\t\t for(idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,idx)) {\n\t\t\t\t rv[++count]=value.substring(last,idx);\n\t\t\t\t last = ++idx;\n\t\t\t }\n\t\t\t rv[++count]=value.substring(last);\n\t\t }\n\t\t return rv;\n\t }",
"private static List<String> stringToList(String string) {\n\t // Create a tokenize that uses \\t as the delim, and reports\n\t // both the words and the delimeters.\n\t\tStringTokenizer tokenizer = new StringTokenizer(string, \"\\t\", true);\n\t\tList<String> row = new ArrayList<String>();\n\t\tString elem = null;\n\t\tString last = null;\n\t\twhile(tokenizer.hasMoreTokens()) {\n\t\t\tlast = elem;\n\t\t\telem = tokenizer.nextToken();\n\t\t\tif (!elem.equals(\"\\t\")) row.add(elem);\n\t\t\telse if (last.equals(\"\\t\")) row.add(\"\");\n\t\t\t// We need to track the 'last' state so we can treat\n\t\t\t// two tabs in a row as an empty string column.\n\t\t}\n\t\tif (elem.equals(\"\\t\")) row.add(\"\"); // tricky: notice final element\n\t\t\n\t\treturn(row);\n\t}",
"abstract List<String> splitStringToCollection(String inputString, String separator);",
"public String[] split(String line, String delimit) {\r\n\t\tlog.debug(\"line = \" + line);\r\n\t\tString[] a = null;\r\n\t\tVector<String> lines = new Vector<String>();\r\n\t\tline = line.replaceAll(\"\\\\\\\\\" + delimit, \"\\\\e\");\r\n\t\ta = line.split(delimit);\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tString thisLine = a[i];\r\n\t\t\tlog.debug(\"thisLine[\" + i + \"] = \" + thisLine);\r\n\t\t\tif (quoteText && thisLine.startsWith(\"\\\"\")) {\r\n\t\t\t\twhile (!thisLine.endsWith(\"\\\"\") && i < a.length) {\r\n\t\t\t\t\tthisLine += \",\" + a[++i];\r\n\t\t\t\t}\r\n\t\t\t\tif (i == line.length()) {\r\n\t\t\t\t\tthrow new RuntimeException(\"unterminated string quote\");\r\n\t\t\t\t}\r\n\t\t\t\tthisLine = thisLine.substring(1, thisLine.length()-2);\r\n\t\t\t\tthisLine.replaceAll(\"\\\\e\", delimit);\r\n\t\t\t}\r\n\t\t\tlines.add(thisLine);\r\n\t\t}\r\n\t\ta = new String[1];\r\n\t\treturn lines.toArray(a);\r\n\t}",
"public String[] tokenize(String string) {\n String[] result = null;\n\n if (string != null && !\"\".equals(string)) {\n if (normalizer != null) {\n final NormalizedString nString = normalize(string);\n if (nString != null) {\n result = nString.split(stopwords);\n }\n }\n else if (analyzer != null) {\n final List<String> tokens = LuceneUtils.getTokenTexts(analyzer, label, string);\n if (tokens != null && tokens.size() > 0) {\n result = tokens.toArray(new String[tokens.size()]);\n }\n }\n\n if (result == null) {\n final String norm = string.toLowerCase();\n if (stopwords == null || !stopwords.contains(norm)) {\n result = new String[]{norm};\n }\n }\n }\n\n return result;\n }",
"public static StringList createFrom(String str, String regexp) {\n if ((str == null) || (regexp == null))\n return null;\n\n String strs[] = str.split(regexp);\n return new StringList(strs);\n }",
"public static String[] splitShortString(\n String str, char separator, char quote)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n // Step 1: how many substrings?\n // We exchange double scan time for less memory allocation\n int tokenCount = 0;\n for (int pos = 0; pos < len; pos++)\n {\n tokenCount++;\n\n int oldPos = pos;\n\n // Skip quoted text, if any\n while ((pos < len) && (str.charAt(pos) == quote))\n {\n pos = str.indexOf(quote, pos + 1) + 1;\n\n // pos == 0 is not found (-1 returned by indexOf + 1)\n if (pos == 0)\n {\n throw new IllegalArgumentException(\n \"Closing quote missing in string '\" + str + '\\'');\n }\n }\n\n if (pos != oldPos)\n {\n if ((pos < len) && (str.charAt(pos) != separator))\n {\n throw new IllegalArgumentException(\n \"Separator must follow closing quote in strng '\"\n + str + '\\'');\n }\n }\n else\n {\n pos = str.indexOf(separator, pos);\n if (pos < 0)\n {\n break;\n }\n }\n }\n\n // Main loop will finish one substring short when last char is separator\n if (str.charAt(len - 1) == separator)\n {\n tokenCount++;\n }\n\n // Step 2: allocate exact size array\n String[] list = new String[tokenCount];\n\n // Step 3: retrieve substrings\n // Note: on this pass we do not check for correctness,\n // since we have already done so\n tokenCount--; // we want to stop one token short\n\n int oldPos = 0;\n for (int pos = 0, i = 0; i < tokenCount; i++, oldPos = ++pos)\n {\n boolean quoted;\n\n // Skip quoted text, if any\n while (str.charAt(pos) == quote)\n {\n pos = str.indexOf(quote, pos + 1) + 1;\n }\n\n if (pos != oldPos)\n {\n quoted = true;\n\n if (str.charAt(pos) != separator)\n {\n throw new IllegalArgumentException(\n \"Separator must follow closing quote in strng '\"\n + str + '\\'');\n }\n }\n else\n {\n quoted = false;\n pos = str.indexOf(separator, pos);\n }\n\n list[i] =\n quoted ? dequote(str, oldPos + 1, pos - 1, quote)\n : substring(str, oldPos, pos);\n }\n\n list[tokenCount] = dequoteFull(str, oldPos, len, quote);\n\n return list;\n }",
"public static List<String> splitByLogicOperators(String str){\n Matcher matcher = logicOperatorPattern.matcher(str);\n List<String> result = new ArrayList<>();\n int start = 0;\n while (matcher.find()) {\n result.add(str.substring(start, matcher.start()).trim());\n result.add(str.substring(matcher.start(), matcher.end()).trim());\n start = matcher.end();\n }\n result.add(str.substring(start, str.length()).trim());\n return result;\n }",
"public List<ColouredString> split(String string) {\n List<ColouredString> result = new ArrayList<ColouredString>();\n \n String[] parts = content.split(string);\n for (String s : parts) {\n result.add(new ColouredString(colour, s));\n }\n \n return result;\n }",
"public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }",
"private static List<String> split(final String source) throws IOException {\n List<String> result = new ArrayList<>();\n int last_split = -1;\n boolean opened_quotes = false;\n for (int i = 0; i < source.length(); i++) {\n char value = source.charAt(i);\n if (i == source.length() - 1 || source.charAt(i + 1) == '\\n') {\n if (value != ';') {\n throw new IOException(\"Invalid end of statement\");\n }\n String split = source.substring(last_split + 1, i);\n last_split = i;\n if (split.length() != 0) {\n result.add(split);\n }\n result.add(\";\");\n }\n\n if (opened_quotes) {\n if (value == '\\\"') {\n opened_quotes = false;\n String split = source.substring(last_split + 1, i + 1);\n last_split = i;\n if (split.length() == 0) continue;\n result.add(split);\n }\n if (value == '\\n') {\n throw new IOException(\"Invalid input.\");\n }\n } else {\n if (value == '\\\"') {\n opened_quotes = true;\n } else if (Character.isWhitespace(value)) {\n String split = source.substring(last_split + 1, i);\n last_split = i;\n if (split.length() == 0) continue;\n result.add(split);\n } else if (isSymbol(value) && value != ';') {\n String split = source.substring(last_split + 1, i);\n last_split = i;\n if (split.length() != 0) {\n result.add(split);\n }\n result.add(Character.toString(value));\n }\n }\n }\n if (opened_quotes) {\n throw new IOException(\"Invalid input.\");\n }\n\n return result;\n }"
]
| [
"0.72100985",
"0.67787075",
"0.6678708",
"0.6670141",
"0.6513825",
"0.6503553",
"0.6349907",
"0.6290228",
"0.6279295",
"0.6208723",
"0.6180541",
"0.6177879",
"0.6154412",
"0.61353266",
"0.61340165",
"0.61198217",
"0.6114698",
"0.6110374",
"0.60693043",
"0.606479",
"0.60284853",
"0.60251313",
"0.6022645",
"0.6008491",
"0.60016793",
"0.5947576",
"0.5916395",
"0.5909663",
"0.58976936",
"0.5869384",
"0.5868176",
"0.5860506",
"0.58553696",
"0.5853078",
"0.5852291",
"0.5852125",
"0.58201784",
"0.5811042",
"0.5766348",
"0.5749532",
"0.5743147",
"0.5719009",
"0.57074755",
"0.5706553",
"0.5684095",
"0.5683682",
"0.5679056",
"0.5671975",
"0.56607014",
"0.5647556",
"0.5635477",
"0.56256014",
"0.5582943",
"0.5548915",
"0.5545538",
"0.5539642",
"0.5479412",
"0.54705954",
"0.54597795",
"0.5457604",
"0.54547787",
"0.5454645",
"0.543727",
"0.54225713",
"0.54091585",
"0.5407265",
"0.5395647",
"0.5382493",
"0.5380923",
"0.5374057",
"0.5370601",
"0.5369786",
"0.53696436",
"0.5368159",
"0.5366893",
"0.53579724",
"0.53528744",
"0.53444874",
"0.53419256",
"0.5341313",
"0.53329885",
"0.5332062",
"0.5331102",
"0.531964",
"0.5294272",
"0.5277621",
"0.52742606",
"0.52653736",
"0.5241303",
"0.52411866",
"0.5200998",
"0.5194349",
"0.5176215",
"0.5176145",
"0.51671827",
"0.5145427",
"0.51448077",
"0.5116521",
"0.5114017",
"0.510685"
]
| 0.7310365 | 0 |
Returns true if the string is null or 0length. | public static boolean isEmpty(CharSequence str) {
if (str == null || str.length() == 0) return true;
else return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isZeroLength() {\r\n return value.length() == 0;\r\n }",
"private boolean hasValue (String s) { return s != null && s.length() != 0; }",
"public static boolean hasLength(CharSequence str) {\n\t\treturn (str != null && str.length() > 0);\n\t}",
"protected boolean notEmpty(String s) {\n return s != null && s.length() != 0;\n }",
"private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"private boolean isEmpty(String string) {\n\t\treturn string == null || string.isEmpty();\n\t}",
"static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }",
"private static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean stringNullOrEmpty ( String string ) {\r\n if ( string == null ) return true;\r\n if ( string.isEmpty() ) return true;\r\n return false;\r\n }",
"public static boolean isEmpty(String string) {\n\treturn null == string || string.trim().isEmpty();\n }",
"public static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0 || \"null\".equals(str))\n return true;\n else\n return false;\n }",
"public static boolean isEmpty(String s) {\n\t\treturn s != null && s.length() == 0;\n\t}",
"public static boolean isEmpty(CharSequence str) {\r\n if (str == null || str.length() == 0)\r\n return true;\r\n else\r\n return false;\r\n }",
"abstract boolean canMatchEmptyString();",
"public static boolean isNullOrEmptyNotTrim(final String s) {\r\n\t\treturn (s == null || s.length() == 0);\r\n\t}",
"public static boolean IsNullOrEmpty(String text) {\n\t\treturn text == null || text.length() == 0;\n\t}",
"private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }",
"public static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"private static final boolean isEmpty(String s) {\n return s == null || s.trim().length() < 1;\n }",
"public static boolean isEmpty(String aString)\r\n {\r\n return aString==null || aString.trim().length()==0;\r\n }",
"public static boolean isNullOrEmpty(String string) {\n\t\treturn string == null || string.length() == 0;\n\t}",
"public static boolean isEmptyString(String theString)\n {\n return (theString == null || theString.length() == 0 || theString.equalsIgnoreCase(\"null\"));\n }",
"public static boolean isEmpty(String s) {\n return s == null || s.length() == 0;\n }",
"private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }",
"public static boolean isEmpty(String s) {\r\n return (s == null) || (s.length() == 0);\r\n }",
"protected boolean isEmpty(String s) {\n return s == null || s.trim().isEmpty();\n }",
"public static boolean isEmpty(String str) {\r\n return str == null || str.length() == 0;\r\n }",
"@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}",
"private boolean isEmpty(String s) {\n return s == null || \"\".equals(s);\n }",
"public static Boolean IsStringNullOrEmpty(String value) {\n\t\treturn value == null || value == \"\" || value.length() == 0;\n\t}",
"public static boolean checkNullOrEmptyString(String inputString) {\n\t\treturn inputString == null || inputString.trim().isEmpty();\n\t}",
"public boolean isNullOrEmpty(String str){\n \treturn str!=null && !str.isEmpty() ? false : true;\n }",
"public static boolean isEmpty(String string) {\n return string.length() == 0;\n }",
"public static boolean isEmpty(String s) {\n return s == null || s.isEmpty();\n }",
"public static boolean isEmpty(String s)\r\n {\r\n return (s == null || s.length() == 0 || s.trim().length() == 0);\r\n }",
"private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }",
"static boolean isNullOrEmpty(String str){\n if(str == null){\n return true;\n }\n if(str.isEmpty()){\n return true;\n }\n if(str.length() == 0){\n return true;\n }\n if(str.equalsIgnoreCase(\" \")){\n return true;\n }\n return false;\n }",
"public static boolean isEmpty(CharSequence str) {\n\t\treturn (str == null || str.toString().trim().length() == 0);\n\t}",
"public static boolean isEmpty(final String value) {\n\t\treturn value == null || value.trim().length() == 0 || \"null\".endsWith(value);\n\t}",
"public static boolean isEmpty(final CharSequence string)\n\t{\n\t\treturn string == null || string.length() == 0 || string.toString().trim().equals(\"\");\n\t}",
"public static boolean isNotNull(String txt){\n return txt!=null && txt.trim().length()>0 ? true: false;\n }",
"public static boolean isNullOrEmpty(String string) {\r\n\t\treturn string == null || string.isEmpty();\r\n\t}",
"public static boolean isNotNull(String txt){\n\t\treturn txt!=null && txt.trim().length()>0 ? true: false;\n\t}",
"public boolean isEmpty( String string ){\n if( string == null || string.trim().length() == 0 ){\n return true;\n }\n return false;\n }",
"private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }",
"public static boolean isEmpty(String string) {\n\t\treturn string == null || \"\".equals(string);\n\t}",
"public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }",
"public static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }",
"private final boolean emptyVal(String val) {\n return ((val == null) || (val.length() == 0));\n }",
"public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}",
"public static boolean isEmptyString(String s) {\n return (s==null || s.equals(\"\"));\n }",
"boolean canMatchEmptyString() {\n return false;\n }",
"public static boolean isEmpty(@Nullable final String text) {\n return text == null || text.trim().length() == 0;\n }",
"public static boolean isNotNull(String txt) {\n return txt != null && txt.trim().length() > 0 ? true : false;\n }",
"public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }",
"public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }",
"public static boolean isStringFullEmpty(String string) {\n\t\treturn !string.isBlank() && !string.isEmpty();\n\t}",
"private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }",
"public static boolean isEmptyString(String text) {\n return (text == null || text.trim().length() == 0);\n }",
"private final static boolean isEmpty(String field) {\n return field == null || field.trim().length() == 0;\n }",
"public static boolean isEmpty(String value) {\r\n\t\treturn value == null || value.length() < 1;\r\n\t}",
"public static boolean isBlank(String str)\n {\n if( str == null || str.length() == 0 )\n return true;\n return false;\n }",
"public boolean isSetStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STR$0) != 0;\r\n }\r\n }",
"public static boolean hasLength(String str) {\n\t\treturn hasLength((CharSequence) str);\n\t}",
"private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isNotEmpty(String string) {\n\t\treturn string != null || !\"\".equals(string);\n\t}",
"public static boolean isBlankOrNullString(String s){\n return s == null || s.isEmpty() || s.equalsIgnoreCase(\"\");\n }",
"public static final boolean isEmpty(String strSource){\n return strSource==null ||strSource.equals(\"\")|| strSource.trim().length()==0; \n }",
"public static boolean isNullOrEmpty(String str) {\n return str == null || str.isEmpty();\n }",
"public static boolean isNullOrEmpty(final String s) {\r\n\t\treturn (s == null || s.trim().length() == 0);\r\n\t}",
"@Test\n\tpublic void testNullString() {\n\t\tString s = null;\n\t\tassertTrue(\"Null string\", StringUtil.isEmpty(s));\n\t}",
"public static boolean isNotEmpty(String str) {\n\treturn null != str && !str.trim().isEmpty();\n }",
"public static boolean isValid(String str) {\r\n\t\tif(str != null && !str.isEmpty())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }",
"public static boolean isZeroString (final String in) {\n\t\treturn StringUtils.ZERO_STRING.equals(in);\n\t}",
"public static boolean isNullOrEmpty(String content){\n return (content !=null && !content.trim().isEmpty() ? false :true);\n }",
"public boolean isNotEmpty(String input){\r\n if(input == null) return false;\r\n if(input.isEmpty()) return false;\r\n return true;\r\n }",
"boolean hasString();",
"public static boolean isEmpty(String value) {\n return ((value == null) || (value.trim().length() == 0));\n }",
"public boolean isEmpty() {\n\t\tString v = getValue();\n\t\treturn v == null || v.isEmpty();\n\t}",
"public static boolean checkEmptiness(String str) {\r\n return str != null && !str.trim().equals(\"\");\r\n }",
"public static boolean isStringEmpty(String str) {\r\n return (str == null) || \"\".equals(str.trim());\r\n }",
"public static boolean isEmpty(String str) {\n return StringUtils.isEmpty(str);\n }",
"private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }",
"public static final boolean isEmptyStr(String str)\n\t{\n\t\tif (null == str || \"\".equals(str))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public static boolean isNullOrEmpty(String strIn)\r\n {\r\n return (strIn == null || strIn.equals(\"\"));\r\n }",
"public static boolean isEmpty(String text) {\n return text == null || text.isEmpty();\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static final boolean isNullOrEmpty(final String str) {\n\t\treturn (str == null || str.isEmpty());\n\t}",
"public static boolean isEmptyOrNull(String content){\n if(content == null){\n return true;\n }else return content.trim().equals(\"\");\n }",
"public static boolean isNullOrEmpty(String param) {\n return param == null || param.trim().length() == 0;\n }",
"protected boolean isEmpty(String text) {\r\n if (text == null) {\r\n return true;\r\n }\r\n\r\n if (text.trim().length() == 0) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public static boolean isBlank(String string) {\n if (string == null || string.length() == 0)\n return true;\n\n int l = string.length();\n for (int i = 0; i < l; i++) {\n if (!isWhitespace(string.codePointAt(i)))\n return false;\n }\n return true;\n }",
"public static boolean isBlankOrNull(String string) {\n\n //check if parameter is null\n if (string == null) return true;\n\n //check if string is empty\n if (string.isEmpty()) return true;\n\n //check if string consists of whitespaces only\n if (string.trim().isEmpty()) return true;\n\n //after all checks are negative\n return false;\n\n }",
"public static boolean isEmpty( String input )\n {\n if ( input == null || \"\".equals( input ) )\n return true;\n\n for ( int i = 0; i < input.length(); i++ )\n {\n char c = input.charAt( i );\n if ( c != ' ' && c != '\\t' && c != '\\r' && c != '\\n' )\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isNullOrEmpty(final String s) {\n return (s == null) || s.trim().equals(\"\");\n }",
"public static boolean notEmpty(String str) {\n return str != null && !\"\".equals(str) && !\"null\".equalsIgnoreCase(str);\n }"
]
| [
"0.7866255",
"0.78282",
"0.776109",
"0.74661076",
"0.73871607",
"0.7342946",
"0.7305148",
"0.7261805",
"0.7253386",
"0.72099763",
"0.7206328",
"0.7186251",
"0.71488774",
"0.71468973",
"0.7143354",
"0.7143291",
"0.7135468",
"0.7135077",
"0.7129628",
"0.71118367",
"0.7101511",
"0.7095397",
"0.70919263",
"0.7087484",
"0.70848036",
"0.7081106",
"0.70676005",
"0.7067134",
"0.7063786",
"0.702929",
"0.7025259",
"0.70094335",
"0.7008142",
"0.69936323",
"0.6982654",
"0.697269",
"0.6947953",
"0.6941584",
"0.69242936",
"0.6921028",
"0.6918994",
"0.69177145",
"0.68940604",
"0.68829966",
"0.687293",
"0.6866455",
"0.68570405",
"0.6855891",
"0.68426067",
"0.68403476",
"0.68400466",
"0.6839459",
"0.6826573",
"0.6825513",
"0.68164974",
"0.68164974",
"0.6813944",
"0.6803577",
"0.6794598",
"0.6792678",
"0.67921895",
"0.67917866",
"0.6781225",
"0.6772207",
"0.6762636",
"0.67569417",
"0.67422384",
"0.67353535",
"0.6721028",
"0.6720157",
"0.6719667",
"0.6704329",
"0.6699864",
"0.66978914",
"0.6697821",
"0.66956997",
"0.6695445",
"0.668625",
"0.6678393",
"0.66764754",
"0.66604215",
"0.6640954",
"0.6626264",
"0.66229844",
"0.6612308",
"0.6606755",
"0.6585965",
"0.6580815",
"0.6571364",
"0.6571364",
"0.6571364",
"0.65523195",
"0.65462637",
"0.6540649",
"0.65353644",
"0.65337616",
"0.65326875",
"0.6529268",
"0.6524888",
"0.6523979"
]
| 0.7153199 | 12 |
Returns true if a and b are equal, including if they are both null. Note: In platform versions 1.1 and earlier, this method only worked well if both the arguments were instances of String. | public static boolean equals(CharSequence a, CharSequence b) {
if (a == b) return true;
int length;
if (a != null && b != null && (length = a.length()) == b.length()) {
if (a instanceof String && b instanceof String) {
return a.equals(b);
} else {
for (int i = 0; i < length; i++) {
if (a.charAt(i) != b.charAt(i)) return false;
}
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean equal(final String a, final String b) {\n boolean result;\n if (a == null) {\n result = b == null;\n } else {\n result = a.equals(b);\n }\n return result;\n }",
"public static boolean equal(Object a, Object b) {\r\n\t\tif (a == b) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn a != null && b != null && a.equals(b);\r\n\t}",
"private boolean bothNull(String one, String two) {\n return (one == null && two == null);\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 }",
"@NeededForTesting\n public static boolean areObjectsEqual(Object a, Object b) {\n return a == b || (a != null && a.equals(b));\n }",
"public static <T> boolean equals(T a, T b) {\n return (a == b) || (a != null && a.equals(b));\n }",
"static public boolean testEquality(Object a, Object b) {\r\n\t\tif (a == null && b == null) // undefined == undefined\r\n\t\t\treturn true;\r\n\t\tif ((a == null || b == null) && (a instanceof JSNull || b instanceof JSNull)) // undefined or null\r\n\t\t\treturn true;\r\n\t\tif ((a == null && b instanceof JSNull) || (a == null && b instanceof JSNull)) // anything == undefined\r\n\t\t\treturn true;\r\n\t\tif (a == null || b == null) // anything equals null\r\n\t\t\treturn false;\r\n\t\treturn a.equals(b);\r\n\t}",
"static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }",
"public static boolean equalsOrBothNullOrEmpty(String str1, String str2)\r\n {\r\n if (isNullOrEmpty(str1) != isNullOrEmpty(str2))\r\n {\r\n // One is null or empty and the other is not.\r\n return false;\r\n }\r\n\r\n // Both are null or empty, or both are non-null and non-empty.\r\n return (isNullOrEmpty(str1) || str1.equals(str2));\r\n }",
"public static boolean equalsIgnoreCaseOrBothNull(String str1, String str2)\r\n {\r\n if ((str1 == null) != (str2 == null))\r\n {\r\n // One is null and the other is not.\r\n return false;\r\n }\r\n // Both are null, or both are non-null.\r\n return (str1 == null || str1.equalsIgnoreCase(str2));\r\n }",
"public static boolean isSame(String str1, String str2)\r\n {\r\n if (str1 == null && str2 == null) return true;\r\n if (str1 == null || str2 == null) return false;\r\n return str1.equals(str2);\r\n }",
"public static boolean equalIgnoreCase(final String a, final String b) {\n boolean result;\n if (a == null) {\n result = b == null;\n } else {\n result = a.equalsIgnoreCase(b);\n }\n return result;\n }",
"public static boolean equals(String arg1, String arg2) {\n\t\tboolean equals = false;\n\n\t\tif (arg1 == null || arg2 == null) {\n\t\t\tequals = (arg1 == null && arg2 == null);\n\t\t} else {\n\t\t\tequals = arg1.trim().equals(arg2.trim());\n\t\t}\n\t\treturn equals;\n\n\t}",
"public static boolean isEqual(String str1, String str2) {\n\treturn (null == str1 && null == str2) || (null != str1 && null != str2 && str1.trim().equals(str2.trim()));\n }",
"public static Boolean isEquals(String object1, String object2) {\n if (object1.equalsIgnoreCase(object2)) {\n return true;\n } else if (object1.equalsIgnoreCase(null) && object2.equalsIgnoreCase(null)) {\n return true;\n } else if (object1 == null && object2.equalsIgnoreCase(\"1\")) {\n return false;\n } else if (object1.equalsIgnoreCase(null) && !(object2.equalsIgnoreCase(null))){\n return false;\n }\n return false;\n\n }",
"private boolean notEquals(Object a, Object b)\n {\n if (a != null && b == null)\n return true;\n if (a == null && b != null)\n return true;\n if (a != null && !a.equals(b))\n return true;\n return false;\n }",
"public static boolean equalsIgnoreCaseOrBothNullOrEmpty\r\n (String str1, String str2)\r\n {\r\n if (isNullOrEmpty(str1) != isNullOrEmpty(str2))\r\n {\r\n // One is null or empty and the other is not.\r\n return false;\r\n }\r\n\r\n // Both are null or empty, or both are non-null and non-empty.\r\n return (isNullOrEmpty(str1) || str1.equalsIgnoreCase(str2));\r\n }",
"private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }",
"private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }",
"public static boolean isSameOrBothEmpty(String str1, String str2)\r\n {\r\n if (isEmpty(str1) && isEmpty(str2)) return true;\r\n if (str1 == null || str2 == null) return false;\r\n return str1.equals(str2);\r\n }",
"@SuppressWarnings(\"null\")\n public static boolean charSequencesEqual(CharSequence a, CharSequence b) {\n return charSequencesEqual(a, b, false);\n }",
"public static boolean isEqual(final String string1, final String string2)\n\t{\n\t\tif ((string1 == null) && (string2 == null))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isEmpty(string1) && isEmpty(string2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (string1 == null || string2 == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn string1.equals(string2);\n\t}",
"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}",
"boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }",
"public boolean isEqual(StringNum a, StringNum b) {\n\t\tif(a.getNumber().equalsIgnoreCase(b.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"static boolean equal (String s1, String s2) {\r\n if (s1==errorSignature) return true;\r\n if (s2==errorSignature) return true;\r\n if (s1==null || s1.length()==0)\r\n return s2==null || s2.length()==0;\r\n return s1.equals (s2);\r\n }",
"public boolean stringEquals(String str1, String str2) {\n \tif (Resources.isNull(str1) && Resources.isNull(str2)) {\n \t\treturn true;\n \t} else {\n \t\tif(null != str1){\n \t\t\t//str1 = null 空指针\n \t\t\treturn str1.equals(str2);\n \t\t}else{\n \t\t\treturn str2.equals(str1);\n \t\t}\n\t\t}\n\t}",
"public static boolean timingSafeEquals(String first, String 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 char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }",
"public static boolean preEq(Object a, Object b) {\n\t\treturn a != null && b != null && a.getClass().equals(b.getClass());\n\t}",
"public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }",
"protected boolean safeEquals(Object one, Object two) {\r\n\t\treturn one == null ? two == null : one.equals(two);\r\n\t}",
"@SuppressWarnings(\"null\")\n public static boolean charSequencesEqual(CharSequence a, CharSequence b, boolean ignoreCase) {\n Checks.notNull(\"a\", a);\n Checks.notNull(\"b\", b);\n if ((a == null) != (b == null)) {\n return false;\n } else if (a == b) {\n return true;\n }\n if (a instanceof String && b instanceof String) {\n return ignoreCase ? ((String) a).equalsIgnoreCase((String) b) : a.equals(b);\n }\n @SuppressWarnings(\"null\")\n int length = a.length();\n if (length != b.length()) {\n return false;\n }\n if (!ignoreCase && a.getClass() == b.getClass() && a.getClass() != NoCopySubsequence.class) {\n return a.equals(b);\n }\n if (!ignoreCase && a instanceof String) {\n return ((String) a).contentEquals(b);\n } else if (!ignoreCase && b instanceof String) {\n return ((String) b).contentEquals(a);\n } else {\n if (ignoreCase) {\n return contentEqualsIgnoreCase(a, b);\n }\n return biIterate(a, (index, ch, l, remaining) -> {\n boolean match = ch == b.charAt(index);\n return !match ? BiIterateResult.NO : BiIterateResult.MAYBE;\n }).isOk();\n }\n }",
"public static boolean equalQuick(final Object a, final Object b) {\n \treturn a == b || ((a != null & b != null) && a.equals(b));\n }",
"@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }",
"private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}",
"private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }",
"public static boolean isEqual(String value, String value1) {\n if (((value == null) || (value.trim().length() == 0)) && ((value1 == null) || (value1.trim().length() == 0))) {\n return true;\n } else {\n if (value != null) {\n return value.equalsIgnoreCase(value1);\n } else {\n return value1.equalsIgnoreCase(value);\n }\n }\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 }",
"public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }",
"public static boolean areSame(AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return t1.toString().equals(t2.toString());\n }",
"static public boolean areEqual(Object aThis, Object aThat) {\r\n // System.out.println(\"Object\");\r\n return aThis == null ? aThat == null : aThis.equals(aThat);\r\n }",
"public static boolean isNotEqual(String str1, String str2) {\n\treturn (null == str1 && null != str2) || (null != str1 && null == str2) || (null != str1 && null != str2 && !str1.trim().equals(str2.trim()));\n }",
"public boolean supportsEqualNullSyntax() {\n return true;\n }",
"public static boolean nullSafeEquals(Object o1, Object o2) {\r\n\t\tif(o1 == null && o2 == null) return true; // null == null\r\n\t\tif(o1 == null || o2 == null) return false; // null != non-null\r\n\t\treturn o1.equals(o2); //evaluate\r\n\t}",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\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 }",
"public static boolean equals(String str1, String str2) {\n\t\treturn Objects.equals(str1, str2);\n\t}",
"public boolean checkEquals(DomString other) {\n return other.checkEquals(str, (short) 0, len);\n }",
"public static boolean namesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n if (normalizer.isDelimited(defaultRule, name1)) {\n if (!Objects.equals(name1, name2)) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(name1, name2)) {\n return false;\n }\n }\n return true;\n }",
"public boolean test(String a, String b)\n\t{\n\t\treturn false;\n\t}",
"private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }",
"public static boolean equals(String str1, String str2) {\n return StringUtils.equals(str1, str2);\n }",
"private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }",
"public static boolean isNotEqualIgnoreEmpty(String str1, String str2) {\n\treturn (null == str1 && null != str2) || (null != str1 && null == str2)\n\t\t|| (null != str1 && !str1.trim().isEmpty() && null != str2 && !str2.trim().isEmpty()\n\t\t&& !str1.toUpperCase().trim().equals(str2.toUpperCase().trim()));\n }",
"public static boolean fuzzyEquals(String a, String b) {\n return levenshteinDistance(a, b, EDIT_DISTANCE_THRESHOLD) != INVALID_EDIT_DISTANCE;\n }",
"private boolean equal(Fragment left, Fragment right) {\n return (left != null && right != null && left.getClass().getName().equalsIgnoreCase(right.getClass().getName()));\n }",
"public static boolean equalByteArrays(byte[] lhs, byte[] rhs) {\n if(lhs == null && rhs == null) {\n return true;\n }\n if(lhs == null || rhs == null) {\n return false;\n }\n if(lhs.length != rhs.length) {\n return false;\n }\n for(int i = 0; i < lhs.length; ++i) {\n if(lhs[i] != rhs[i]) {\n return false;\n }\n }\n return true;\n }",
"private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }",
"static public void assertEquals(String expected, String actual) {\n assertEquals(null, expected, actual);\n }",
"public static boolean isEqualIgnoreCase(String str1, String str2) {\n\treturn (null == str1 && null == str2) || (null != str1 && null != str2 && str1.toUpperCase().trim().equals(str2.toUpperCase().trim()));\n }",
"public boolean typeStringsEqual(String uti1, String uti2);",
"public static boolean nullSafeEquals(Object o1, Object o2) {\r\n if (o1 == o2) {\r\n return true;\r\n }\r\n if (o1 == null || o2 == null) {\r\n return false;\r\n }\r\n if (o1.equals(o2)) {\r\n return true;\r\n }\r\n if (o1.getClass().isArray() && o2.getClass().isArray()) {\r\n if (o1 instanceof Object[] && o2 instanceof Object[]) {\r\n return Arrays.equals((Object[]) o1, (Object[]) o2);\r\n }\r\n if (o1 instanceof boolean[] && o2 instanceof boolean[]) {\r\n return Arrays.equals((boolean[]) o1, (boolean[]) o2);\r\n }\r\n if (o1 instanceof byte[] && o2 instanceof byte[]) {\r\n return Arrays.equals((byte[]) o1, (byte[]) o2);\r\n }\r\n if (o1 instanceof char[] && o2 instanceof char[]) {\r\n return Arrays.equals((char[]) o1, (char[]) o2);\r\n }\r\n if (o1 instanceof double[] && o2 instanceof double[]) {\r\n return Arrays.equals((double[]) o1, (double[]) o2);\r\n }\r\n if (o1 instanceof float[] && o2 instanceof float[]) {\r\n return Arrays.equals((float[]) o1, (float[]) o2);\r\n }\r\n if (o1 instanceof int[] && o2 instanceof int[]) {\r\n return Arrays.equals((int[]) o1, (int[]) o2);\r\n }\r\n if (o1 instanceof long[] && o2 instanceof long[]) {\r\n return Arrays.equals((long[]) o1, (long[]) o2);\r\n }\r\n if (o1 instanceof short[] && o2 instanceof short[]) {\r\n return Arrays.equals((short[]) o1, (short[]) o2);\r\n }\r\n }\r\n return false;\r\n }",
"public static boolean isEqual(int a, int b) {\n\t\treturn a == b; //用这种方式写更加简单\n\t}",
"public boolean equals(Object other)\n {\n \t// if the *pointers* are the same, then by golly it must be the same object!\n \tif (this == other)\n \t\treturn true;\n \t\n \t// if the parameter is null or the two objects are not instances of the same class,\n \t// they can't be equal\n \telse if (other == null || this.getClass() != other.getClass())\n \t\treturn false;\n \t\n //Since this class is what the bag will use if it wants\n //to hold strings, we'll use the equals() method in the\n //String class to check for equality\n \telse if ((this.content).equals(((StringContent)other).content))\n return true;\n \t\n else return false;\n }",
"public static boolean isEqual(Integer integer1, Integer integer2) {\n\treturn (null == integer1 && null == integer2)\n\t\t|| (null != integer1 && null != integer2 && integer1 == integer2);\n }",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}",
"public static boolean fullNamesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n // Split multi-part names into individual components and compare\n // each component. If delimited, do case compare.\n String[] names1 = normalizer.splitName(defaultRule, name1);\n String[] names2 = normalizer.splitName(defaultRule, name2);\n if (names1.length != names2.length) {\n return false;\n }\n for (int i = 0; i < names1.length; i++) {\n if (normalizer.isDelimited(defaultRule, names1[i])) {\n if (!Objects.equals(names1[i],names2[i])) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(names1[i],names2[i])) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean isIdentical(Node node1, Node node2)\r\n\t{\r\n\t\tif(node1 == null && node2 == null)\r\n\t\t\treturn true;\r\n\t\tif(node1 == null || node2 == null)\r\n\t\t\treturn false;\r\n\t\treturn (node1.data == node2.data) && isIdentical(node1.left, node2.left) && isIdentical(node1.right, node2.right);\r\n\t}",
"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}",
"static boolean areSame(String expr1, String expr2)\n\t{\n\n\t\t// Create a vector for all operands and\n\t\t// initialize the vector as 0.\n\t\tint[] v = new int[MAX_CHAR];\n\n\t\t// Put signs of all operands in expr1\n\t\teval(expr1, v, true);\n\n\t\t// Subtract signs of operands in expr2\n\t\teval(expr2, v, false);\n\n\t\t// If expressions are same, vector must\n\t\t// be 0.\n\t\tfor (int i = 0; i < MAX_CHAR; i++)\n\t\t\tif (v[i] != 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public final void testNullObjectEquals() {\n assertFalse(testTransaction1.equals(null)); // needed for test\n // pmd doesn't like either way\n }",
"public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }",
"private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}",
"@ExposedMethod(type = MethodType.BINARY)\n\tfinal PyObject shadowstr___eq__(PyObject other) {\n\t\tPyObject result = testEqual(new PyString(getString()), other);\n\t\tif (result != Py.False) {\n\t\t\t// True, or null if str does not know how to compare with other (so we don't\n\t\t\t// either).\n\t\t\treturn result;\n\n\t\t} else if (targets.isEmpty()) {\n\t\t\t// We aren't going to be using our shadow string\n\t\t\treturn Py.False;\n\n\t\t} else {\n\t\t\t// Since we have targets, compare the shadow string with the other object.\n\t\t\tresult = testEqual(shadow, other);\n\t\t\tif (result == Py.True) {\n\t\t\t\t// It matches, so the result is true iff we are in a target context\n\t\t\t\treturn Py.newBoolean(isTarget());\n\t\t\t} else {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}",
"private static boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"public static boolean contentEqualsIgnoreCase(CharSequence a, CharSequence b) {\n int len = a.length();\n if (b.length() != len) {\n return false;\n }\n return biIterate(a, (index, ch, l, remaining) -> {\n boolean match = Character.toLowerCase(ch) == Character.toLowerCase(b.charAt(index));\n return !match ? BiIterateResult.NO : BiIterateResult.MAYBE;\n }).isOk();\n }",
"public static boolean isNotEqualIgnoreCase(String str1, String str2) {\n\treturn (null == str1 && null != str2) || (null != str1 && null == str2)\n\t\t|| (null != str1 && null != str2 && !str1.toUpperCase().trim().equals(str2.toUpperCase().trim()));\n }",
"public static boolean equalsIgnoreCase(String string1, String string2)\r\n {\r\n return string1 == null ? string2 == null : string1.equalsIgnoreCase(string2);\r\n }",
"private static boolean isSameProvider(String provider1, String provider2) {\r\n if (provider1 == null) {\r\n return provider2 == null;\r\n }\r\n return provider1.equals(provider2);\r\n }",
"private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}",
"@Test\n public void testEqualsReturnsFalseOnNullArg() {\n boolean equals = record.equals(null);\n\n assertThat(equals, is(false));\n }",
"public boolean equals(Object other) {\r\n \tthrow new ClassCastException(\"equals on StringValue is not allowed\");\r\n }",
"public static boolean equal(Object o1, Object o2) {\n\t\tif (o1 == null) {\n\t\t\treturn o2 == null;\n\t\t} else {\n\t\t\treturn o1.equals(o2);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\n String str1 = new String(\"abc\");\n String str2 = new String(\"abc\");\n\n System.out.println(str1 == str2);\n System.out.println(str1.equals(str2));\n\n }",
"public boolean equals(String that);",
"@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 }",
"public static void verifyEquals(String arg1, String arg2){\n if (arg1.equals(arg2)){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n }",
"public boolean codepointEquals(StringValue other) {\r\n // avoid conversion of CharSequence to String if values are different lengths\r\n return value.length() == other.value.length() &&\r\n value.toString().equals(other.value.toString());\r\n // It might be better to do character-by-character comparison in all cases; or it might not.\r\n // We do it this way in the hope that string comparison compiles to native code.\r\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private static boolean isSameProvider(String provider1, String provider2) {\n\t\tif (provider1 == null) {\n\t\t\treturn provider2 == null;\n\t\t}\n\t\treturn provider1.equals(provider2);\n\t}",
"@OperationMeta(name = Constants.EQUALITY, opType = OperationType.INFIX)\n public static boolean equals(boolean b1, boolean b2) {\n return b1 == b2;\n }",
"private static boolean isSameProvider(String provider1, String provider2) {\n\t if (provider1 == null) {\n\t return provider2 == null;\n\t }\n\t return provider1.equals(provider2);\n\t}",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"public static boolean isEqual(JexlNode first, JexlNode second) {\n return checkEquality(first, second).isEqual();\n }",
"public static boolean m9055a(Object obj, Object obj2) {\n return obj == null ? obj2 == null : obj.equals(obj2);\n }"
]
| [
"0.8230083",
"0.7414937",
"0.73119944",
"0.72413635",
"0.7229905",
"0.7139157",
"0.71093804",
"0.7052176",
"0.7034455",
"0.701337",
"0.6988968",
"0.69835484",
"0.6961361",
"0.6948196",
"0.682081",
"0.6810944",
"0.6790121",
"0.67475915",
"0.6730817",
"0.66657287",
"0.66529644",
"0.6639624",
"0.6617839",
"0.65518624",
"0.6534597",
"0.65034735",
"0.64690316",
"0.64387906",
"0.6438525",
"0.6375933",
"0.63625926",
"0.63100344",
"0.6298536",
"0.62122774",
"0.62067485",
"0.6194434",
"0.61920494",
"0.61899954",
"0.61534894",
"0.612133",
"0.6113046",
"0.61105424",
"0.6037183",
"0.6033633",
"0.60212",
"0.5998988",
"0.59977734",
"0.59828776",
"0.5981438",
"0.5969338",
"0.5967733",
"0.59586704",
"0.59532285",
"0.59484357",
"0.5947856",
"0.5938776",
"0.5874131",
"0.5835484",
"0.58149624",
"0.5809579",
"0.5796972",
"0.5781957",
"0.57791215",
"0.5763945",
"0.57555914",
"0.5748692",
"0.57128733",
"0.5700439",
"0.5690795",
"0.5685239",
"0.567669",
"0.5675211",
"0.56549025",
"0.56484795",
"0.5648129",
"0.5647007",
"0.5646974",
"0.56462467",
"0.5633835",
"0.5617681",
"0.5611603",
"0.56090987",
"0.56073165",
"0.5597687",
"0.5592483",
"0.5581709",
"0.55730504",
"0.55728626",
"0.5572121",
"0.5564669",
"0.5564669",
"0.5564669",
"0.5564669",
"0.5558046",
"0.555263",
"0.55491817",
"0.5546636",
"0.55353683",
"0.5533363",
"0.55212164"
]
| 0.7350857 | 2 |
Returns whether the given CharSequence contains any printable characters. | public static boolean isGraphic(CharSequence str) {
final int len = str.length();
for (int i = 0; i < len; i++) {
int gc = Character.getType(str.charAt(i));
if (gc != Character.CONTROL && gc != Character.FORMAT && gc != Character.SURROGATE && gc != Character.UNASSIGNED && gc != Character.LINE_SEPARATOR
&& gc != Character.PARAGRAPH_SEPARATOR && gc != Character.SPACE_SEPARATOR) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isAsciiPrintable(char ch) {\n/* 422 */ return (ch >= ' ' && ch < '');\n/* */ }",
"boolean hasChar();",
"boolean hasHasCharacter();",
"public static boolean isNotEmpty(final CharSequence chars) {\r\n\t\treturn !isEmpty(chars);\r\n\t}",
"private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isAscii()\n { \n for (int i=0; i<val.length(); ++i)\n { \n int c = val.charAt(i);\n if (c > 0x7f) return false;\n }\n return true;\n }",
"public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '');\n/* */ }",
"public static boolean isAsciiControl(char ch) {\n/* 441 */ return (ch < ' ' || ch == '');\n/* */ }",
"public static boolean isLetters(CharSequence seq) {\n return is(seq, IS_LETTERS);\n }",
"public boolean containsText(CharSequence s) {\n return content.toString().contains(s);\n }",
"private boolean isDisplayable(int c) {\n return 20 <= c && c <= 126 && c != '\"';\n }",
"public boolean hasSomeCharacters() {\n return result.hasSomeCharacters();\n }",
"public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }",
"boolean getHasCharacter();",
"public static boolean hasText() {\n Transferable data = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);\n try {\n String value = (String)data.getTransferData(DataFlavor.stringFlavor);\n return value != null;\n }\n catch (Exception ignore) {\n return false;\n }\n }",
"public boolean isEmpty()\r\n {\r\n return getCharacters().isEmpty();\r\n }",
"public static boolean isEmpty(CharSequence charSequence) {\n if (charSequence == null) return true;\n return TextUtils.isEmpty(charSequence.toString().trim());\n }",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"static boolean isText(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase LINE_SEPARATOR:\n\t\t\t\tcase PERCENT_SIGN:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"boolean contains(char ch) {\n String check = Character.toString(ch);\n return _chars.contains(check);\n }",
"public static boolean plainText(Comparable value) {\r\n return value != null && value.toString().matches(REGEX_PLAINTEXT);\r\n }",
"public static boolean isPNChars(int ch) {\n return isPNChars_U(ch)\n || isDigit(ch)\n || (ch == '-')\n || ch == 0x00B7\n || r(ch, 0x300, 0x036F)\n || r(ch, 0x203F, 0x2040);\n }",
"public boolean isValidChar(char c) {\n\t\tif (Character.isIdentifierIgnorable(c))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn renderer.getFont().canDisplay(c);\r\n\t}",
"public boolean hasUnicodeRepresentation();",
"public static boolean isNotBlank(final CharSequence chars) {\r\n\t\treturn !isBlank(chars);\r\n\t}",
"public boolean isAllCap() throws PDFNetException {\n/* 605 */ return IsAllCap(this.a);\n/* */ }",
"private boolean isNonCharacter(int c) {\n return (c & 0xFFFE) == 0xFFFE;\n }",
"boolean contains(char ch) {\n for (int i = 0; i < _chars.length(); i += 1) {\n if (_chars.charAt(i) == ch) {\n return true;\n }\n }\n return false;\n }",
"private boolean isAllLetters(String text) {\n for ( int i = 0; i < text.length(); i++){\n if(!(Character.isAlphabetic(text.charAt(i)) || text.charAt(i) == ' '))\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isEmpty(final CharSequence chars) {\r\n\t\treturn chars == null || chars.length() == 0;\r\n\t}",
"private static boolean isPNCharsBase(int ch) {\n return\n r(ch, 'a', 'z') || r(ch, 'A', 'Z') || r(ch, 0x00C0, 0x00D6) || r(ch, 0x00D8, 0x00F6) || r(ch, 0x00F8, 0x02FF) ||\n r(ch, 0x0370, 0x037D) || r(ch, 0x037F, 0x1FFF) || r(ch, 0x200C, 0x200D) || r(ch, 0x2070, 0x218F) ||\n r(ch, 0x2C00, 0x2FEF) || r(ch, 0x3001, 0xD7FF) ||\n // Surrogate pairs\n r(ch, 0xD800, 0xDFFF) ||\n r(ch, 0xF900, 0xFDCF) || r(ch, 0xFDF0, 0xFFFD) ||\n r(ch, 0x10000, 0xEFFFF) ; // Outside the basic plane.\n }",
"private static boolean isPNChars(int ch) {\n return isPNChars_U(ch) || isDigit(ch) || ( ch == '-' ) || ch == 0x00B7 || r(ch, 0x300, 0x036F) || r(ch, 0x203F, 0x2040) ;\n }",
"boolean contains(char c) {\n for (char x : _chars) {\n if (x == c) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TEXT$18) != 0;\n }\n }",
"boolean hasScStr();",
"private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }",
"public static boolean isBlank(final CharSequence chars) {\r\n\t\tif (isEmpty(chars)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tint stringLength = chars.length();\r\n\t\tfor (int i = 0; i < stringLength; i++) {\r\n\t\t\tif (!Character.isWhitespace(chars.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}",
"private boolean isAllChars(String fieldVal){\r\n // Get rid of all whitespace from the given string\r\n String val = fieldVal.replaceAll(\"\\\\s\", \"\").trim();\r\n // Check each character in the string to determine if it is a digit or not\r\n for (int i=0; i < val.length(); i++){\r\n // if we find a digit return false\r\n if (Character.isDigit(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n // if we get here then all characters in the string are letters\r\n return true;\r\n }",
"public static boolean isAsciiAlphanumeric(char ch) {\n/* 536 */ return (isAsciiAlpha(ch) || isAsciiNumeric(ch));\n/* */ }",
"public static boolean isAsciiAlpha(char ch) {\n/* 460 */ return (isAsciiAlphaUpper(ch) || isAsciiAlphaLower(ch));\n/* */ }",
"public static boolean hasSpecial(String characters ){\n \n // Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n // Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()); \n \n }",
"private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"boolean hasText();",
"boolean hasText();",
"boolean hasText();",
"boolean hasText();",
"public static boolean hasLength(CharSequence str) {\n\t\treturn (str != null && str.length() > 0);\n\t}",
"boolean hasCsStr();",
"public boolean hasCharactersLeft() {\n\t\treturn world.getAllCharacterOfOwner(this).size() > 0;\n\t}",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"public boolean isEmpty() {\n\t\tif (lettersInPlay.size() > 0)\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean isChar(char c) \n\t{\n\t\tif (this.numBytes==1 && (charBytes[0]==c))\n\t\t\treturn true; \n\t\treturn false; \n\t}",
"private static boolean isTashkeelChar(char ch) {\n return ( ch >='\\u064B' && ch <= '\\u0652' );\n }",
"public boolean contains(char ch)\n\t{\n\t\treturn str.contains(Character.toString(ch));\n\t}",
"public static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"public static boolean hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }",
"public static boolean isEmpty(CharSequence str) {\r\n\t\tif (str == null || str.length() == 0) return true;\r\n\t\telse return false;\r\n\t}",
"public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }",
"public static boolean isATGC(final CharSequence c) {\n\tif(c==null || c.length()==0) return false;\n\tfor(int i=0;i< c.length();i++) if(!isATGC(c.charAt(i))) return false;\n\treturn true;\n\t}",
"public static boolean hasSpecialAndLetters(String characters ){\n \n Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()==true || hasLetter.find()==true); \n \n }",
"private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }",
"public static boolean isEmpty(CharSequence str) {\n\t\treturn (str == null || str.toString().trim().length() == 0);\n\t}",
"public static boolean isUniqueChars(String str) {\n\t if(str.length() > 128) return false;\n\t \n\t //created hash table boolean to flag duplicate characters\n\t boolean [] check = new boolean [128];\n\t \n\t //run a for look in order to iterate through the string.\n for(int i = 0; i < str.length(); i++){\n //convert the characters of the string array into integers\n int val = str.charAt(i);\n //check the hash table for past characters seen, there are 128 ascii codes\n\t if(check[val]) return false;\n\t //turn on the true flag for characters you are seeing\n\t check[val] = true;\n\t }\n\t \n\t //pass the hash table therefore it is unique and true;\n\t return true;\n\n\t}",
"public static boolean isEmpty(CharSequence str) {\r\n if (str == null || str.length() == 0)\r\n return true;\r\n else\r\n return false;\r\n }",
"public static boolean isAlpha(String text) {\r\n\t\treturn text != null && text.trim().length() > 0\r\n\t\t\t\t&& text.replaceAll(\" \", \"\").chars().anyMatch(Character::isLetter);\r\n\t}",
"public static boolean isUniqueChars(String str) {\n if (str.length() > 128) return false;\n\n boolean[] charSet = new boolean[128];\n for (char c : str.toCharArray()) {\n if (charSet[c]) return false;\n charSet[c] = true;\n }\n\n return true;\n }",
"public boolean isUniqueChars(String str) {\n\t\tif (str.length() > 128) return false;\n\t\tboolean[] char_set = new boolean[128];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint val = str.charAt(i);\n\t\t\tif (char_set[val]) return false;\n\t\t\tchar_set[val] = true;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean hasSpecial(){\n return (alg.containSpecial(input.getText().toString()));\n }",
"private boolean containsAlphanumChars(String[] text, int startIndex, int endIndex) {\n for(int i=startIndex; i<=endIndex; i++){\n String token = text[i];\n String normalizedToken = BaselineModel.normalizeToken(token);\n \n if(normalizedToken.length()==0)\n return false;\n }\n return true;\n }",
"boolean isText(Object object);",
"public static boolean isBlank(CharSequence cs) {\n if (cs == null || cs.length() == 0) {\n return true;\n }\n\n int strLen = cs.length();\n for (int i = 0; i < strLen; ++i) {\n if (!Character.isWhitespace(cs.charAt(i))) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isText(ByteBuf buf, int index, int length, Charset charset) {\n ObjectUtil.checkNotNull(buf, (String)\"buf\");\n ObjectUtil.checkNotNull(charset, (String)\"charset\");\n int maxIndex = buf.readerIndex() + buf.readableBytes();\n if (index < 0) throw new IndexOutOfBoundsException((String)(\"index: \" + index + \" length: \" + length));\n if (length < 0) throw new IndexOutOfBoundsException((String)(\"index: \" + index + \" length: \" + length));\n if (index > maxIndex - length) {\n throw new IndexOutOfBoundsException((String)(\"index: \" + index + \" length: \" + length));\n }\n if (charset.equals((Object)CharsetUtil.UTF_8)) {\n return ByteBufUtil.isUtf8((ByteBuf)buf, (int)index, (int)length);\n }\n if (charset.equals((Object)CharsetUtil.US_ASCII)) {\n return ByteBufUtil.isAscii((ByteBuf)buf, (int)index, (int)length);\n }\n CharsetDecoder decoder = CharsetUtil.decoder((Charset)charset, (CodingErrorAction)CodingErrorAction.REPORT, (CodingErrorAction)CodingErrorAction.REPORT);\n try {\n if (buf.nioBufferCount() == 1) {\n decoder.decode((ByteBuffer)buf.nioBuffer((int)index, (int)length));\n return true;\n }\n ByteBuf heapBuffer = buf.alloc().heapBuffer((int)length);\n try {\n heapBuffer.writeBytes((ByteBuf)buf, (int)index, (int)length);\n decoder.decode((ByteBuffer)heapBuffer.internalNioBuffer((int)heapBuffer.readerIndex(), (int)length));\n return true;\n }\n finally {\n heapBuffer.release();\n }\n }\n catch (CharacterCodingException ignore) {\n return false;\n }\n }",
"public static boolean isEmpty(CharSequence target) {\n\t\treturn isEmpty(target, false);\n\t}",
"private boolean isValid() {\n return Character.isLetter(c);\n }",
"private Boolean isRaw(PrintDocument printDocument) {\n return printDocument.getRawContent() != null && !printDocument.getRawContent().isEmpty();\n }",
"boolean hasContents();",
"boolean hasContents();",
"private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"public static boolean hasSpecialCharacters(String s) {\n if (s == null || s.trim().isEmpty()) {\n //if the string is empty return true\n return true;\n }\n //create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma\n Pattern p = Pattern.compile(\"[^A-Za-z0-9. ,]^-\");\n Matcher m = p.matcher(s);\n // boolean b = m.matches();\n boolean b = m.find();\n if (b){\n //return true, there is special characters\n return true;\n } else {\n //return false, there is no special characters\n return false;\n }\n }",
"private static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean isEscaped(final char[] chars, final int cursor)\n {\n Assert.notNull(chars, \"Character input array must not be null.\");\n Assert.assertTrue(cursor >= 0, \"Start position must be greater than zero.\");\n Assert.assertTrue(cursor < (chars.length),\n \"Start position must be within the array upper bound.\");\n\n if ((cursor > 0) && (chars[cursor - 1] == ESCAPE_CHAR))\n {\n if ((cursor == 1) || ((cursor > 1) && (chars[cursor - 2] != ESCAPE_CHAR)))\n {\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean contains(Charset cs) {\n\t\treturn false;\n\t}",
"private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isBlank(CharSequence seq) {\n if (seq == null || seq.length() == 0) {\n return true;\n }\n return is(seq, Character::isWhitespace);\n }",
"public static boolean isPNCharsBase(int ch) {\n // PN_CHARS_BASE ::= [A-Z] | [a-z] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x02FF] |\n // [#x0370-#x037D] | [#x037F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] |\n // [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] |\n // [#x10000-#xEFFFF]\n return r(ch, 'a', 'z')\n || r(ch, 'A', 'Z')\n || r(ch, 0x00C0, 0x00D6)\n || r(ch, 0x00D8, 0x00F6)\n || r(ch, 0x00F8, 0x02FF)\n || r(ch, 0x0370, 0x037D)\n || r(ch, 0x037F, 0x1FFF)\n || r(ch, 0x200C, 0x200D)\n || r(ch, 0x2070, 0x218F)\n || r(ch, 0x2C00, 0x2FEF)\n || r(ch, 0x3001, 0xD7FF)\n || r(ch, 0xF900, 0xFDCF)\n || r(ch, 0xFDF0, 0xFFFD)\n || r(ch, 0x10000, 0xEFFFF); // Outside the basic plain.\n }",
"private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }",
"public static boolean hasNextChar() {\n \t boolean result = scanner.hasNext();\n \t return result;\n }",
"@Test\n public void shouldNotFindSubstringWithMismatchedFirstCharacterAtTheEndOfThString() {\n // Given\n String string = \"123ABc\";\n CharSequence charSequence = new StringBuilder(\"cBc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertFalse(containsCharSequence);\n }",
"public boolean hasText() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private static boolean /*RiotChars.*/isPN_LOCAL_ESC(char ch) {\n switch (ch) {\n case '\\\\': case '_': case '~': case '.': case '-': case '!': case '$':\n case '&': case '\\'': case '(': case ')': case '*': case '+': case ',':\n case ';': case '=': case '/': case '?': case '#': case '@': case '%':\n return true ;\n default:\n return false ;\n }\n }",
"public Boolean hasSpecialCharacters(String string){\n //Check is the string has anything other than a-z and 0-9 case insensitive\n return Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE)\n .matcher(string)\n .find();\n }",
"public boolean hasText() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasText() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public static boolean onlyDigitsAscii(String input) {\n if (input.length() != 0) {\n int i = 0;\n while (i < input.length()) {\n int ascii = (int) input.charAt(i);\n if (48 <= ascii && ascii <= 57) {\n i++;\n } else {\n return false;\n }\n }\n }\n return false;\n }",
"static boolean containsInvalidCharacters(String topic) {\n Matcher matcher = INVALID_CHARS_PATTERN.matcher(topic);\n return matcher.find();\n }",
"private static boolean hasUnsafeChars(String s) {\n for (int i = 0; i < s.length(); ++i) {\n char c = s.charAt(i);\n if (Character.isLetter(c) || c == '.')\n continue;\n else\n return true;\n }\n return false;\n }",
"public static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0 || \"null\".equals(str))\n return true;\n else\n return false;\n }",
"public boolean isTextValid(CharSequence charSequence) {\n if (TextUtils.isEmpty(charSequence)) {\n return false;\n }\n try {\n int parseInt = Integer.parseInt(charSequence.toString());\n return parseInt >= 3 && parseInt <= 3600;\n } catch (NumberFormatException unused) {\n return false;\n }\n }"
]
| [
"0.72271466",
"0.6412164",
"0.6233662",
"0.60964566",
"0.6088936",
"0.60860133",
"0.6043375",
"0.58166814",
"0.58081347",
"0.5797511",
"0.5791638",
"0.57773995",
"0.57684445",
"0.5742333",
"0.57398516",
"0.57376176",
"0.57268876",
"0.57137465",
"0.5708671",
"0.5688226",
"0.5650939",
"0.56387794",
"0.56095815",
"0.5604601",
"0.55867535",
"0.55820847",
"0.55650985",
"0.54876083",
"0.5486633",
"0.5477793",
"0.54613453",
"0.54564446",
"0.5452549",
"0.5445899",
"0.53935546",
"0.5371349",
"0.53695244",
"0.53650224",
"0.53579503",
"0.5343103",
"0.53361344",
"0.5329952",
"0.53137517",
"0.5312796",
"0.5291835",
"0.5291835",
"0.5291835",
"0.5291835",
"0.52821934",
"0.52768177",
"0.5268755",
"0.5253278",
"0.5246097",
"0.52450687",
"0.52411425",
"0.5240962",
"0.52389985",
"0.523773",
"0.5235575",
"0.5226558",
"0.5207241",
"0.51976126",
"0.519656",
"0.5192929",
"0.5190439",
"0.518637",
"0.5178149",
"0.51705146",
"0.5162983",
"0.51532555",
"0.5125112",
"0.5115643",
"0.5115349",
"0.51047605",
"0.5098063",
"0.50829",
"0.5081688",
"0.5081457",
"0.5081457",
"0.5075661",
"0.5072186",
"0.50721157",
"0.5068878",
"0.50626135",
"0.50530696",
"0.5045905",
"0.5043496",
"0.5039699",
"0.50385183",
"0.50379103",
"0.50308526",
"0.50271237",
"0.50259286",
"0.50150144",
"0.50150144",
"0.5014722",
"0.50020176",
"0.5001056",
"0.49937466",
"0.4992899"
]
| 0.54858345 | 29 |
Returns whether this character is a printable character. | public static boolean isGraphic(char c) {
int gc = Character.getType(c);
return gc != Character.CONTROL && gc != Character.FORMAT && gc != Character.SURROGATE && gc != Character.UNASSIGNED && gc != Character.LINE_SEPARATOR
&& gc != Character.PARAGRAPH_SEPARATOR && gc != Character.SPACE_SEPARATOR;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isAsciiPrintable(char ch) {\n/* 422 */ return (ch >= ' ' && ch < '');\n/* */ }",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean getHasCharacter();",
"boolean hasChar();",
"boolean hasHasCharacter();",
"private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean isChar(char c) \n\t{\n\t\tif (this.numBytes==1 && (charBytes[0]==c))\n\t\t\treturn true; \n\t\treturn false; \n\t}",
"public boolean getHasCharacter() {\n return hasCharacter_;\n }",
"public boolean getHasCharacter() {\n return hasCharacter_;\n }",
"static boolean isText(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase LINE_SEPARATOR:\n\t\t\t\tcase PERCENT_SIGN:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public static boolean isAsciiControl(char ch) {\n/* 441 */ return (ch < ' ' || ch == '');\n/* */ }",
"public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '');\n/* */ }",
"public boolean isValidChar(char c) {\n\t\tif (Character.isIdentifierIgnorable(c))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn renderer.getFont().canDisplay(c);\r\n\t}",
"public boolean isAscii()\n { \n for (int i=0; i<val.length(); ++i)\n { \n int c = val.charAt(i);\n if (c > 0x7f) return false;\n }\n return true;\n }",
"private boolean isDisplayable(int c) {\n return 20 <= c && c <= 126 && c != '\"';\n }",
"private boolean isNonCharacter(int c) {\n return (c & 0xFFFE) == 0xFFFE;\n }",
"public boolean hasUnicodeRepresentation();",
"void isPrintable(boolean b) {\n\t\tm.isPrintable=b;\n\t}",
"static boolean isCharacter(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase CHARACTER:\n\t\t\t\tcase CHARACTER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean isEchoCharIsSet() {\n return echoCharIsSet;\n }",
"public static boolean isPNChars(int ch) {\n return isPNChars_U(ch)\n || isDigit(ch)\n || (ch == '-')\n || ch == 0x00B7\n || r(ch, 0x300, 0x036F)\n || r(ch, 0x203F, 0x2040);\n }",
"public boolean isCharacter(char a) {\n if (a >= 'a' && a <= 'z' || a >= 'A' && a <= 'Z' || a >= '0' && a <= '9' || a == '_')\n return true;\n return false;\n }",
"public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }",
"public static boolean isSpace(int c) {\n return c <= 0x20 && (CHARS[c] & MASK_SPACE) != 0;\n }",
"public boolean isCharacterDevice() {\n return linkFlag == LF_CHR;\n }",
"private static boolean isPNChars(int ch) {\n return isPNChars_U(ch) || isDigit(ch) || ( ch == '-' ) || ch == 0x00B7 || r(ch, 0x300, 0x036F) || r(ch, 0x203F, 0x2040) ;\n }",
"private boolean isValid() {\n return Character.isLetter(c);\n }",
"public static boolean isPunctuation(char c) {\n if (puncInitialized && c < 128) {\n return PUNC.get((int) c);\n }\n return !(Character.isLetter(c) || Character.isDigit(c)\n || Character.isWhitespace(c) || Character.isISOControl(c)\n || Character.UnicodeBlock.of(c) == Character.UnicodeBlock.LETTERLIKE_SYMBOLS);\n }",
"public static boolean hasNextChar() {\n \t boolean result = scanner.hasNext();\n \t return result;\n }",
"public boolean canBuildPrinter() {\r\n return isPrinter(getFormatter());\r\n }",
"public boolean isAllCap() throws PDFNetException {\n/* 605 */ return IsAllCap(this.a);\n/* */ }",
"public boolean isEmpty()\r\n {\r\n return getCharacters().isEmpty();\r\n }",
"private static boolean isPNCharsBase(int ch) {\n return\n r(ch, 'a', 'z') || r(ch, 'A', 'Z') || r(ch, 0x00C0, 0x00D6) || r(ch, 0x00D8, 0x00F6) || r(ch, 0x00F8, 0x02FF) ||\n r(ch, 0x0370, 0x037D) || r(ch, 0x037F, 0x1FFF) || r(ch, 0x200C, 0x200D) || r(ch, 0x2070, 0x218F) ||\n r(ch, 0x2C00, 0x2FEF) || r(ch, 0x3001, 0xD7FF) ||\n // Surrogate pairs\n r(ch, 0xD800, 0xDFFF) ||\n r(ch, 0xF900, 0xFDCF) || r(ch, 0xFDF0, 0xFFFD) ||\n r(ch, 0x10000, 0xEFFFF) ; // Outside the basic plane.\n }",
"public static boolean isCharacter(String word) {\r\n\t\treturn word.length() == 1;\r\n\t}",
"public boolean getCharCounter() {\n return getPolymerElement().getCharCounter();\n }",
"public boolean isOccupied() {\r\n\treturn character != null;\r\n }",
"public boolean characterInput(char c);",
"public boolean isSerif() throws PDFNetException {\n/* 572 */ return IsSerif(this.a);\n/* */ }",
"private static boolean isHex(char p_char) {\n return (p_char <= 'f' && (fgLookupTable[p_char] & ASCII_HEX_CHARACTERS) != 0);\n }",
"private static boolean isTashkeelChar(char ch) {\n return ( ch >='\\u064B' && ch <= '\\u0652' );\n }",
"public static boolean isSurrogateHigh(char c) {\n return c >= '\\ud800' && c <= '\\udbff';\n }",
"public static boolean isAsciiAlpha(char ch) {\n/* 460 */ return (isAsciiAlphaUpper(ch) || isAsciiAlphaLower(ch));\n/* */ }",
"private boolean alpha() {\r\n return letter() || CATS(Nd) || CHAR('-') || CHAR('_');\r\n }",
"public boolean isHex()\n {\n return hex;\n }",
"private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPrintHeader()\n\t{\n\t\treturn printHeader;\n\t}",
"public static boolean isGraphic(CharSequence str) {\r\n\t\tfinal int len = str.length();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tint gc = Character.getType(str.charAt(i));\r\n\t\t\tif (gc != Character.CONTROL && gc != Character.FORMAT && gc != Character.SURROGATE && gc != Character.UNASSIGNED && gc != Character.LINE_SEPARATOR\r\n\t\t\t\t&& gc != Character.PARAGRAPH_SEPARATOR && gc != Character.SPACE_SEPARATOR) {\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 boolean isShowHexByte() {\r\n return showHexByte;\r\n }",
"public abstract boolean isStarterChar(char c);",
"@Override\n public boolean isUnicode()\n {\n return true;\n }",
"public static boolean whiteSpace(char c) {\n switch (c) {\n case ' ':\n case '\\n':\n case '\\f':\n case '\\t':\n case '\\r':\n return true;\n default:\n return false;\n }\n }",
"public boolean hasSomeCharacters() {\n return result.hasSomeCharacters();\n }",
"public boolean accept(final char c) {\n return Character.isDigit(c) || c == ' ';\n }",
"public static boolean isContent(int c) {\n return (c < 0x10000 && (CHARS[c] & MASK_CONTENT) != 0) ||\n (0x10000 <= c && c <= 0x10FFFF);\n }",
"public static boolean hasText() {\n Transferable data = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);\n try {\n String value = (String)data.getTransferData(DataFlavor.stringFlavor);\n return value != null;\n }\n catch (Exception ignore) {\n return false;\n }\n }",
"private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isPNCharsBase(int ch) {\n // PN_CHARS_BASE ::= [A-Z] | [a-z] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x02FF] |\n // [#x0370-#x037D] | [#x037F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] |\n // [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] |\n // [#x10000-#xEFFFF]\n return r(ch, 'a', 'z')\n || r(ch, 'A', 'Z')\n || r(ch, 0x00C0, 0x00D6)\n || r(ch, 0x00D8, 0x00F6)\n || r(ch, 0x00F8, 0x02FF)\n || r(ch, 0x0370, 0x037D)\n || r(ch, 0x037F, 0x1FFF)\n || r(ch, 0x200C, 0x200D)\n || r(ch, 0x2070, 0x218F)\n || r(ch, 0x2C00, 0x2FEF)\n || r(ch, 0x3001, 0xD7FF)\n || r(ch, 0xF900, 0xFDCF)\n || r(ch, 0xFDF0, 0xFFFD)\n || r(ch, 0x10000, 0xEFFFF); // Outside the basic plain.\n }",
"private boolean isPrivateUse(char c) {\n return c >= '\\uE000' && c <= '\\uF8FF';\n }",
"public boolean isEnabledPrint() {\n return enabledPrint;\n }",
"public static boolean isAsciiAlphanumeric(char ch) {\n/* 536 */ return (isAsciiAlpha(ch) || isAsciiNumeric(ch));\n/* */ }",
"boolean contains(char ch) {\n String check = Character.toString(ch);\n return _chars.contains(check);\n }",
"public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }",
"boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }",
"final public boolean isEqual(final char c, final char other) {\n return Comparators.EQUAL == this.compare(c, other);\n }",
"public boolean isCharged(){\n\t\treturn IS_CHARGED;\n\t}",
"private static boolean /*RiotChars.*/isPN_LOCAL_ESC(char ch) {\n switch (ch) {\n case '\\\\': case '_': case '~': case '.': case '-': case '!': case '$':\n case '&': case '\\'': case '(': case ')': case '*': case '+': case ',':\n case ';': case '=': case '/': case '?': case '#': case '@': case '%':\n return true ;\n default:\n return false ;\n }\n }",
"public void print(char someChar) {\r\n print(someChar + \"\");\r\n }",
"boolean isNoChar() {\n return array[0] == -1;\n }",
"private boolean isSpace() {\n return (char) c == ' ';\n }",
"private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }",
"public boolean isPrintBlankLine()\n\t{\n\t\treturn printBlankLine;\n\t}",
"TypePrinter print(char c);",
"public static boolean isIUPAC(final char base) {\n\tswitch(base) {\n\t case 'A':\n\t case 'C':\n\t case 'G':\n\t case 'T':\n\t case 'U':\n\t case 'R':\n\t case 'Y':\n\t case 'S':\n\t case 'W':\n\t case 'K':\n\t case 'M':\n\t case 'B':\n\t case 'D':\n\t case 'H':\n\t case 'V':\n\t case 'N':\n\t //\n\t case 'a':\n\t case 'c':\n\t case 'g':\n\t case 't':\n\t case 'u':\n\t case 'r':\n\t case 'y':\n\t case 's':\n\t case 'w':\n\t case 'k':\n\t case 'm':\n\t case 'b':\n\t case 'd':\n\t case 'h':\n\t case 'v':\n\t case 'n': return true;\n\t default: return false;\n\t\t}\n\t}",
"private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isEncodingAlpha();",
"private static boolean isReservedCharacter(char p_char) {\n return (p_char <= ']' && (fgLookupTable[p_char] & RESERVED_CHARACTERS) != 0);\n }",
"private static boolean isPathCharacter (char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_PATH_CHARACTER) != 0);\n }",
"public static boolean isAsciiNumeric(char ch) {\n/* 517 */ return (ch >= '0' && ch <= '9');\n/* */ }",
"private\n static\n boolean\n isHexChar( char ch )\n {\n return ( ch >= '0' && ch <= '9' ) ||\n ( ch >= 'a' && ch <= 'f' ) ||\n ( ch >= 'A' && ch <= 'F' );\n }",
"public Character charRep() {\n return this.typeChar;\n }",
"public boolean isCharClass (final Macros macros)\n {\n RegExp1 unary;\n RegExp2 binary;\n\n switch (type)\n {\n case sym.CHAR:\n case sym.CHAR_I:\n case sym.CCLASS:\n case sym.CCLASSNOT:\n return true;\n\n case sym.BAR:\n binary = (RegExp2) this;\n return binary.r1.isCharClass (macros) && binary.r2.isCharClass (macros);\n\n case sym.MACROUSE:\n unary = (RegExp1) this;\n return macros.getDefinition ((String) unary.content).isCharClass (macros);\n\n default:\n return false;\n }\n }",
"public static boolean isWhitespace(char c) {\r\n\r\n\t\tif (c == 32) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public Builder setHasCharacter(boolean value) {\n bitField0_ |= 0x00000008;\n hasCharacter_ = value;\n onChanged();\n return this;\n }",
"private static boolean isUnreservedCharacter(char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_UNRESERVED_MASK) != 0);\n }",
"boolean hasByte();",
"public static boolean isCharacterStreamAssignable(int jdbcType) {\r\n // currently, we support the same types for ASCII streams and\r\n // character streams\r\n return isAsciiStreamAssignable(jdbcType);\r\n }",
"public boolean isWhitespace(char testChar) {\n switch (testChar) {\n case ' ':\n case '\\t':\n case '\\r':\n case '\\n':\n return true;\n default:\n return false;\n }\n }",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"public static boolean isDigit(char c)\n {\n return (c >= '0' && c <= '9');\n }",
"@Override\r\n public boolean isText ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isText();\r\n }",
"private boolean isControlChar(char keyCode){\n\t\tint code = keyCode;\n\t\treturn (code == KeyCodes.KEY_ALT || code == KeyCodes.KEY_BACKSPACE ||\n\t\t\t\tcode == KeyCodes.KEY_CTRL || code == KeyCodes.KEY_DELETE ||\n\t\t\t\tcode == KeyCodes.KEY_DOWN || code == KeyCodes.KEY_END ||\n\t\t\t\tcode == KeyCodes.KEY_ENTER || code == KeyCodes.KEY_ESCAPE ||\n\t\t\t\tcode == KeyCodes.KEY_HOME || code == KeyCodes.KEY_LEFT ||\n\t\t\t\tcode == KeyCodes.KEY_PAGEDOWN || code == KeyCodes.KEY_PAGEUP ||\n\t\t\t\tcode == KeyCodes.KEY_RIGHT || code == KeyCodes.KEY_SHIFT ||\n\t\t\t\tcode == KeyCodes.KEY_TAB || code == KeyCodes.KEY_UP);\n\t}",
"private static boolean m44512a(char c) {\n return c == 10 || c == 13 || c == 9 || c == ' ';\n }",
"private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }",
"public boolean isSprinting ( ) {\n\t\treturn extract ( handle -> handle.isSprinting ( ) );\n\t}",
"private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }",
"private static boolean isHex(char c) {\n\t\tboolean result = false;\n\t\tif (Character.isDigit(c)) {\n\t\t\tresult = true;\n\t\t}\n\t\telse if (c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f') {\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"public boolean isLetter(char ch) {\n\t\treturn Character.isLetter(ch) || ch == '.';\n\t}",
"public static boolean IsECMAWordChar(char ch)\n\t{\n\t\treturn CharInClass(ch, ECMAWordClass);\n\t}"
]
| [
"0.7652953",
"0.6595585",
"0.6587181",
"0.6566465",
"0.6553348",
"0.6510602",
"0.6477379",
"0.64371073",
"0.64174294",
"0.63877416",
"0.63220745",
"0.62938255",
"0.62745905",
"0.6213782",
"0.61543906",
"0.6137997",
"0.6084774",
"0.60487616",
"0.5843449",
"0.57884705",
"0.57310545",
"0.5692856",
"0.56782496",
"0.5640828",
"0.5601359",
"0.559169",
"0.5588485",
"0.55682933",
"0.55587685",
"0.5556917",
"0.5536378",
"0.5520914",
"0.54990613",
"0.5484187",
"0.54760283",
"0.5471567",
"0.5469445",
"0.5466575",
"0.5460292",
"0.5449964",
"0.5449768",
"0.5441407",
"0.54403895",
"0.54346144",
"0.5401191",
"0.53910667",
"0.53676903",
"0.53625655",
"0.5358899",
"0.53474396",
"0.534091",
"0.53286093",
"0.5319216",
"0.5310786",
"0.5293225",
"0.5284482",
"0.52826554",
"0.5273074",
"0.52674896",
"0.52638245",
"0.5257079",
"0.525318",
"0.5252938",
"0.5252914",
"0.52436316",
"0.52432925",
"0.52330035",
"0.5227815",
"0.5224497",
"0.5212026",
"0.52116215",
"0.5194338",
"0.5190648",
"0.51840335",
"0.51832134",
"0.5182467",
"0.51794636",
"0.51753896",
"0.51729304",
"0.51646",
"0.5155008",
"0.514842",
"0.5110611",
"0.5100363",
"0.50934416",
"0.5092728",
"0.5087377",
"0.5086097",
"0.5079105",
"0.50765985",
"0.50667167",
"0.5060673",
"0.50563586",
"0.5056213",
"0.5055572",
"0.50545245",
"0.5043427",
"0.5042607",
"0.5041769",
"0.50359815"
]
| 0.6122136 | 16 |
Returns whether the given CharSequence contains only digits. | public static boolean isDigitsOnly(CharSequence str) {
final int len = str.length();
for (int i = 0; i < len; i++) {
if (!Character.isDigit(str.charAt(i))) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isDigits(CharSequence seq) {\n return is(seq, IS_DIGIT);\n }",
"public static boolean isDigits(String value) {\n return value.matches(\"[0-9]+\");\n }",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"public boolean isDigit(String s)\r\n\t\t{\n\t\t\tfor(char c : s.toCharArray())\r\n\t\t\t{\r\n\t\t\t if(!(Character.isDigit(c)))\r\n\t\t\t {\r\n\t\t\t return false;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t//return false;\r\n\t\t\treturn true;\r\n\t\t}",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"public static boolean containsOnlyDigitsV1(String str) {\n\n if (str == null || str.isBlank()) {\n // or throw IllegalArgumentException\n return false;\n }\n \n for (int i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i))) {\n return false;\n }\n }\n \n return true;\n }",
"private boolean containsDigit(String expr) {\r\n for (int i = 0; i < expr.length(); i++) {\r\n if (Character.isDigit(expr.charAt(i))) {\r\n return true;\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public static boolean onlyDigitsRegex(String input) {\n if (input.length() == 0) {\n return false;\n } else {\n return input.matches(\"^[0-9]*$\");\n }\n }",
"public static boolean isDigit(char c)\n {\n return (c >= '0' && c <= '9');\n }",
"public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}",
"public boolean checkDigits(String password) {\n return password.matches(\".*\\\\d.*\");\n }",
"private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }",
"private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }",
"public boolean isContainNumericalDigits(String password) {\n\t\treturn password.matches(\".*[0-9].*\");\n\t}",
"public static final boolean isDigit(char ch) {\n return ch >= '0' && ch <= '9';\n }",
"public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}",
"public static boolean isNumeric(String str)\n {\n return str.chars().allMatch( Character::isDigit );\n }",
"private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}",
"private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }",
"private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }",
"public static boolean isDigit(char c) {\r\n\r\n\t\tif ((c >= 48 && c <= 57)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"public boolean checkDel (TextView tv){\n String s = expressionView.getText().toString();\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n return true;\n }\n }\n return false;\n }",
"private boolean isDigit(char ch) {\n if ( (ch >= '0') && (ch <= '9')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }",
"public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }",
"public static boolean onlyDigitsAscii(String input) {\n if (input.length() != 0) {\n int i = 0;\n while (i < input.length()) {\n int ascii = (int) input.charAt(i);\n if (48 <= ascii && ascii <= 57) {\n i++;\n } else {\n return false;\n }\n }\n }\n return false;\n }",
"public static boolean hasDigit(String password) throws NoDigitException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[0-9].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoDigitException();\r\n return true;\r\n }",
"public Boolean checkDigids(String text) {\n String regex = \"^(\\\\d+)$\";\n return text.matches(regex);\n }",
"public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }",
"public static boolean onlyDigitsApi(String input) {\n if (input.length() == 0) {\n return false;\n } else {\n try {\n Long.parseLong(input);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }\n }",
"public static boolean containsOnlyNumbers(String string) {\n\n\t\tboolean letterFound = false;\n\n\t\tfor (char ch : string.toCharArray()) {\n\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\tletterFound = true;\n\t\t\t}\n\t\t\tif (letterFound) {\n\t\t\t\t//Si tenemos letras retornar false\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//Si no se encuentran letras, retornar true\n\t\treturn true;\n\t}",
"private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }",
"private boolean isAllChars(String fieldVal){\r\n // Get rid of all whitespace from the given string\r\n String val = fieldVal.replaceAll(\"\\\\s\", \"\").trim();\r\n // Check each character in the string to determine if it is a digit or not\r\n for (int i=0; i < val.length(); i++){\r\n // if we find a digit return false\r\n if (Character.isDigit(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n // if we get here then all characters in the string are letters\r\n return true;\r\n }",
"public static Boolean isNumeric(String text)\n {\n //This checks for negative numbers...\n if (text.startsWith(\"-\"))\n {\n text = text.substring(1, text.length());\n }\n\n for (char c : text.toCharArray())\n {\n if (!Character.isDigit(c))\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}",
"public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }",
"public static boolean isDigit(final String str) {\n if (str == null || str.length() == 0) {\n return false;\n }\n\n for (var i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i)) && str.charAt(i) != '.') {\n return false;\n }\n }\n return true;\n }",
"public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }",
"private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean isNumber(String val){\n\t\t\n\t\tfor(int i=0;i<val.length();i++){\n\t\t\tif((val.charAt(i) >= '0' && val.charAt(i) <= '9') || (val.charAt(i) >= 'A' && val.charAt(i) <= 'F') || (val.charAt(i) >= 97 && val.charAt(i) <= 102)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Test\n public void shouldMatchDigits(){\n Assert.assertThat(\"match all digits\",CharMatcher.DIGIT.matchesAllOf(\"1234434\"),is(true));\n Assert.assertThat(\"match any digits \",CharMatcher.DIGIT.matchesAnyOf(\"123TTT4\"),is(true));\n }",
"public boolean isDigit(char ch) {\n\t\treturn Character.isDigit(ch);\n\t}",
"private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"private boolean isAllNums(String fieldVal){\r\n // Get rid of all whitespace\r\n String val = fieldVal.replaceAll(\"\\\\s\",\"\").trim();\r\n // check for presence of letters in the string, ignoring '()' and '-'\r\n for (int i=0; i < val.length(); i++){\r\n if (val.charAt(i) != '(' || val.charAt(i) != ')' || val.charAt(i) != '-'){\r\n if (Character.isLetter(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true; \r\n }",
"private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }",
"public boolean isDigit(int i) {\n if (i < 1632) {\n return i <= 57 && 48 <= i;\n }\n return Collation.hasCE32Tag(getCE32(i), 10);\n }",
"public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}",
"@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }",
"public static boolean isNumeric(String str) {\n if (isBlank(str)) {\n return false;\n }\n\n char[] charArray = str.toCharArray();\n\n for (char c : charArray) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n\n return true;\n }",
"private boolean stringIsNumeric(String str) {\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif(!Character.isDigit(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }",
"public static Boolean Digit(String arg){\n\t\tif(arg.length() == 1 && Is.Int(arg)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean ValidarCantidad(String c) {\n String numCuenta = c;\n int NOnum = 0;\n for (int i = 0; i < numCuenta.length(); i++) {\n if (!Character.isDigit(numCuenta.charAt(i))) {\n NOnum++;\n }\n }\n return NOnum == 0;\n }",
"public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}",
"public static boolean isDigit(char ch) {\n // uses slightly faster test for ascii digits, and falls\n // back to Character.isDigit\n switch (ch) {\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n return true;\n default:\n // Weed out the rest of ascii\n if (ch < 48) {\n return false;\n } else if (ch > 57 && ch < 128) {\n return false;\n }\n }\n return Character.isDigit(ch);\n }",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }",
"public boolean isNumber(String str)\r\n\t{\r\n\t\tfor(int i = 0; i < str.length(); i++)\r\n\t\t{\r\n\t\t\tif(!Character.isDigit(str.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean hasSpecialAndDigits(String characters ){\n \n Pattern digit = Pattern.compile(\"[0-9]\");\n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasDigit = digit.matcher(characters);\n Matcher hasSpecial = special.matcher(characters);\n \n \n return (hasDigit.find()==true || hasSpecial.find()==true); \n \n }",
"private boolean isAlphaNumeric(char toCheck) {\n return isAlpha(toCheck) || isDigit(toCheck);\n }",
"public static boolean test (String s){\n\t\t// This pattern tests whether string s contains 3 numbers.\n\t Pattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t Matcher matcher = pattern.matcher(s);\n\t if (matcher.find()){\n\t return true; \n\t } \n\t return false; \n\t }",
"public static boolean isNumeric(final String input) {\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn false;\n\n\t\tfor (int i = 0; i < input.length(); i++)\n\t\t\tif (!Character.isDigit(input.charAt(i)))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }",
"protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}",
"private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }",
"public static boolean isNumber(String s, int radix) {\n try {\n new BigDecimal(new BigInteger(s, radix));\n\n return true;\n } catch (Exception e) {\n }\n\n return false;\n }",
"public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}",
"public static boolean letter_digit_check(String pass){\n\t\tint sum=0;\n\t\tint count=0;\n\t\tfor (int i=0; i<pass.length(); i++){\n\t\t\tif (Character.isDigit(pass.charAt(i))){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\telse if(Character.isLetter(pass.charAt(i))){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (sum>=2 && count>=2)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}",
"public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }",
"public static boolean isnumber(char c) {\n\t\tif (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9') {\n\t\t\treturn true;// return true if that char is number\n\t\t}\n\t\telse { //else return false\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean verificarLetras(String cadeia) {\n\t\tfor (int i = 0; i < cadeia.length(); i++) {\n\t\t\tif (Character.isDigit(cadeia.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean checkMobileDigit(String mobileNumber) {\n\t\tString patternStr = \"^[0-9]*$\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(mobileNumber);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }",
"public boolean includes(int s) {\n return code.is_digit(s);\n }",
"public static boolean isNumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tfield = field.trim();\r\n\t\tif (field.trim().matches(\"[0-9\\\\-\\\\(\\\\)\\\\ ]*\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }",
"public static boolean ehInteiro(String s) {\n char[] c = s.toCharArray();\n boolean d = true;\n\n for (int i = 0; i < c.length; i++) {\n // verifica se o char não é um dígito\n if (!Character.isDigit(c[i])) {\n d = false;\n break;\n }\n }\n\n return d;\n }",
"private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public boolean validate(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tif(!Character.isDigit(c))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean stringContainsNumber( String userName ) {\n return Pattern.compile( \"[0-9]\" ).matcher( userName).find();\n }",
"public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String aString) {\r\n if (aString == null) {\r\n return false;\r\n } else if (aString.isEmpty()) {\r\n return false;\r\n } else if (aString.indexOf(\".\") != aString.lastIndexOf(\".\")) {\r\n return false;\r\n } else {\r\n int counter = 0;\r\n for ( char c : aString.toCharArray()) {\r\n if ( Character.isDigit(c)) {\r\n counter++;\r\n }\r\n }\r\n return counter == aString.length();\r\n// if (counter == aString.length()) {\r\n// return true;\r\n// }\r\n// return false;\r\n }\r\n }",
"public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }",
"public static boolean isAsciiNumeric(char ch) {\n/* 517 */ return (ch >= '0' && ch <= '9');\n/* */ }",
"public boolean ehInteiro(String s) {\n\t\tchar[] c = s.toCharArray();\n\t\tboolean d = true;\n\t\tfor (int i = 0; i < c.length; i++)\n\t\t\t// verifica se o char não é um dígito\n\t\t\tif (!Character.isDigit(c[i])) {\n\t\t\t\td = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\treturn d;\n\t}",
"private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }",
"public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}",
"public static boolean isNumeric(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str.trim().substring(0, 1));\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static Boolean Int(String arg){\n\t\tif(arg == arg.replaceAll(\"\\\\D\",\"\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isValidInt(String s)\n {\n for (int i = 0; i < s.length(); i++)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean BasicDecimalNumberValidation(String text, int decimalDigits) {\n String pattern = \"^-?\\\\d*\\\\.?\\\\d{1,\" + decimalDigits + \"}$\";\n return text.matches(pattern);\n }",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumber(String text) {\n try {\n Double.parseDouble(text);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }"
]
| [
"0.76075804",
"0.70184255",
"0.68082845",
"0.6768981",
"0.67386615",
"0.6723225",
"0.6568294",
"0.6545482",
"0.65304464",
"0.65182436",
"0.64981204",
"0.6488176",
"0.6449375",
"0.6445493",
"0.64366376",
"0.6416921",
"0.6390192",
"0.63791513",
"0.63283473",
"0.62683445",
"0.62614816",
"0.62530154",
"0.6251335",
"0.62262446",
"0.6222544",
"0.6218527",
"0.62158227",
"0.6208531",
"0.6192538",
"0.6170839",
"0.61605465",
"0.61535174",
"0.61509407",
"0.6148278",
"0.61481607",
"0.61480147",
"0.61439925",
"0.6127482",
"0.6115236",
"0.6095411",
"0.6088595",
"0.6068792",
"0.60667485",
"0.60645527",
"0.6057136",
"0.6055274",
"0.6054824",
"0.6034094",
"0.60039157",
"0.59981793",
"0.5989569",
"0.595433",
"0.59491265",
"0.594498",
"0.594139",
"0.5935367",
"0.59224075",
"0.59073156",
"0.5887735",
"0.58747256",
"0.585407",
"0.5835944",
"0.5813309",
"0.58082354",
"0.580109",
"0.5750419",
"0.57497835",
"0.5735185",
"0.5712361",
"0.5712353",
"0.5709377",
"0.5688983",
"0.5679764",
"0.5671697",
"0.56716204",
"0.5665551",
"0.56596226",
"0.56588954",
"0.56508154",
"0.56484693",
"0.56432784",
"0.56375515",
"0.56344324",
"0.56140476",
"0.56063133",
"0.5598949",
"0.55785596",
"0.55702937",
"0.55570924",
"0.5553284",
"0.55491793",
"0.5539001",
"0.55357975",
"0.5512017",
"0.54999703",
"0.54964745",
"0.54920423",
"0.54894143",
"0.5485703",
"0.547291"
]
| 0.7884592 | 0 |
Does a commadelimited list 'delimitedString' contain a certain item? (without allocating memory) | public static boolean delimitedStringContains(String delimitedString, char delimiter, String item) {
if (isEmpty(delimitedString) || isEmpty(item)) {
return false;
}
int pos = -1;
int length = delimitedString.length();
while ((pos = delimitedString.indexOf(item, pos + 1)) != -1) {
if (pos > 0 && delimitedString.charAt(pos - 1) != delimiter) {
continue;
}
int expectedDelimiterPos = pos + item.length();
if (expectedDelimiterPos == length) {
// Match at end of string.
return true;
}
if (delimitedString.charAt(expectedDelimiterPos) == delimiter) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}",
"private boolean stringContainsList(String s, ArrayList<String> list){\n\t\tboolean flag = true;\n\t\tfor(String temp : list){\n\t\t\tif(!s.contains(temp)){\n\t\t\t\tflag = false;\n\t\t\t\treturn flag;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}",
"public boolean containsAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n if (!contains(elements[i])) {\r\n return false;\r\n }\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n }\r\n return true;\r\n }",
"public static boolean in(String strs, String str) {\n\treturn null != strs && null != str && Arrays.asList(strs.split(\",\")).contains(str);\n }",
"boolean isDelimited(String s) {\r\n\t\tif (s.length() < 2) return false;\r\n\t\t\r\n\t\tOptional<String> startChar = Optional.of(s.substring(0, 1));\r\n\t\tOptional<String> endChar = Optional.of(s.substring(s.length() - 1));\r\n\t\t\r\n\t\tfor (Delimiter delim: this) {\r\n\t\t\tif (startChar.equals(delim.start()) && endChar.equals(delim.end())) {\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 static boolean isCommaCorrect( String number ) {\n //a string is comma correct if it is not null and any commas are \n //positioned in a position that is a multiple of 4 from the end\n \n if ( number == null ) return false;\n \n boolean valid = true;\n int currPos = 0;\n while ( valid && currPos != - 1 ) {\n \n currPos = number.indexOf( \",\", currPos );\n \t\n if ( currPos != -1 ) {\n valid = ( number.length() - currPos ) % 4 == 0;\n currPos++;\n }\n \n }\n return valid;\n }",
"boolean hasSplit();",
"private boolean anyOfSetInString(String inputStr, Set<String> items) {\n\n for (String s : items) {\n if (inputStr.contains(s)) {\n // Didn't use String.equals() as user can have the number saved with or without country code\n\n return true;\n }\n }\n\n return false;\n }",
"public boolean contains(String value){\n if (value == null)\n return false;\n int index = clamp(value);\n if (linkedListStrings[index] == null)\n return false;\n else\n return linkedListStrings[index].contains(value);\n\n\n }",
"boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"private boolean isCommaStatement() {\n return line.contains(\",\") && !line.contains(\"(\");\n }",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"boolean contains(String element);",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}",
"private static boolean checkForMultipleIDs(String id)\n\t{\n\t\tif (id.indexOf(',') >= 0)\n\t\t{\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\treturn true; \n\t}",
"boolean inCommunities(String element);",
"private static boolean isRightCommaToSplit(String str, int beginIndex, int commaIndex)\n\t{\n\t\tint cursorIndex = commaIndex;\n\t\tint leftBracket = 0;\n\t\tint rightBracket = 0;\n\t\twhile(cursorIndex >= beginIndex)\n\t\t{\n\t\t\tif(str.charAt(cursorIndex) == '(')\n\t\t\t{\n\t\t\t\tleftBracket++;\n\t\t\t} else if(str.charAt(cursorIndex) == ')')\n\t\t\t{\n\t\t\t\trightBracket++;\n\t\t\t}\n\t\t\tcursorIndex--;\n\t\t}\n\t\treturn leftBracket == rightBracket;\n\t}",
"public static Boolean validateInput(String str) {\n String[] lines = str.split(\"\\n\");\r\n // System.out.println(\"lines array:\"+lines.length);\r\n Boolean validate = true;\r\n String[] lineParameters;\r\n int countFor =0;\r\n for (String line : lines) {\r\n if(countFor > 1){\r\n lineParameters = line.split(\",\");\r\n\r\n if (lineParameters.length != 5) {\r\n validate = false;\r\n break;\r\n }\r\n }\r\n countFor++;\r\n \r\n\r\n }\r\n return validate;\r\n }",
"@Test\n public void existsItem(){\n List <Character> list = new ArrayList<>();\n list.add('a');\n list.add('b');\n list.add('c');\n\n assertTrue(list.contains('b'));\n }",
"private boolean separator(char c){\n int n = separators.length;\n for(char s : separators){\n if(s == c) return true;\n }\n return false;\n }",
"public boolean checkListItem(ArrayList<Item> inputListItem, String stringDesire)\r\n\t{\r\n\t\tString itemName = stringDesire.substring(0, stringDesire.indexOf(\":\"));;\r\n\t\tString variable = stringDesire.substring(stringDesire.indexOf(\":\")+1, stringDesire.lastIndexOf(\":\"));\r\n\t\tString desireValue = stringDesire.substring(stringDesire.lastIndexOf(\":\")+1,stringDesire.length());\r\n\t\r\n\t\t// Character may has multiple item with the same name, but different stats (sword, but one is broken, but the other aren't).\r\n\t\t// Thus all item with matching name must be checked\r\n\t\t// IF even ONE of the item match, this methods will return true;\r\n\t\t\r\n\t\tArrayList<Item> listMatchItem = new ArrayList<Item>();\r\n\r\n\t\tfor (int x = 0; x<inputListItem.size();x++)\r\n\t\t{\r\n\t\t\tif (inputListItem.get(x).getName() == itemName) \r\n\t\t\t\tlistMatchItem.add(inputListItem.get(x));\r\n\t\t}\r\n\t\t\r\n\t\tif (variable == \"itemNameNOT\" && listMatchItem.size() == 0) {\r\n\t\t\tSystem.out.println(\"Char not contain prohibit item\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\telse if (listMatchItem.size() == 0 ) {\r\n\t\t\tSystem.out.println(\"NO MATCH ITEM IS FOUND\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// If NONE of the item match with the desireValue >>> this method must return FALSE;\r\n\t\t// In order to do this, we use the isOneMatch.\r\n\t\t//\r\n\t\t// This boolean will turn true if one of the item match\t\t\r\n\t\t// At the end of the for loop, the methods will return this boolean\r\n\t\tboolean isOneMatch = false;\r\n\t\tif (variable == \"listPropertyNOT\")\r\n\t\t{\r\n\t\t\tisOneMatch = true;\r\n\t\t}\r\n\t\t\r\n\t\tfor (Item inputItem : listMatchItem)\t\r\n\t\t{\r\n\t\t\tswitch (variable)\r\n\t\t\t{\r\n\t\t\t\t// This is use to check if this item is in inventory\r\n\t\t\t\tcase (\"itemName\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getName() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\tcase (\"typeOfItem\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListTypeOfItem().contains(desireValue)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"typeOfFunction\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListTypeOfFunction().contains(desireValue)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"ownerName\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getOwnerName() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"isOnGround\") \r\n\t\t\t\t:\r\n\t\t\t\t\tString curIsAlive = Boolean.toString(inputItem.isItemOnGround());\r\n\t\t\t\t\tif (curIsAlive == desireValue) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"currentLocation\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getCurrentLocation() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tcase (\"sameLocation\")\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//-------------FIND ALL ITEM THAT MATCH DESIREVALUE------------------\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Item> listMatchItemSameLocation = new ArrayList<Item>();\r\n\t\t\t\t\t\r\n\t\t\t\t//\tString itemName = stringDesire.substring(0, stringDesire.indexOf(\":\"));;\r\n\t\t\t\t//\tString variable = stringDesire.substring(stringDesire.indexOf(\":\")+1, stringDesire.lastIndexOf(\":\"));\r\n\t\t\t\t//\tString desireValue = stringDesire.substring(stringDesire.lastIndexOf(\":\")+1,stringDesire.length());\r\n\t\t\t\r\n\t\t\t\t\tfor (int x = 0; x<inputListItem.size();x++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (inputListItem.get(x).getName() == desireValue) \r\n\t\t\t\t\t\t\tlistMatchItemSameLocation.add(inputListItem.get(x));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (listMatchItemSameLocation.size() == 0 ) {\r\n\t\t\t\t\t\tSystem.out.println(\"NO MATCH ITEM IS FOUND\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//--------------------------------\r\n\t\t\t\t\t\r\n\t\t\t\t\tItem itemSameLocation = null;\r\n\t\t\t\t\tfor (Item checkItem : listMatchItemSameLocation)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (checkItem.getCurrentLocation() == inputItem.getCurrentLocation())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// If some item in match list = in same location, break and return true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the code reach this code, it mean no matched item with same location exist, Thus return false;\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t// If contain desireValue, return true;\r\n\t\t\t\tcase (\"listProperty\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListProperty().contains(desireValue)){\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t// If NOT contain desireValue, return true;\t\r\n\t\t\t\tcase (\"listPropertyNOT\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (!inputItem.getListProperty().contains(desireValue) && isOneMatch == true) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (inputItem.getListProperty().contains(desireValue)){\r\n\t\t\t\t\t\tisOneMatch = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t// In case that variable doesn't exist, it should mean that misspelling happen\r\n\t\t\t\tdefault \r\n\t\t\t\t: \r\n\t\t\t\t\tSystem.out.println(\"checkListItem's variable does not exist, FROM enviroment.GameWorld.containCharacter\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isOneMatch;\r\n\t}",
"static boolean esLista(String linea)\r\n\t\t\tthrows IllegalArgumentException\r\n\t{ \r\n\t// Verifica si la primera linea del archivo comienza con \" \" para saber si es una matriz\r\n\t// de adyacencia o una lista de adyacencia.\r\n if(linea.startsWith(\" \")){\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n\t}",
"public static boolean hasToken(String s) {\n\t\tboolean founded=false;\n\t\tfor(int i = 0 ; i < dataList.size() ; i ++ ) {\n\t\t\tif(dataList.get(i).name.equals(s)) {\n\t\t\t\t\n\t\t\t\tfounded = true;\n\t\t\t}\n\t\t}\n\t\treturn founded;\n\t}",
"public static boolean searchItemInList(String text, List<IStringField> list){\n for(IStringField item : list){\n if(item.getStrValue().equals(text)){\n return true;\n }\n }\n return false;\n }",
"@Test\r\n\tvoid testContains() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tif (list.contains(\"Item 1\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 2\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 2\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 3\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 3\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 4\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 4\\\"\");\r\n\t\t}\r\n\t}",
"public static Boolean validateInputFromPool(String str) {\n String[] lines = str.split(\"\\n\");\r\n Boolean validate = true;\r\n String[] lineParameters;\r\n int countFor =0;\r\n for (String line : lines) {\r\n if(countFor > 1){\r\n lineParameters = line.split(\",\");\r\n if (lineParameters.length != 2) {\r\n validate = false;\r\n break;\r\n }\r\n }\r\n \r\n countFor++;\r\n }\r\n return validate;\r\n }",
"@Override\n public boolean contains(String element) {\n Node currNode = this.head;\n if(currNode == null){\n }\n while(currNode.getNextNode() != null){\n if(currNode.getItem().equals(element)){\n return true;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }",
"private boolean isDelim(String s){\r\n \r\n switch (s) {\r\n case \"(\":\r\n return true;\r\n case \")\":\r\n return true; \r\n case \",\":\r\n return true; \r\n //case \"'\":\r\n //return true;\r\n case \"=\":\r\n return true; \r\n } \r\n \r\n\treturn false;\r\n \r\n }",
"public boolean isContainedBy(final String testedString) {\n if (testedString.indexOf(SEPARATOR) < 0) {\n return false;\n }\n return testedString.contains(key);\n }",
"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 }",
"boolean contains(String value);",
"private static boolean parse_flag() {\n skip_spaces();\n\n char c = s.charAt(i);\n switch (c) {\n case '0':\n case '1':\n {\n i += 1;\n if (i < l && s.charAt(i) == ',') {\n i += 1;\n }\n skip_spaces();\n break;\n }\n default:\n throw new Error(String.format(\"Unexpected flag '%c' (i=%d, s=%s)\", c, i, s));\n }\n\n return c == '1';\n }",
"public boolean matchResult(String expected,String count){\r\n List<String> expected_Result=new ArrayList<String>();\r\n String s1[];\r\n if(expected.contains(\",\")){\r\n s1 =expected.split(\",\");\r\n for(int i=0;i<s1.length;i++){\r\n expected_Result.add(s1[i]);\r\n }\r\n }\r\n else if(expected.length()!=0){\r\n expected_Result.add(expected);\r\n }\r\n\r\n Boolean match=islistmatching(expected_Result,getResult());\r\n\r\n return match;\r\n\r\n }",
"public boolean containsProduct(String p){\n\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\tfor (int j = 0; j < list.get(i).getWishlist().size(); j++) {\n\t\t\t\tif( p.equals(list.get(i).getWishlist().get(j)) ){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isSeparator(String token) {\r\n for (String each : separators) {\r\n if (equals(token, each)) return true;\r\n }\r\n return false;\r\n }",
"public static Set<String> commaDelimitedStringToSet(String s) {\n Set<String> set = new HashSet<String>();\n String[] split = s.split(\",\");\n for (String aSplit : split) {\n String trimmed = aSplit.trim();\n if (trimmed.length() > 0)\n set.add(trimmed);\n }\n return set;\n }",
"@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn (this.current<StringArray.this.max);\n\t\t\t}",
"private boolean isOnIgnoreList(final String part) {\n return IGNORE_LIST.contains(part);\n }",
"public boolean contains(String element) {\n if (element == null) {\n throw new IllegalArgumentException(\"Null string!\");\n }\n\n Node candidateNode = getNodeByString(element, false);\n\n if (candidateNode == null) {\n return false;\n }\n\n return candidateNode.isTerminal();\n }",
"public boolean contains(String target){\n\t\treturn list.contains(target);\n\t}",
"@Test\n public void hasSameItems() throws IOException {\n Assert.assertEquals(true, Utils.hasSameItems(\"a,b,c\", \"d,e,c,f\"));\n }",
"protected boolean containsName(String full, String prefixes) {\n String[] prefixArray = StringUtils.split(prefixes, \",\");\n for (String prefix : prefixArray) {\n if (StringUtils.startsWith(full, StringUtils.trimToEmpty(prefix))) {\n return true;\n }\n }\n return false;\n }",
"public boolean contains(String i){\r\n return stream().anyMatch(item -> (item.name.endsWith(i)));\r\n }",
"public boolean contains(Object o) {\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) return true;\n }\n return false;\n }",
"public boolean equals(String object) {\r\n if (NumItems == object.length() && containsAll(object)) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"@Override\n public boolean contains(final Object element) {\n return this.lastIndexOf(element) != -1;\n }",
"public boolean contains(String str);",
"public static final boolean StartsWithOneOf(final String what, final String list, final String divider) {\n\t\t\n\t\tif (what == null) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (final StringTokenizer st = new StringTokenizer(list, divider); st.hasMoreElements();) {\n\t\t\tfinal String S = st.nextToken();\n\t\t\tif (S.length() == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (what.startsWith(S)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkElementSeparator() {\n if (flavor == ConfigSyntax.JSON) {\n TokenWithComments t = nextTokenIgnoringNewline();\n if (t.token == Tokens.COMMA) {\n return true;\n } else {\n putBack(t);\n return false;\n }\n } else {\n boolean sawSeparatorOrNewline = false;\n TokenWithComments t = nextToken();\n while (true) {\n if (Tokens.isNewline(t.token)) {\n // newline number is the line just ended, so add one\n lineNumber = t.token.lineNumber() + 1;\n sawSeparatorOrNewline = true;\n\n // we want to continue to also eat\n // a comma if there is one.\n } else if (t.token == Tokens.COMMA) {\n return true;\n } else {\n // non-newline-or-comma\n putBack(t);\n return sawSeparatorOrNewline;\n }\n t = nextToken();\n }\n }\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"private boolean contains(String[] a, String b){\n\t\tfor (String element:a){\n\t\t\tif (element.equals(b)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isValidSerialization(String preorder) {\n Stack<String> stack = new Stack<>();\n String[] arr = preorder.split(\",\");\n for (String str : arr) {\n stack.push(str);\n\n while(stack.size() >= 3 &&\n stack.get(stack.size() - 1).equals(\"#\") &&\n stack.get(stack.size() - 2).equals(\"#\") &&\n !stack.get(stack.size() - 3).equals(\"#\")) {\n stack.pop();\n stack.pop();\n stack.pop();\n stack.push(\"#\");\n }\n }\n return stack.size() == 1 && stack.peek().equals(\"#\");\n }",
"public boolean canHandle(String delimitedTrade) {\n if(delimitedTrade.charAt(0)=='R')\n return true;\n return false;\n }",
"@Override\n public boolean hasNext() {\n return this.currIndex < this.circularString.size();\n }",
"boolean hasList();",
"private boolean isSplitChar(char inChar) {\r\n\t\tif (inChar == ' ' || inChar == ',' || inChar == '.') {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean exitsElementAt(String element, String[] source) {\r\n\r\n\t\tfor (int i = 0; i < source.length; i++) {\r\n\r\n\t\t\tif (element.equals(source[i])) {\r\n\r\n\t\t\t\treturn true; // if there is repeated element return true\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"private boolean c(String str, StringBuilder stringBuilder) {\n if (TextUtils.isEmpty(str) || TextUtils.isEmpty(stringBuilder) || !str.contains(\",access\") || stringBuilder.indexOf(\",access\") == -1) {\n return false;\n }\n String[] split = str.split(\",access\");\n Object substring = !split[0].contains(\"#\") ? split[0] : split[0].substring(split[0].lastIndexOf(\"#\") + 1);\n return !TextUtils.isEmpty(substring) ? stringBuilder.toString().contains(substring + \",access\") : false;\n }",
"@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}",
"boolean contains();",
"private static List<String> convertCommaDelimitedStringToList(String delimitedString) {\n\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tif (!StringUtils.isEmpty(delimitedString)) {\n\t\t\tresult = Arrays.asList(StringUtils.delimitedListToStringArray(delimitedString, \",\"));\n\t\t}\n\t\treturn result;\n\n\t}",
"boolean isDependOnThemselves(List<String> l);",
"public boolean hasSplit(Split s)\n\t{\n\t\tfor(int counter = 0; counter < splits.size(); counter ++)\n\t\t{\n\t\t\tif(splits.get(counter).equals(s))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean includes(final String candidate) {\n return candidate != null && strings.contains(candidate);\n }",
"public static boolean isValid(final String string) {\n int index1;\n for (index1 = 0; index1 < string.length(); index1++) {\n if (string.charAt(index1) == SEPARATOR) {\n boolean found = false;\n int index2;\n for (index2 = index1 + 1; index2 < string.length() && !found; index2++) {\n if (string.charAt(index2) == SEPARATOR) {\n found = true;\n String subStr = string.substring(index1, index2 + 1);\n boolean valid = false;\n for (int k = 0; k < availableTemplateElements.size() && !valid; k++) {\n valid = availableTemplateElements.get(k).isContainedBy(subStr);\n \n }\n if (!valid) {\n return false;\n } \n }\n }\n if (!found) {\n return false;\n }\n index1 = index2 - 1;\n }\n }\n return true;\n }",
"public static boolean isDelimited(String name) {\n if (StringUtil.isEmpty(name)) {\n return false;\n }\n return normalizer.isDelimited(defaultRule, name);\n }",
"protected static boolean hasEntryInList(String key, String entry) {\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n return false;\n\n for (String e: entries.split(\":\"))\n if (e.equalsIgnoreCase(entry))\n return true;\n\n return false;\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 boolean matches(String value) {\n\t\treturn value != null && splitValue(value).length == columns.size() + 1 \n\t\t\t\t&& id.equals(splitValue(value)[0]);\n\t}",
"boolean isListRemainingEmpty();",
"boolean hasContains();",
"public boolean containsCustomer(String c){\n\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\tif( c.equals(list.get(i).getUsername()) ){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isValid(String input){\r\n\t\t// Verifies if the input contains multiple integer / double values sperated by \",\"\r\n\t\tString[] splitValues = input.split(\",\");\r\n\t\tfor(int i = 0; i < splitValues.length; i++){\t\r\n\t\t\ttry{\r\n\t\t\t\tDouble.parseDouble(splitValues[i]);\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException nfe){\r\n\t\t\t\tSystem.err.println(\"### [ValuesRequirement] ERROR: unparseable number in \" + splitValues[i] + \", part of \" + input);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean contains(String sequence) {\r\n return (depthFirstSearch(sequence).size() != 0);\r\n }",
"public boolean usesItem(Item item){\n for (char c : item.getName().toCharArray()){\n if(!content.contains( String.valueOf(c) )){\n return false;\n }else {\n// count++;\n }\n }\n\n// System.out.println(item + \" est utilisé \" + count + \" fois\");\n\n return true;\n\n\n// return content.contains(item);\n }",
"public Boolean findMatchingString(String findMe, String[] list){\n\t\tint length = list.length;\n\t\tfor(int i=0; i<length; i++){\n\t\t\tif(findMe.equalsIgnoreCase(list[i])){\n\t\t\t\tdebugOut(findMe+\" is the same as \"+list[i]);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tdebugOut(findMe+\" is not the same as \"+list[i]);\n\t\t}\n\t\tdebugOut(\"The enchantment '\"+findMe+\"' could not be found in this list\");\n\t\treturn false;\n\t}",
"public static int listOfStringFindContains(List<String> list, String value) {\r\n\t\treturn listOfStringFindSubstring(list, value, false);\r\n\t}",
"boolean any(String collection);",
"public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}",
"public boolean inBag(String searchString) {\r\n\t\tboolean found = false;\r\n\t\tfor(Iterator<Item> it = items.iterator(); it.hasNext() && !found; ) {\r\n\t\t\tif(it.next().getDescription().contains(searchString)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t\t\r\n\t}",
"public void validateRecipients(List<String> expected) {\n List<String> received = Arrays.asList(recipients.getText().split(\",\"));\n assertTrue(\"Received list \" + received.toString() + \" contains the expected \" + expected.toString(), received.containsAll(expected));\n }",
"public boolean contieneJugador(ArrayList<String> ganador, String jugadorBuscado) {\n\t\t for(int i = 0; i < ganador.size(); i++) {\n\t\t\tif(ganador.get(i).equals(jugadorBuscado)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t }\n\t\t return false;\n\t }",
"public static boolean containsMatch(List<String> list, String str) {\n boolean strAvailable = false;\n final Pattern pattern = Pattern.compile(str, Pattern.CASE_INSENSITIVE | Pattern.CANON_EQ);\n if (list != null) {\n for (String s : list) {\n final Matcher matcher = pattern.matcher(s);\n if (matcher.find()) {\n strAvailable = true;\n break;\n }\n }\n }\n return strAvailable;\n }",
"public static boolean notListvalue(String value, String list)\r\n\t{\r\n\t\treturn !isListvalue(value, list);\r\n\t}",
"public boolean contains(String data){\n Node tmp = head;\n while(tmp != null){\n if(tmp.element.getWord().equals(data)) {\n tmp.element.addCount();\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }",
"private boolean isTenantValid(String s) {\n\n for (int i = 0; i < tenantFullNames.size(); i++) {\n if (tenantFullNames.get(i).matches(s.trim())) {\n addedTenant = tenantList.get(i);\n return true;\n }\n }\n return false;\n }",
"abstract protected boolean findDelimAndExtractToken(ParsePosition pos,\n StringBuffer buffer);",
"public static boolean in(String str, String... strs) {\n\treturn null != strs && null != str && Arrays.asList(strs).contains(str);\n }",
"@Test\n\tpublic void testContainsSomePrefix() {\n\n\t\tString[] prefixes = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listPrefixes = Arrays.asList(prefixes);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"stedadsdf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"neasdsadfa\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"ningsdfsf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"nasfds\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"abdsfsd\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"ninsdfdsf\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"swerwrw\", listPrefixes), equalTo(false));\n\t}",
"public static boolean isMatchingEtag(final List<String> headerList, final String etag) {\n for (String header : headerList) {\n final String[] headerEtags = header.split(\",\");\n for (String s : headerEtags) {\n s = s.trim();\n if (s.equals(etag) || \"*\".equals(s)) {\n return true;\n }\n }\n }\n\n return false;\n }",
"@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}"
]
| [
"0.65710133",
"0.62002635",
"0.61776394",
"0.6126099",
"0.6039466",
"0.57717025",
"0.5744769",
"0.57155997",
"0.56564677",
"0.563426",
"0.5629975",
"0.5629975",
"0.5629975",
"0.55219",
"0.5509407",
"0.5509407",
"0.5509407",
"0.5509407",
"0.5509407",
"0.5509407",
"0.54444593",
"0.54165965",
"0.54165965",
"0.54107165",
"0.53166145",
"0.5270395",
"0.52545816",
"0.5232272",
"0.52306974",
"0.52259415",
"0.52116156",
"0.5206155",
"0.52003706",
"0.51868004",
"0.51803565",
"0.51715904",
"0.5169578",
"0.51687473",
"0.5153462",
"0.51480997",
"0.51448303",
"0.5138023",
"0.51371336",
"0.50996196",
"0.5095427",
"0.5095142",
"0.50804645",
"0.5046203",
"0.5042533",
"0.50262535",
"0.5025103",
"0.5020854",
"0.49946663",
"0.49876127",
"0.49831617",
"0.49811962",
"0.4978366",
"0.49666294",
"0.496335",
"0.4960047",
"0.49527457",
"0.49450216",
"0.49445865",
"0.49303693",
"0.49299943",
"0.4923472",
"0.49234447",
"0.49213865",
"0.49190924",
"0.49083892",
"0.49072042",
"0.49001113",
"0.4895694",
"0.48903024",
"0.48895025",
"0.4881659",
"0.48740765",
"0.48712662",
"0.48631424",
"0.48571417",
"0.4852624",
"0.48518926",
"0.48475134",
"0.483836",
"0.48373938",
"0.48343128",
"0.48213902",
"0.48203027",
"0.4818498",
"0.48085546",
"0.4790709",
"0.47897553",
"0.47874394",
"0.4786776",
"0.47806516",
"0.47752133",
"0.4771374",
"0.47469276",
"0.47439477",
"0.47420755"
]
| 0.63607264 | 1 |
Pack 2 int values into a long, useful as a return value for a range | public static long packRangeInLong(int start, int end) {
return (((long) start) << 32) | end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }",
"public static void main(String[] args) {\n\n byte byteVal = 5;\n short shortVal = 10;\n int intVal = 100;\n long longVal = 50000L + (byteVal + shortVal + intVal) * 10L;\n\n System.out.println(longVal);\n\n }",
"public static long encodeAsLong(int high, int low) {\n\n // Store the first int value in the highest 32 bits of the long\n long key = high | 0x0000000000000000l;\n key <<= 32;\n\n // Store the second int value in the lowest 32 bits of the long\n long lowLong = low & 0x00000000FFFFFFFFl;;\n key |= lowLong;\n\n return key;\n\n }",
"@SuppressWarnings(\"cast\")\n public static long makeLong(int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8) {\n return ((long) b1 << 56) +\n ((long) (b2 & 255) << 48) +\n ((long) (b3 & 255) << 40) +\n ((long) (b4 & 255) << 32) +\n ((long) (b5 & 255) << 24) +\n (long) ((b6 & 255) << 16) +\n (long) ((b7 & 255) << 8) +\n (long) ((b8 & 255));\n }",
"private long packValues(int key, int next) {\n return ((long)next << 32) | ((long)key & 0xFFFFFFFFL);\n }",
"public long combine(long value, long record) {\n if (value < MIN) {\n throw new IllegalArgumentException(\n \"Illagal value: \" + NAME + \" = \" + value + \" < MIN = \" + MIN);\n }\n if (value > MAX) {\n throw new IllegalArgumentException(\n \"Illagal value: \" + NAME + \" = \" + value + \" > MAX = \" + MAX);\n }\n return (record & ~MASK) | (value << OFFSET);\n }",
"public long applyIntToLong(int host);",
"private long function(long a, long b) {\n if (a == UNIQUE) return b;\n else if (b == UNIQUE) return a;\n\n // return a + b; // sum over a range\n // return (a > b) ? a : b; // maximum value over a range\n return (a < b) ? a : b; // minimum value over a range\n // return a * b; // product over a range (watch out for overflow!)\n }",
"public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }",
"private long parseLong(int start, int end, int radix) {\n long result = 0;\n long digit;\n\n for (int i = start; i < end; i++) {\n digit = Character.digit(yycharat(i),radix);\n result*= radix;\n result+= digit;\n }\n\n return result;\n }",
"private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }",
"public static int pack(int v1, int s1, int v2, int s2) {\r\n // Checks that start and size form a valid bit range and that a value\r\n // doesn't take up more bits than its given size\r\n checkArgument(\r\n verify(v1, s1) && verify(v2, s2) && s1 + s2 <= Integer.SIZE);\r\n return packGeneral(v1, s1, v2, s2);\r\n }",
"private static void create(int num1, int num2) {\n\t\tlong result = (~(~0<<num1)) << num2;\n\t\tSystem.out.println(result);\n\t}",
"private static long rl(long a, String b) {\r\n long res = a;\r\n for (int c = 0; c < b.length() - 2; c += 3) {\r\n char dChar = b.charAt(c + 2);\r\n long dInt = dChar >= 'a' ? (int) dChar - 87 : Long.valueOf(String.valueOf(dChar));\r\n char char2 = b.charAt(c + 1);\r\n long dInt2 = char2 == '+' ? res >>> dInt : res << dInt;\r\n res = b.charAt(c) == '+' ? res + dInt2 & 4294967295l : res ^ dInt2;\r\n }\r\n return res;\r\n }",
"public long toLong()\n\t{\n\t\t// holds the int to return\n\t\tlong result = 0;\n\t\t\n\t\t// for every byte value\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// Extract the bits out of the array by \"and\"ing them with the\n\t\t\t// maximum value of\n\t\t\t// a byte. This is done because java does not support unsigned\n\t\t\t// types. Now that the\n\t\t\t// unsigned byte has been extracted, shift it to the right as far as\n\t\t\t// it is needed.\n\t\t\t// Examples:\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x00} = 256\n\t\t\t//\n\t\t\t// byte array int\n\t\t\t// {0x01, 0x8C 0xF0} = 0x018CF0\n\t\t\tresult += (byteToLong(bytes[i]) << (Byte.SIZE * (bytes.length - i - 1)));\n\t\t}\n\t\t\n\t\t// return the int\n\t\treturn result;\n\t}",
"long getLongValue();",
"long getLongValue();",
"@VisibleForTesting\n long makeCombinedLong(int widthMeasureSpec, int heightMeasureSpec) {\n // Suppress sign extension for the low bytes\n return (long) heightMeasureSpec << 32 | (long) widthMeasureSpec & MEASURE_SPEC_WIDTH_MASK;\n }",
"@Test\n public void testToLong() throws Exception {\n assertEquals(0, undertest2.toLong(\"1 a\"));\n // \"2\"->1->0b10, \"a\"->0->0b0 => 0b100->1l\n assertEquals(1, undertest2.toLong(\"2 a\"));\n // \"3\"->2->0b01, \"a\"->0->0b0 => 0b010->2l\n assertEquals(2, undertest2.toLong(\"3 a\"));\n // \"4\"->3->0b11, \"a\"->0->0b0 => 0b110->3l\n assertEquals(3, undertest2.toLong(\"4 a\"));\n // \"1\"->0->0b00, \"b\"->1->0b1 => 0b001->4l\n assertEquals(4, undertest2.toLong(\"1 b\"));\n // \"2\"->1->0b10, \"b\"->1->0b1 => 0b101->5l\n assertEquals(5, undertest2.toLong(\"2 b\"));\n // \"3\"->2->0b01, \"b\"->1->0b1 => 0b011->6l\n assertEquals(6, undertest2.toLong(\"3 b\"));\n // \"4\"->3->0b11, \"b\"->1->0b1 => 0b111->7l\n assertEquals(7, undertest2.toLong(\"4 b\"));\n }",
"public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }",
"int pack(int b2, int s1, int b0)\n {\n return (b2 << 24) | (s1 << 8) | b0;\n }",
"public static void main(String[] args) {\n byte a=25;\n short b=124;\n int c=200;\n long d=50000L+10L*(a+b+c);\n System.out.println (d);\n\n short az=(short)(1000+10*(a+b+c));\n System.out.println (az);\n\n\n\n }",
"private long getChecksumForIntermediateValues(long a, long b) {\n return (long) (a + (b * Math.pow(2, 16)));\n }",
"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 }",
"private static int[] add(int[] x, long val) {\n int[] y;\n long sum = 0;\n int xIndex = x.length;\n int[] result;\n int highWord = (int)(val >>> 32);\n if (highWord == 0) {\n result = new int[xIndex];\n sum = (x[--xIndex] & LONG_MASK) + val;\n result[xIndex] = (int)sum;\n } else {\n if (xIndex == 1) {\n result = new int[2];\n sum = val + (x[0] & LONG_MASK);\n result[1] = (int)sum;\n result[0] = (int)(sum >>> 32);\n return result;\n } else {\n result = new int[xIndex];\n sum = (x[--xIndex] & LONG_MASK) + (val & LONG_MASK);\n result[xIndex] = (int)sum;\n sum = (x[--xIndex] & LONG_MASK) + (highWord & LONG_MASK) + (sum >>> 32);\n result[xIndex] = (int)sum;\n }\n }\n // Copy remainder of longer number while carry propagation is required\n boolean carry = (sum >>> 32 != 0);\n while (xIndex > 0 && carry)\n carry = ((result[--xIndex] = x[xIndex] + 1) == 0);\n // Copy remainder of longer number\n while (xIndex > 0)\n result[--xIndex] = x[xIndex];\n // Grow result if necessary\n if (carry) {\n int bigger[] = new int[result.length + 1];\n System.arraycopy(result, 0, bigger, 1, result.length);\n bigger[0] = 0x01;\n return bigger;\n }\n return result;\n }",
"void mo25957a(long j, long j2);",
"private static long getMaskAsLong(int nrBits) {\n return 0xFFFFFFFFFFFFFFFFL >>> (64 - nrBits);\n }",
"@Test\n public void testFromLong() throws Exception {\n assertEquals(\"1 a\", undertest2.fromLong(0));\n // 0b100 => 0b10->1->\"2\", 0b0->0->\"a\"\n assertEquals(\"2 a\", undertest2.fromLong(1));\n // 0b010 => 0b01->2->\"3\", 0b0->0->\"a\"\n assertEquals(\"3 a\", undertest2.fromLong(2));\n // 0b110 => 0b11->3->\"4\", 0b0->0->\"a\"\n assertEquals(\"4 a\", undertest2.fromLong(3));\n // 0b001 => 0b00->0->\"1\", 0b1->1->\"b\"\n assertEquals(\"1 b\", undertest2.fromLong(4));\n // 0b101 => 0b10->1->\"2\", 0b1->1->\"b\"\n assertEquals(\"2 b\", undertest2.fromLong(5));\n // 0b011 => 0b01->2->\"3\", 0b1->1->\"b\"\n assertEquals(\"3 b\", undertest2.fromLong(6));\n // 0b111 => 0b11->3->\"4\", 0b1->1->\"b\"\n assertEquals(\"4 b\", undertest2.fromLong(7));\n // 255l->0b11111111->0b111 => 0b11->3->\"4\", 0b1->1->\"b\"\n assertEquals(\"4 b\", undertest2.fromLong(255));\n }",
"public static void main(String arg[]) {\n\t\t\n\t\tlong longNumberWithoutL = 1000*60*60*24*365;\n\t\tlong longNumberWithL = 1000*60*60*24*365L;\n\n\t\tSystem.out.println(longNumberWithoutL);//1471228928\n\t\tSystem.out.println(longNumberWithL);//31536000000\n\n\t\t//31536000000 -- 36 bits\n\t\t// 11101010111101100010010110000000000\n\t\t//max limit of 32 bit int: 2147483647\n\t\t//1010111101100010010110000000000 --> 1471228928\n\t}",
"Long mo20729a();",
"public int compare(Long one, Long two){ return one.compareTo(two); }",
"@Override\n public long addlong(long o1, long o2) {\n return o1 + o2;\n }",
"public void putLongInMemory(long number1, long number2){\n\t\tif (number1 % 8L != 0L){\n\t\t\tSystem.out.println(\"Wrong number for access in memory\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry{\n\t\t\tint i = (int)(number2 & 0xFFFFFFFF); //bitwise AND to get the integer\n\t\t\tint j = (int)(number2 >> 32 & 0xFFFFFFFF); //shift 32 bits to right and AND bitwise to get the second integer\n\t\t\t//put the numbers in memory big endian\n\t\t\tmemory[((int)number1 / 4)] = i;\n\t\t\tmemory[(((int)number1 + 4) / 4)] = j;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public long longValue();",
"public static void main (String[] args){\n int myValue = 2_000;\n\n //Byte = 2^8 (8 bits - 1 byte)\n byte myByteValue = 10;\n\n //Java promotes variables to int to perform any binary operation.\n //Thus, results of expressions are integers. In order to store the result\n //in a variables of different type, explicit cast is needed.\n //The parenthesis are needed to cast the whole expression.\n byte myNewByteValue = (byte)(myByteValue/2);\n\n\n //Short = 2^16 (16 bits - 2 bytes)\n short myShort = 1_000;\n short myNewShortValue = (short)(myShort/2);\n /*\n Long = 2^64 (64 bits - 8 bytes)\n Without L suffix, Java considers the literal as an integer.\n Since int is a smaller type than long, int is auto casted and stored as a long\n without information loss (underflow or overflow)\n */\n long myLongValue = 100_000L;\n\n //Exercise:\n //Converts the expression automatically to long, since sizeof(long) > sizeof(int)\n //This rule applies for any two types that one is lager than the order, since the smaller is stored into the larger.\n //Otherwise, a explicit cast is need, like the short type below\n long myNewLongValue = 50_000L + 10L *(myByteValue+myShort+myValue);\n short myShortCastedValue = (short) (100 + 2*(myByteValue+myNewShortValue+myValue));\n System.out.println(myNewLongValue);\n System.out.println(myShortCastedValue);\n }",
"@Override\n\tpublic long multi(int num1, int num2) throws TException {\n\t\treturn Long.valueOf(num1 * num2); \n\t}",
"public static void main(String[] args) throws IOException {\r\n\t long a = 1182312000;\r\n\t System.out.println((a<<1) + 57596000);\r\n\t System.out.println(Long.MAX_VALUE);\r\n }",
"private static int intArrayCmpToLen(int[] arg1, int[] arg2, int len) {\n for (int i=0; i < len; i++) {\n long b1 = arg1[i] & LONG_MASK;\n long b2 = arg2[i] & LONG_MASK;\n if (b1 < b2)\n return -1;\n if (b1 > b2)\n return 1;\n }\n return 0;\n }",
"void mo54410a(int i, int i2, long j);",
"static private int makeInt(int b3, int b2, int b1, int b0) {\n return (((b3 ) << 24) |\n ((b2 & 0xff) << 16) |\n ((b1 & 0xff) << 8) |\n ((b0 & 0xff) ));\n }",
"public static final long signedToLong(int x) {\n \t\treturn (x & 0xFFFFFFFFL);\n \t}",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private static int combine(char[] paramArrayOfChar, int paramInt1, int paramInt2, int[] paramArrayOfInt)\n/* */ {\n/* 1243 */ if (paramArrayOfInt.length < 2) {\n/* 1244 */ throw new IllegalArgumentException();\n/* */ }\n/* */ int i;\n/* */ for (;;)\n/* */ {\n/* 1249 */ i = paramArrayOfChar[(paramInt1++)];\n/* 1250 */ if (i >= paramInt2) {\n/* */ break;\n/* */ }\n/* 1253 */ paramInt1 += ((paramArrayOfChar[paramInt1] & 0x8000) != 0 ? 2 : 1);\n/* */ }\n/* */ \n/* */ \n/* 1257 */ if ((i & 0x7FFF) == paramInt2)\n/* */ {\n/* 1259 */ int j = paramArrayOfChar[paramInt1];\n/* */ \n/* */ \n/* 1262 */ i = (int)(0xFFFFFFFF & (j & 0x2000) + 1);\n/* */ \n/* */ \n/* */ int k;\n/* */ \n/* 1267 */ if ((j & 0x8000) != 0) {\n/* 1268 */ if ((j & 0x4000) != 0)\n/* */ {\n/* 1270 */ j = (int)(0xFFFFFFFF & (j & 0x3FF | 0xD800));\n/* 1271 */ k = paramArrayOfChar[(paramInt1 + 1)];\n/* */ }\n/* */ else {\n/* 1274 */ j = paramArrayOfChar[(paramInt1 + 1)];\n/* 1275 */ k = 0;\n/* */ }\n/* */ }\n/* */ else {\n/* 1279 */ j &= 0x1FFF;\n/* 1280 */ k = 0;\n/* */ }\n/* 1282 */ paramArrayOfInt[0] = j;\n/* 1283 */ paramArrayOfInt[1] = k;\n/* 1284 */ return i;\n/* */ }\n/* */ \n/* 1287 */ return 0;\n/* */ }",
"public static long getRandomLong(long start, long end) {\n\t\tlong randomlong = start + (long)((end - start) * Math.random());\n\t\treturn randomlong;\n\t}",
"long decodeLong();",
"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 }",
"private static int[] add(int[] x, int[] y) {\n // If x is shorter, swap the two arrays\n if (x.length < y.length) {\n int[] tmp = x;\n x = y;\n y = tmp;\n }\n\n int xIndex = x.length;\n int yIndex = y.length;\n int result[] = new int[xIndex];\n long sum = 0;\n if (yIndex == 1) {\n sum = (x[--xIndex] & LONG_MASK) + (y[0] & LONG_MASK) ;\n result[xIndex] = (int)sum;\n } else {\n // Add common parts of both numbers\n while (yIndex > 0) {\n sum = (x[--xIndex] & LONG_MASK) +\n (y[--yIndex] & LONG_MASK) + (sum >>> 32);\n result[xIndex] = (int)sum;\n }\n }\n // Copy remainder of longer number while carry propagation is required\n boolean carry = (sum >>> 32 != 0);\n while (xIndex > 0 && carry)\n carry = ((result[--xIndex] = x[xIndex] + 1) == 0);\n\n // Copy remainder of longer number\n while (xIndex > 0)\n result[--xIndex] = x[xIndex];\n\n // Grow result if necessary\n if (carry) {\n int bigger[] = new int[result.length + 1];\n System.arraycopy(result, 0, bigger, 1, result.length);\n bigger[0] = 0x01;\n return bigger;\n }\n return result;\n }",
"static void resta(){\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"Ingrese el primer numero binario: \");\n String bin1 = scanner.nextLine();\n\n System.out.print(\"Ingrese el segundo numero binario: \");\n String bin2 = scanner.nextLine();\n\n int A = Integer.parseInt(bin1,2);\n int B = Integer.parseInt(bin2,2);\n\n Long suma = (long) A + (~B + 1);\n\n System.out.println(\"\\nLa resta es: \" + Long.toBinaryString(suma)); \n \n scanner.close();\n }",
"public static long toInt64(byte[] value) {\r\n\t\treturn toInt16(value, 0);\r\n\t}",
"public static PersistentQueueX<Long> rangeLong(final long start, final long end) {\n return ReactiveSeq.rangeLong(start, end).to()\n .persistentQueueX(Evaluation.LAZY);\n }",
"static long add(long a, long b){\n\t\treturn a+b;\n\t}",
"public static long pair(long a, long b) {\n if (a > -1 || b > -1) {\n //Creating an array of the two inputs for comparison later\n long[] input = {a, b};\n\n //Using Cantors paring function to generate unique number\n long result = (long) (0.5 * (a + b) * (a + b + 1) + b);\n\n /*Calling depair function of the result which allows us to compare\n the results of the depair function with the two inputs of the pair\n function*/\n if (Arrays.equals(depair(result), input)) {\n return result; //Return the result\n } else {\n return -1; //Otherwise return rouge value\n }\n } else {\n return -1; //Otherwise return rouge value\n }\n }",
"private static void setBitAtGivenPositions(int pos1, int pos2) {\n\t\tlong temp1 = 1l << pos1;\n\t\tlong temp2 = 1l << pos2;\n\t\tlong result = temp1 | temp2;\n\t\tSystem.out.println(result);\n\t}",
"private long convertByteValueToLong(byte[] b) {\n long m = 0;\n for (int i = 0; i < b.length; i++) {\n m = m * 256 + (b[i] < 0 ? (256 + (long) b[i]) : b[i]);\n }\n return m;\n }",
"long mo25071a(long j);",
"private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }",
"public static Long getLong2(final Envelop envelop) {\n return In.request(envelop, 2, Long.class);\n }",
"public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }",
"public static long m33345a(long j, long j2) {\n long j3 = j + j2;\n if (j3 < 0) {\n return Long.MAX_VALUE;\n }\n return j3;\n }",
"private static long value(long x) {\n return (x<<1) >> 1; // 1\n }",
"public static int method_234(int var0, int var1, int var2) {\n return (var0 << 16) + (var1 << 8) + var2;\n }",
"static long andOperator(long x, long y)\n {\n long res = 0; // Initialize result\n while (x > 0 && y > 0) {\n // Find positions of MSB in x and y\n int msb_p1 = msbPos(x);\n int msb_p2 = msbPos(y);\n // If positions are not same, return\n if (msb_p1 != msb_p2)\n break;\n // Add 2^msb_p1 to result\n long msb_val = (1 << msb_p1);\n res = res + msb_val;\n // subtract 2^msb_p1 from x and y.\n x = x - msb_val;\n y = y - msb_val;\n }\n return res;\n }",
"private long getResultAsLong(long bitPos, int nrBits, ByteOrder byteOrder,\n int maxNrBitsRead) {\n\n // check if input params are correct otherwise throw BitBufferException\n validateInputParams(bitPos, nrBits, maxNrBitsRead);\n\n // min number of bytes covering specified bits\n int nrReadBytes = getNrNecessaryBytes(bitPos, nrBits);\n\n // buffer containing specified bits\n long numberBuf = getNumberBufAsLong(byteOrder, nrReadBytes,\n (int) (bitPos >> 3));\n\n // mask leaving only specified bits\n long mask = getMaskAsLong(nrBits);\n\n // apply the mask for to the right shifted number buffer with the\n // specific bits to the most right\n long result = mask\n & getRightShiftedNumberBufAsLong(numberBuf, bitPos, nrBits,\n byteOrder);\n\n // increase bit pointer position by the number of read bits\n this.bitPos = bitPos + nrBits;\n\n return result;\n }",
"public HugeUInt multiply(int arg) {\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < getSize(); i++) {\r\n int m = array[i] * arg + cur;\r\n cur = m / 10;\r\n result.array[i] = m % 10;\r\n }\r\n int[] tmp = new int[10];\r\n int ctr = 0;\r\n while (cur > 0) {\r\n tmp[ctr] = cur % 10;\r\n cur /= 10;\r\n ctr++;\r\n }\r\n int[] mult = new int[ctr+getSize()];\r\n if(ctr > 0){\r\n \tfor(int i = 0;i<getSize();i++){\r\n \t\tmult[i] = result.array[i];\r\n \t}\r\n \tfor(int i = 0;i<ctr;i++){\r\n \t\tmult[i+getSize()] = tmp[i];\r\n \t}\r\n \tresult.array = mult;\r\n }\r\n result.trim();\r\n return result;\r\n }",
"public synchronized static long ConvertSignedIntToLong ( int intToConvert)\n {\n int in = intToConvert;\n System.out.println (String.valueOf(in));\n\n in = ( in << 1 ) >> 1;\n\n long Lin = (long) in;\n Lin = Lin + 0x7FFFFFFF;\n\n return Lin;\n }",
"public ByteBuf writeLongLE(long value)\r\n/* 877: */ {\r\n/* 878:886 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 879:887 */ return super.writeLongLE(value);\r\n/* 880: */ }",
"@Test\n\tpublic void test_TCM__long_getLongValue() {\n final Attribute attribute = new Attribute(\"test\", \"\");\n long summand = 3;\n\t for(int i = 0; i < 60; i++) {\n summand <<= 1;\n final long value = Long.MIN_VALUE + summand;\n\n attribute.setValue(\"\" + value);\n \t\ttry {\n \t\t\tassertEquals(\"incorrect long conversion\", attribute.getLongValue(), value);\n \t\t} catch (final DataConversionException e) {\n \t\t\tfail(\"couldn't convert to long\");\n \t\t}\n }\n\n\t\t//test an invalid long\n attribute.setValue(\"100000000000000000000000000\");\n\t\ttry {\n attribute.getLongValue();\n\t\t\tfail(\"incorrect long conversion from non long\");\n\t\t} catch (final DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\t}",
"long mo107678c(Integer num);",
"public static long consecutiveBytesAsLong(byte... bytes) {\r\n\t\tlong result = 0;\r\n\t\tfor(int i=0; i<bytes.length; i++) {\r\n\t\t\tint shiftFactor = 8 * (bytes.length - (i + 1));\r\n\t\t\tresult += bytes[i] << shiftFactor;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public long getLongFromMemory(long number){\n\t\tif (number % 8L != 0L){\n\t\t\tSystem.out.println(\"Wrong number for access in memory\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tlong l1 = 0L;\n\t\ttry{\n\t\t\tint i = memory[((int)number / 4)];\n\t\t\tint j = memory[(((int)number + 4) / 4)];\n\t\t\tlong l3 = i;\n\t\t\tl3 &= 0xFFFFFFFFL; //bitwise AND with FFFFFFFF long\n\t\t\tlong l2 = j; \n\t\t\tl2 <<= 32;\t\t//shift 32 bits to left\n\t\t\tl1 = l2 | l3; \t//bitwise OR to get the result\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn l1;\n\t}",
"public final long fixed_64bit_literal() throws RecognitionException {\n long value = 0;\n\n\n int integer_literal47 = 0;\n long long_literal48 = 0;\n short short_literal49 = 0;\n byte byte_literal50 = 0;\n float float_literal51 = 0.0f;\n double double_literal52 = 0.0;\n char char_literal53 = 0;\n boolean bool_literal54 = false;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:301:3: ( integer_literal | long_literal | short_literal | byte_literal | float_literal | double_literal | char_literal | bool_literal )\n int alt11 = 8;\n switch (input.LA(1)) {\n case INTEGER_LITERAL: {\n alt11 = 1;\n }\n break;\n case LONG_LITERAL: {\n alt11 = 2;\n }\n break;\n case SHORT_LITERAL: {\n alt11 = 3;\n }\n break;\n case BYTE_LITERAL: {\n alt11 = 4;\n }\n break;\n case FLOAT_LITERAL: {\n alt11 = 5;\n }\n break;\n case DOUBLE_LITERAL: {\n alt11 = 6;\n }\n break;\n case CHAR_LITERAL: {\n alt11 = 7;\n }\n break;\n case BOOL_LITERAL: {\n alt11 = 8;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n throw nvae;\n }\n switch (alt11) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:301:5: integer_literal\n {\n pushFollow(FOLLOW_integer_literal_in_fixed_64bit_literal649);\n integer_literal47 = integer_literal();\n state._fsp--;\n\n value = integer_literal47;\n }\n break;\n case 2:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:302:5: long_literal\n {\n pushFollow(FOLLOW_long_literal_in_fixed_64bit_literal657);\n long_literal48 = long_literal();\n state._fsp--;\n\n value = long_literal48;\n }\n break;\n case 3:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:303:5: short_literal\n {\n pushFollow(FOLLOW_short_literal_in_fixed_64bit_literal665);\n short_literal49 = short_literal();\n state._fsp--;\n\n value = short_literal49;\n }\n break;\n case 4:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:304:5: byte_literal\n {\n pushFollow(FOLLOW_byte_literal_in_fixed_64bit_literal673);\n byte_literal50 = byte_literal();\n state._fsp--;\n\n value = byte_literal50;\n }\n break;\n case 5:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:305:5: float_literal\n {\n pushFollow(FOLLOW_float_literal_in_fixed_64bit_literal681);\n float_literal51 = float_literal();\n state._fsp--;\n\n value = Float.floatToRawIntBits(float_literal51);\n }\n break;\n case 6:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:306:5: double_literal\n {\n pushFollow(FOLLOW_double_literal_in_fixed_64bit_literal689);\n double_literal52 = double_literal();\n state._fsp--;\n\n value = Double.doubleToRawLongBits(double_literal52);\n }\n break;\n case 7:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:307:5: char_literal\n {\n pushFollow(FOLLOW_char_literal_in_fixed_64bit_literal697);\n char_literal53 = char_literal();\n state._fsp--;\n\n value = char_literal53;\n }\n break;\n case 8:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:308:5: bool_literal\n {\n pushFollow(FOLLOW_bool_literal_in_fixed_64bit_literal705);\n bool_literal54 = bool_literal();\n state._fsp--;\n\n value = bool_literal54 ? 1 : 0;\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }",
"public static long toNumber(final byte[] bytes, final int start, final int end) {\n\t\tlong result = 0;\n\t\tfor (int i = start; i < end; i++) {\n\t\t\tresult = (result << 8) | (bytes[i] & 0xff);\n\t\t}\n\t\treturn result;\n\t}",
"public long longValue(final int i) {\n if (isInteger(i)) {\n return values[i];\n }\n throw new ClassCastException(\"value #\" + i + \" is not a long in \" + this);\n }",
"private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }",
"private BigInteger(long val) {\n if (val < 0) {\n val = -val;\n signum = -1;\n } else {\n signum = 1;\n }\n\n int highWord = (int)(val >>> 32);\n if (highWord == 0) {\n mag = new int[1];\n mag[0] = (int)val;\n } else {\n mag = new int[2];\n mag[0] = highWord;\n mag[1] = (int)val;\n }\n }",
"public static long swap(long lValue)\n\t{\n\t\tlong lByte1 = lValue & 0xff;\n\t\tlong lByte2 = (lValue >> 8) & 0xff;\n\t\tlong lByte3 = (lValue >> 16) & 0xff;\n\t\tlong lByte4 = (lValue >> 24) & 0xff;\n\t\tlong lByte5 = (lValue >> 32) & 0xff;\n\t\tlong lByte6 = (lValue >> 40) & 0xff;\n\t\tlong lByte7 = (lValue >> 48) & 0xff;\n\t\tlong lByte8 = (lValue >> 56) & 0xff;\n\n\t\treturn (lByte1 << 56 | lByte2 << 48 | lByte3 << 40 | lByte4 << 32\n\t\t | lByte5 << 24 | lByte6 << 16 | lByte7 << 8 | lByte8);\n\t}",
"public void method_197(class_1549 var1, long var2) {}",
"public static int decodeLowBits(long l) {\n\n return (int) l;\n\n }",
"void test(long value, int lo, int hi) {\n int[] a = Longs.toInts(value);\n equals(lo,a[0]);\n equals(hi,a[1]);\n long same = Longs.fromInts(a);\n equals(value, same);\n }",
"public void pushLong (long aValue)\n\t{\n\t\tif (aValue == 0)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.LCONST_0);\n\t\t\treturn;\n\t\t}\n\t\telse if (aValue == 1)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.LCONST_1);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\titsVisitor.visitLdcInsn(new Long(aValue));\n\t}",
"public long longValue() {\r\n return intValue();\r\n }",
"private static final void encodeBEInt(int paramInt1, byte[] paramArrayOfByte, int paramInt2)\r\n/* 137: */ {\r\n/* 138:209 */ paramArrayOfByte[(paramInt2 + 0)] = ((byte)(paramInt1 >>> 24));\r\n/* 139:210 */ paramArrayOfByte[(paramInt2 + 1)] = ((byte)(paramInt1 >>> 16));\r\n/* 140:211 */ paramArrayOfByte[(paramInt2 + 2)] = ((byte)(paramInt1 >>> 8));\r\n/* 141:212 */ paramArrayOfByte[(paramInt2 + 3)] = ((byte)paramInt1);\r\n/* 142: */ }",
"Astro leafLong(long data, SourceSpan optSpan);",
"public long getLong(int pos) {\n return Tuples.toLong(getObject(pos));\n }",
"private void int_x_int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n long y = getIntOperand( nd, vms, 1 ) ;\r\n \r\n // Compute the value\r\n long value ;\r\n switch( op_code ) {\r\n case IMAX :\r\n value = Math.max(x, y) ;\r\n break ;\r\n case IMIN :\r\n value = Math.min(x, y) ;\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n putIntResult( nd, vms, value ) ;\r\n }",
"public static void main(String[] args) {\n\t\tbyte bs = -127;\n\t\t\n\t\tSystem.out.println(bs);\n\t\t\n\t\t//int iVal = 12345678900;\n\t\tlong lVal = 2147483647;\n\t\tlong lVal1 = 9999999999L; //기준 이상값을때는 L을 넣어주는것이 좋다.\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\t\t//int val = Integer.MAX_VALUE;\r\n\t\t//long biggerVal = val + 1;\r\n\t\t\r\n\t}",
"private long getNumberBufAsLong(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n long result = 0L;\n long bytePortion = 0L;\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 }",
"static bigint add_bigint_positif(bigint a, bigint b)\n {\n int len = Math.max(a.bigint_len, b.bigint_len) + 1;\n int retenue = 0;\n int[] chiffres = new int[len];\n for (int i = 0; i < len; i++)\n {\n int tmp = retenue;\n if (i < a.bigint_len)\n tmp += a.bigint_chiffres[i];\n if (i < b.bigint_len)\n tmp += b.bigint_chiffres[i];\n retenue = tmp / 10;\n chiffres[i] = tmp % 10;\n }\n while (len > 0 && chiffres[len - 1] == 0)\n len--;\n bigint f = new bigint();\n f.bigint_sign = true;\n f.bigint_len = len;\n f.bigint_chiffres = chiffres;\n return f;\n }",
"void writeLong(long value);",
"void writeLongs(long[] l, int off, int len) throws IOException;",
"public static void createListFromLong(ArrayList<Integer> list, long l) {\n\n\t\tint individualNum = 0;\n\t\n\t\twhile(l > 0) {\n\t\t\tindividualNum = (int) (l % 10);\n\t\t\tl /= 10;\n\t\t\t\n\t\t\tlist.add(individualNum);\n\t\t}\n\t\t\n\t\tCollections.reverse(list);\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }",
"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 }",
"private long byteToLong(byte b)\n\t{\n\t\treturn (b & 0xFF);\n\t}",
"protected static final int RES_GET_INT(long res) {\n return (((int) ((res) << 4)) >> 4);\n }",
"public static void main(String[] args) {\n int i = 1;\n int n = 100;\n for(;i<=n;i++){\n System.out.println(\"i:\" + i);\n }\n\n BigInteger bigInteger = BigInteger.valueOf(111L);\n bigInteger.longValue();\n }",
"public long toInt(boolean isSigned) {\r\n\t\treturn LLVMGenericValueToInt(ref, isSigned ? 1 : 0);\r\n\t}",
"public void testValueOfLong()\n {\n // let's test that creating a EthernetAddress from an zero long\n // gives a null EthernetAddress (definition of a null EthernetAddress)\n EthernetAddress ethernet_address =\n EthernetAddress.valueOf(0x0000000000000000L);\n assertEquals(\n \"EthernetAddress.valueOf did not create expected EthernetAddress\",\n NULL_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n \n // let's test creating an array from a good long\n ethernet_address =\n EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_LONG);\n assertEquals(\n \"EthernetAddress.valueOf did not create expected EthernetAddress\",\n VALID_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n }"
]
| [
"0.65051454",
"0.6455134",
"0.6453655",
"0.64294124",
"0.6175664",
"0.61665326",
"0.60749537",
"0.6073792",
"0.599345",
"0.59669995",
"0.5930954",
"0.5923311",
"0.5806199",
"0.57816815",
"0.5766425",
"0.5739991",
"0.5739991",
"0.5730201",
"0.5658317",
"0.5633873",
"0.56291866",
"0.56188434",
"0.5613134",
"0.55793864",
"0.55720717",
"0.5539116",
"0.5525554",
"0.54964566",
"0.54838866",
"0.5454619",
"0.54474896",
"0.5432693",
"0.5429333",
"0.5419154",
"0.54111075",
"0.5407081",
"0.53792965",
"0.537271",
"0.5368102",
"0.5350157",
"0.53085095",
"0.53012264",
"0.53012264",
"0.5275163",
"0.5254273",
"0.5250246",
"0.5207236",
"0.51969224",
"0.51860327",
"0.51812786",
"0.51746887",
"0.516609",
"0.51641077",
"0.5161013",
"0.51587707",
"0.51309603",
"0.51123106",
"0.5096789",
"0.50922716",
"0.5082407",
"0.5078997",
"0.50778615",
"0.5071652",
"0.5041608",
"0.50410235",
"0.50219697",
"0.5021821",
"0.502008",
"0.50137985",
"0.5012416",
"0.5004008",
"0.50039077",
"0.5003747",
"0.5001644",
"0.50014263",
"0.49988002",
"0.49881408",
"0.4979482",
"0.49712414",
"0.49703377",
"0.49647734",
"0.49465007",
"0.49447927",
"0.49444014",
"0.49336958",
"0.49325228",
"0.49304533",
"0.49245805",
"0.49233586",
"0.4922883",
"0.49102902",
"0.49061567",
"0.49005",
"0.4899318",
"0.48956636",
"0.48951894",
"0.4894644",
"0.48923945",
"0.48849368",
"0.48798603"
]
| 0.75907856 | 0 |
creates the database if it does not exist yet | @Override
public void onCreate(SQLiteDatabase db) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrings.createDB[i]);\n } catch (Exception e) {\n Logger.write(\"FATAL\", \"DB\", \"Failed to create databse: \" + e);\n }\n }",
"private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}",
"private void createDatabase() throws SQLException\r\n {\r\n myStmt.executeUpdate(\"create database \" + dbname);\r\n }",
"public void createDatabase() throws IOException{\r\n\r\n boolean dbDoesExist = checkDatabase();\r\n if(!dbDoesExist)\r\n {\r\n // Create or open db if db is not connected\r\n this.getReadableDatabase();\r\n try{\r\n createNewDB();\r\n }catch (IOException e){\r\n throw new Error(\"DB Copy Failed\");\r\n }\r\n }\r\n }",
"private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }",
"public void createDatabase() throws IOException {\n boolean dbExists = checkDatabase();\n\n if (dbExists) {\n // Do nothing - database already exists\n } else {\n // By calling this method an empty database will be created into the\n // default system path of our application so we are going to be able\n // to overwrite the database with our database.\n this.getReadableDatabase();\n\n try {\n copyDatabase();\n } catch (IOException e) {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"Database createDatabase();",
"public void createDataBase() throws IOException{\n \n \tboolean dbExist = checkDataBase();\n \t\n \n \tif(dbExist){\n \t\t//do nothing - database already exists\n \t\tLog.d(\"Database Check\", \"Database Exists\");\n\n \t}else{\n \t\tLog.d(\"Database Check\", \"Database Doesn't Exist\");\n \t\tthis.close();\n \t\t//By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n \tthis.getReadableDatabase();\n \tthis.close();\n \ttry {\n \t\t\tcopyDataBase();\n \t\t\tLog.d(\"Database Check\", \"Database Copied\");\n \n \t\t} catch (IOException e) {\n \t\tLog.d(\"I/O Error\", e.toString());\n\n \t\tthrow new Error(\"Error copying database\");\n \t}\n \tcatch (Exception e) { \n \t\tLog.d(\"Exception in createDatabase\", e.toString());\n \t\t\n \t}\n \t}\n \n }",
"public void dbCreate() throws IOException\n {\n boolean dbExist = dbCheck();\n\n if(!dbExist)\n {\n //By calling this method an empty database will be created into the default system patt\n //of the application so we can overwrite that db with our db.\n this.getReadableDatabase(); // create a new empty database in the correct path\n try\n {\n //copy the data from the database in the Assets folder to the new empty database\n copyDBFromAssets();\n }\n catch(IOException e)\n {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"public void createDataBase() throws IOException {\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n\n } else {\n this.getReadableDatabase();\n try {\n copyDataBase();\n } catch (IOException e) {\n Log.e(\"tle99 - create\", e.getMessage());\n }\n }\n }",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static void createDatabase() throws SQLException {\n\t\tSystem.out.println(\"DROP database IF EXISTS project02;\");\n\t\tstatement = connection.prepareStatement(\"DROP database IF EXISTS project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"CREATE database project02;\");\n\t\tstatement = connection.prepareStatement(\"CREATE database project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"USE project02;\");\n\t\tstatement = connection.prepareStatement(\"USE project02;\");\n\t\tstatement.executeUpdate();\n\t}",
"private boolean createDatabase(CreateDatabaseStatement cds) {\n\t\tif(dbs.containsKey(cds.dbname)) {\n\t\t\tSystem.out.println(\"Error: Can't create database \" + cds.dbname + \"; database exists\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tDatabase newdb = new Database();\n\t\t\tdbs.put(cds.dbname, newdb);\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t}",
"public synchronized void createIfNotExists(SQLiteDatabase db) {\n db.execSQL(SQL_CREATE_DATASOURCE);\n }",
"public static void createDatabaseIfNotExists() throws DaoException {\n\n Path data = Paths.get(DATA_DIR);\n if (!Files.exists(data)) {\n try {\n Files.createDirectory(data);\n Files.createDirectory(Paths.get(DATA_DIR, ACCOUNT_DATA_DIR));\n } catch (IOException ex) {\n throw new DaoException(\"Could not create data directory\", ex);\n }\n }\n\n }",
"void createDatabaseOnDevice() throws IOException {\n boolean databaseExists = checkIfDatabaseOnDevice();\n\n if (!databaseExists) {\n this.getReadableDatabase();\n\n try {\n copyDatabaseToDevice();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void createDatabase() throws IOException {\n boolean dbExist = checkDataBase();\n// if(dbExist) {\n// Log.d(\"E\", \"Database exists.\");\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error\", e.getMessage());\n// }\n// } else {\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error1\", e.getMessage());\n// }\n// }\n\n if (!dbExist) {\n this.getReadableDatabase();\n this.close();\n try {\n //Copy the database from assests\n copyDataBase();\n Log.e(TAG, \"createDatabase database created\");\n } catch (IOException mIOException) {\n throw new Error(\"ErrorCopyingDataBase\");\n }\n }\n\n }",
"private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createDatabase(String dbName, String owner) throws Exception;",
"void createDb(String dbName);",
"public static void createDB(String name) {\n\t\ttry {\n\t\t\tString Query = \"CREATE DATABASE \" + name;\n\t\t\tStatement st = conexion.createStatement();\n\t\t\tst.executeUpdate(Query);\n\t\t\tSystem.out.println(\"DB creada con exito!\");\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la DB \" + name + \"de forma exitosa.\");\n\t\t} catch (SQLException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\tSystem.out.println(\"Error creando la DB.\");\n\t\t}\n\t}",
"public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }",
"public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }",
"public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }",
"public static void createDatabase() throws ArcException {\n\t\tcreateDatabase(userWithRestrictedRights);\t\t\n\t}",
"private Connection createDatabase() {\n\t\tSystem.out.println(\"We are creating a database\");\n\t\ttry (\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/\", \n\t\t\t\t\t\t\"root\", \"root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\t) {\n\t\t\t// Step 3 - create our database\n\t\t\tString sql = \"CREATE DATABASE IF NOT EXISTS experiences\";\n\t\t\tstmt.execute(sql);\n\t\t\treturn conn;\n\t\t\t\n\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null; }\n\t}",
"public void creatDataBase(String dbName);",
"private void createDatabase() {\n String parentPath = mContext.getDatabasePath(DBNAME).getParent();\n String path = mContext.getDatabasePath(DBNAME).getPath();\n\n File file = new File(parentPath);\n if (!file.exists()) {\n if (!file.mkdir()) {\n Log.w(TAG, \"Unable to create database directory\");\n return;\n }\n }\n\n InputStream is = null;\n OutputStream os = null;\n try {\n is = mContext.getAssets().open(DBNAME);\n os = new FileOutputStream(path);\n\n byte[] buffer = new byte[1024];\n int length;\n while ((length = is.read(buffer)) > 0) {\n os.write(buffer, 0, length);\n }\n os.flush();\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SP_KEY_DB_VER, DATABASE_VERSION);\n editor.commit();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void createNewDB(String DB_Name) {\n //SQL statement\n String query = \"CREATE database if NOT EXISTS \" + DB_Name;\n\n try {\n //Connection\n stmt = con.createStatement();\n //Execute statement\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Database \" + DB_Name + \" created--\");\n } catch (SQLException ex) {\n //Handle SQL exceptions\n System.out.println(\"\\n--Statement did not execute--\");\n ex.printStackTrace();\n }\n }",
"public void createDatabase(String sDBName) throws SQLException{\n\t\tloadDriver();\n\t\tConnection conn = DriverManager.getConnection(protocol + dbName\n + \";create=true\", new Properties());\n\t\tcloseJDBCResources(conn);\t\t\n\t}",
"public void createDatabase(String databaseName)\n\t{\n\t\tclearConnection();\n\t\ttry\n\t\t{\n\t\t\tStatement createDatabaseStatement = databaseConnection.createStatement();\n\t\t\t\n\t\t\tint result = createDatabaseStatement.executeUpdate(\"CREATE DATABASE IF NOT EXISTS \" + databaseName + \";\");\n\t\t}\n\t\tcatch (SQLException currentSQLError)\n\t\t{\n\t\t\tdisplaySQLErrors(currentSQLError);\n\t\t}\n\t}",
"private void initialize() {\n if (databaseExists()) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n int dbVersion = prefs.getInt(SP_KEY_DB_VER, 1);\n if (DATABASE_VERSION != dbVersion) {\n File dbFile = mContext.getDatabasePath(DBNAME);\n if (!dbFile.delete()) {\n Log.w(TAG, \"Unable to update database\");\n }\n }\n }\n if (!databaseExists()) {\n createDatabase();\n }\n }",
"private void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n // do nothing - database already exist\n Log.d(\"DATABASE\",\"Database Exit Already.\");\n\n } else {\n\n // Create Folder\n String newFolder = \"/games\";\n String extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n File myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n// newFolder = \"/FishRisk/Game\";\n// extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n// myNewFolder = new File(extStorageDirectory + newFolder);\n// myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Report\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Config\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n //copyConfigFile();\n\n // By calling this method an empty database will be created into\n // the default system path\n // of your application so we are gonna be able to overwrite that\n // database with our database.\n this.getReadableDatabase();\n\n try {\n copyDataBase();\n copyConfigFile();\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public boolean databaseExists() {\n\t\treturn defaultDatabaseExists();\n\t}",
"public boolean databaseExists() {\n return defaultDatabaseExists();\n }",
"@Override\n\tpublic Database createDatabase(Type type) throws FSException {\n\t\treturn new DummyDatabase();\n\t}",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"public void createIntegrationTestDatabase() throws SQLException {\n\n final Connection connection = DriverManager.getConnection(url + \"postgres\", databaseProperties);\n\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_disassembly\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_import\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_empty\").execute();\n\n connection.prepareStatement(\"CREATE DATABASE test_disassembly\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_import\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_empty\").execute();\n\n connection.close();\n\n createDatabase(TEST_IMPORT);\n createDatabase(TEST_DISASSEMBLY);\n }",
"public void createDB() {\n String url = \"jdbc:sqlite:stats.db\";\n Statement stmt = null;\n try (Connection conn = DriverManager.getConnection(url)) {\n stmt = conn.createStatement();\n String query = \"CREATE TABLE IF NOT EXISTS games \"\n + \"(ownships int, \"\n + \"ownremaining int, \"\n + \"aiships int,\"\n + \"airemaining int, \"\n + \"turns int)\";\n\n stmt.executeUpdate(query);\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }",
"DataBase createDataBase();",
"public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}",
"private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}",
"public void createDB(String filename) throws SQLException {\n //System.out.printf(\"Connecting to the database %s.%n\", filename);\n /* \n * Connect to the database (file). If the file does not exist, create it.\n */\n Connection db_connection = DriverManager.getConnection(SQLITEDBPATH + filename);\n this.createTables(db_connection);\n this.initTableCities(db_connection);\n this.initTableTeams(db_connection);\n //System.out.printf(\"Connection to the database has been established.%n\");\n db_connection.close();\n //System.out.printf(\"Connection to the database has been closed.%n\");\n }",
"private void checkDB() {\n\t\tif (couchDB_ip == null) {\n\t\t\tsetCouchDB_ip();\n\t\t}\n\n\t\tif (!databaseExist) {\n\n\t\t\tsynchronized (databaseExist) {\n\n\t\t\t\tif (!databaseExist) {\n\n\t\t\t\t\tif (couchDB_USERNAME != null\n\t\t\t\t\t\t\t&& !couchDB_USERNAME.trim().isEmpty()\n\t\t\t\t\t\t\t&& couchDB_PASSWORD != null\n\t\t\t\t\t\t\t&& !couchDB_PASSWORD.trim().isEmpty()) {\n\t\t\t\t\t\tUsernamePasswordCredentials creds = new UsernamePasswordCredentials(\n\t\t\t\t\t\t\t\tcouchDB_USERNAME, couchDB_PASSWORD);\n\t\t\t\t\t\tauthentication = BasicScheme.authenticate(creds,\n\t\t\t\t\t\t\t\t\"US-ASCII\", false).toString();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (CouchDBUtil.checkDB(getCouchDB_ip(), couchDB_NAME,\n\t\t\t\t\t\t\t\tauthentication)) {\n\n\t\t\t\t\t\t\tdatabaseExist = true;\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tCouchDBUtil.createDb(getCouchDB_ip(), couchDB_NAME,\n\t\t\t\t\t\t\t\t\tauthentication);\n\t\t\t\t\t\t\tdatabaseExist = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\tlogger.info(\"Impossible to access CouchDB\", e);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public Database getAndInitialize() throws IOException {\n Database database = Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseConnected(databaseName));\n\n new ExceptionWrappingDatabase(database).transaction(ctx -> {\n boolean hasTables = tableNames.stream().allMatch(tableName -> hasTable(ctx, tableName));\n if (hasTables) {\n LOGGER.info(\"The {} database has been initialized\", databaseName);\n return null;\n }\n LOGGER.info(\"The {} database has not been initialized; initializing it with schema: {}\", databaseName, initialSchema);\n ctx.execute(initialSchema);\n return null;\n });\n\n return database;\n }",
"public boolean checkIfDatabaseExists() {\r\n return database.exists();\r\n }",
"protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.get(this.getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getClassLoader()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getResource(\"create-campina-schema.sql\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toURI()), Charset.forName(\"UTF-8\"));\n\n\t\t\tfinal List<String> statements = new ArrayList<>(lines.size());\n\t\t\tString statement = \"\";\n\t\t\tfor (String string : lines) {\n\t\t\t\tstatement += \" \" + string;\n\t\t\t\tif (string.endsWith(\";\")) {\n\t\t\t\t\tstatements.add(statement);\n\t\t\t\t\tstatement = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(\"DROP SCHEMA IF EXISTS campina\")) {\n\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t}\n\t\t\t\tfor (String string : statements) {\n\t\t\t\t\tlog.info(\"Executing ddl: \" + string);\n\t\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(string)) {\n\t\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new IllegalStateException(\"Could not setup db\", e);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tlog.error(\"Could not setup database\", e);\n\t\t\tthrow new IllegalStateException(\"ddl file load failed\", e);\n\t\t}\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database finished\");\n\t\tlog.info(\"------------------------------------------\");\n\t}",
"private void initDatabase() {\n\n String sql = \"CREATE TABLE IF NOT EXISTS books (\\n\"\n + \"\tISBN integer PRIMARY KEY,\\n\"\n + \"\tBookName text NOT NULL,\\n\"\n + \" AuthorName text NOT NULL, \\n\"\n + \"\tPrice integer\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(urlPath);\n Statement stmt = conn.createStatement()) {\n System.out.println(\"Database connected\");\n stmt.execute(sql);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}",
"@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }",
"private void createNewDatabase() throws ConnectException {\n try (Connection sqlConnection = connect()) {\n if (sqlConnection != null) {\n sqlConnection.getMetaData();\n sqlConnection.close();\n }\n\n } catch (SQLException e) {\n LOGGER.error(\"Error when trying to create new database: {}\\n{}\", e.getMessage(), e);\n }\n }",
"public void createNewDatabase(String dbName) {\r\n\t\t// connects to given database - relative path points to inside project folder\r\n\t\ttry {\r\n\t\t\tConnection conn = this.connect(dbName);\t\t\t\t\t\t// open connection\r\n\t\t\tif (conn != null) {\r\n\t\t\t\tDatabaseMetaData meta = conn.getMetaData();\r\n\t\t\t\tSystem.out.println(\"The driver name is \" + meta.getDriverName());\r\n\t\t\t\tSystem.out.println(\"A new database has been created.\");\r\n\t\t\t}\r\n\t\t\tconn.close(); \t\t\t\t\t\t\t\t\t\t\t\t// close connection\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"private boolean databaseExists() {\n File dbFile = mContext.getDatabasePath(DBNAME);\n return dbFile.exists();\n }",
"@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }",
"@Override\n public boolean onCreate() {\n Log.e(TAG,\"onCreate\");\n DatabaseHelper.createDatabase(getContext(), new AppDb());\n return true;\n }",
"private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}",
"boolean hasDatabase();",
"private boolean databaseExists() {\n SQLiteDatabase checkDB = null;\n try {\n String myPath = DATABASE_PATH + DATABASE_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);\n } catch (SQLiteException e) {\n Log.i(\"burra\",\"Database \"+DATABASE_PATH+DATABASE_NAME+\"not found. Will copy from assets folder\");\n }\n if(null!=checkDB){\n checkDB.close();\n return true;\n }\n return false;\n }",
"private boolean initDB() {\n\t\tDataBaseHelper myDbHelper = new DataBaseHelper(this);\n\t\tif (!myDbHelper.checkDataBase()) {\n\t\t\tmyDbHelper.dbDelete();\n\t\t\tdownloadDB();\n\t\t\treturn false;\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tif (!myDbHelper.openDataBase()) {\n\t\t\t\t\tLog.e(TAG, \"Unable to open database\");\n\t\t\t\t\tstopService();\n\t\t\t\t\tmyDbHelper.dbDelete();\n\t\t\t\t\tdownloadDB();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Unable to open database\", e);\n\t\t\t\tstopService();\n\t\t\t\tmyDbHelper.dbDelete();\n\t\t\t\tdownloadDB();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstartSync();\n\t\t\t\treturn initUI();\n\t\t\t} catch (Exception ioe) {\n\t\t\t\tLog.e(TAG, \"Unable to launch activity\");\n\t\t\t}\n\n\t\t}\n\n\t\treturn false;\n\t}",
"public void initializeDataBase() {\r\n\r\n\r\n\r\n\t\tgetWritableDatabase();\r\n\t\tLog.e(\"DBHelper initializeDataBase \", \"Entered\");\r\n\t\tcreateDatabase = true;\r\n\t\tif (createDatabase) {\r\n\t\t\tLog.e(\"DBHelper createDatabase \", \"true\");\r\n\t\t\t/*\r\n\t\t\t * If the database is created by the copy method, then the creation\r\n\t\t\t * code needs to go here. This method consists of copying the new\r\n\t\t\t * database from assets into internal storage and then caching it.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t} \r\n\t\telse if (upgradeDatabase) \r\n\t\t{\r\n\t\t\tLog.e(\"DBHelper upgradeDatabase \", \"true\");\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tLog.e(\"DBHelper clear \", \"true\");\r\n\t}",
"public static void createNewDatabaseFile(String startPath)\r\n throws ConnectionFailedException, DatabaseException {\r\n boolean databaseCreated;\r\n try {\r\n databaseCreated = database.createNewFile();\r\n if (!databaseCreated) {\r\n throw new IOException(\"Cannot create file\");\r\n }\r\n\r\n URL databaseResource = Objects.requireNonNull(Paths.get(\r\n startPath + \"resources/database/database.sql\").toUri().toURL());\r\n String decodedPath = URLDecoder.decode(databaseResource.getPath(), \"UTF-8\");\r\n\r\n try (BufferedReader in = new BufferedReader(new FileReader(decodedPath))) {\r\n StringBuilder sqlQuery = new StringBuilder();\r\n while (in.ready()) {\r\n sqlQuery.append(in.readLine());\r\n if (sqlQuery.toString().endsWith(\";\")) {\r\n createBasicSqlTable(sqlQuery.toString());\r\n sqlQuery = new StringBuilder();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throwException(e);\r\n }\r\n }",
"public MongoDatabase createDatabase(MongoClient mongoClient) {\n\t\ttry {\n\t \tmongoClient.dropDatabase(GenericConstants.dbName);\n\t }catch(Exception e){}\n\t MongoDatabase database = mongoClient.getDatabase(GenericConstants.dbName);\n\t\tSystem.out.println(\"Connected to the database successfully\");\n\t return database;\n\t}",
"private DBManager() throws Exception {\n file = new File(\"pdfLibraryDB.mv.db\");\n if (!file.exists()) {\n conn = connect();\n stmt = conn.createStatement();\n query = \"CREATE TABLE user(username VARCHAR(30) PRIMARY KEY, password VARCHAR(32));\" +\n \"CREATE TABLE category(id VARCHAR(30) PRIMARY KEY, name VARCHAR(30), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\"+\n \"CREATE TABLE favorite(id VARCHAR(30) PRIMARY KEY, path VARCHAR(500), keyword VARCHAR(200), searchType VARCHAR(10), category VARCHAR(30),username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY(category) REFERENCES category(id) ON UPDATE CASCADE ON DELETE CASCADE);\" +\n \"CREATE TABLE history(id VARCHAR(30) PRIMARY KEY, keyword VARCHAR(200), type VARCHAR(10), directory VARCHAR(500), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\";\n stmt.executeUpdate(query);\n stmt.close();\n conn.close();\n System.out.println(\"DB created!\");\n }\n }",
"public static boolean createDBDir() {\n return (new File(path)).mkdirs();\n }",
"private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}",
"long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);",
"private void backUpDb() throws FileNotFoundException, IOException {\n backUpDb(Options.toString(Options.DATABASE));\n }",
"public synchronized boolean existsDatabase() throws IOException {\n return existsDatabase(database.get(), null);\n }",
"@Override\n public Database getInitialized() {\n return Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseReady);\n }",
"public void setCheckDatabaseExistence(boolean checkDatabaseExistence) {\n this.checkDatabaseExistence = checkDatabaseExistence;\n }",
"private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}",
"public void createDatabaseFromAssets() throws IOException {\n try {\n copyDatabase();\n }\n catch (IOException e) {\n LogUtility.NoteLog(e);\n throw new Error(\"Error copying database\");\n }\n }",
"private static void doCreate(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** execute doCreate\");\r\n final Version version = new Version(VERSION_1, Names.GHOST_SMS, DateTimeUtils.currentDateWithoutSeconds());\r\n Versions.insert(db, version);\r\n doUpgrade(db, version.version);\r\n }",
"@Override\n public void onCreate(SQLiteDatabase _db) {\n _db.execSQL(DATABASE_CREATE);\n }",
"protected abstract ODatabaseInternal<?> newDatabase();",
"public void testEmptyDbSetup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(0));\n sqlDbManager.setTargetDatabaseVersion(0);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }",
"private Boolean initSqlConnection(String url, String user, String pass) {\n\t\t\n\t\ttry {\n\t\t\tBoolean exists = false;\n\t\t\tClass.forName(SQL_DRIVER);\n\t\t\tConnection sqlConn = DriverManager.getConnection(url, user, pass);\n\t\t\tDatabaseMetaData dm = sqlConn.getMetaData();\n\t\t\tResultSet rs = dm.getCatalogs();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tif (rs.getString(\"TABLE_CAT\").compareTo(DB_NAME) == 0) { exists = true; }\n\t\t\t}\n\t\t\t\n\t\t\tif (exists == false) {\n\t\t\t\tStatement smt = sqlConn.createStatement();\n\t\t\t\tsmt.executeUpdate(\"CREATE DATABASE \" + DB_NAME);\n\t\t\t\tsmt.close();\n\t\t\t\tplugin.sendToLog(\"SQL Database not found, creating database: mc_bukkit_naw\");\t\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tsqlConn.close();\n\t\t\tsqlConn = DriverManager.getConnection(url + DB_NAME, user, pass);\n\t\t\tplugin.sendToLog(\"SQL Database connection initialized\");\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\tplugin.sendToLog(\"SQL Database connection failed!: \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public static LocalDatabase dbSetup(String name)\n\t{\n\t\tLocalDatabase local = new LocalDatabase(name);\n\t\tlocal.loadDriver();\n\t\tlocal.openConnection();\n\t\tlocal.createTablePersons();\n\t\tlocal.createTableListenings();\n\t\tlocal.createTableRecordings();\n\t\tlocal.closeConnection();\n\t\treturn local;\n\t}",
"public static void SetupDB() {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS User(email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS FriendList(ID INTEGER PRIMARY KEY, email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS Category(ID INTEGER PRIMARY KEY,name TEXT);\");\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tcreateTables(database);\n\t}",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n String sql = \"drop table \" + MelodyData.CreateDB._TABLENAME;\n sqLiteDatabase.execSQL(AccompanimentData.CreateDB._CREATE);\n sqLiteDatabase.execSQL(MelodyData.CreateDB._CREATE);\n }",
"public boolean initDB() {\n System.out.println(\"initDB\");\n\n boolean initOK = false;\n\n String s;\n StringBuilder sb = new StringBuilder();\n\n try {\n FileReader fr = new FileReader(new File(\"resources\\\\initDB.sql\"));\n BufferedReader br = new BufferedReader(fr);\n\n while ((s = br.readLine()) != null) {\n sb.append(s);\n }\n br.close();\n\n String[] inst = sb.toString().split(\";\");\n\n Statement stmt = getConnection().createStatement();\n\n for (int i = 0, instLength = inst.length; i < instLength; i++) {\n String anInst = inst[i];\n if (!anInst.trim().equals(\"\")) {\n System.out.println(i + \": \" + anInst);\n\n try {\n stmt.executeUpdate(anInst);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }\n }\n\n initOK = true;\n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n// throw new RuntimeException(ex);\n } catch (SQLException ex) {\n ex.printStackTrace();\n// throw new RuntimeException(ex);\n } catch (IOException ex) {\n ex.printStackTrace();\n// throw new RuntimeException(ex);\n } catch (NullPointerException ex) {\n ex.printStackTrace();\n }\n\n return initOK;\n }",
"public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }",
"public static boolean DBExists() {\n File edb = new File(path + \"/turtlenet.db.aes\");\n File db = new File(path + \"/turtlenet.db\");\n return db.exists() || edb.exists();\n }",
"public boolean initializeDB() {\n return false;\n }",
"private boolean checkDataBase(){\n\n SQLiteDatabase checkDB = null;\n\n try{\n String myPath = DB_PATH + DB_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);\n\n }catch(SQLiteException e){\n\n //database does't exist yet.\n\n }\n\n if(checkDB != null){\n\n checkDB.close();\n\n }\n\n return checkDB != null ? true : false;\n }",
"private boolean checkDataBase(){\n\n SQLiteDatabase checkDB = null;\n\n try{\n String myPath = DB_PATH + DB_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);\n\n }catch(SQLiteException e){\n\n //database does't exist yet.\n\n }\n\n if(checkDB != null){\n\n checkDB.close();\n\n }\n\n return checkDB != null ? true : false;\n }",
"boolean dbExists(String dbName);",
"@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }",
"private DB getDB() {\n\t\tServletContext context = this.getServletContext();\n\t\tsynchronized (context) {\n\t\t\tDB db = (DB)context.getAttribute(\"DB\");\n\t\t\tif(db == null) {\n\t\t\t\tdb = DBMaker.newFileDB(new File(\"db\")).closeOnJvmShutdown().make();\n\t\t\t\tcontext.setAttribute(\"DB\", db);\n\t\t\t}\n\t\t\tcheckAdminInDB(db);\n\t\t\tcheckCategoriaInDB(db);\n\t\t\treturn db;\n\t\t}\n\t}",
"private void createDatabase(final String databaseName) {\n\n try {\n final Connection connection =\n DriverManager.getConnection(url + databaseName, databaseProperties);\n\n try {\n NaviLogger.info(\"[i] Generating database tables for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_schema.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final File testDataDir = new File(\n \"./third_party/zynamics/javatests/com/google/security/zynamics/binnavi/testdata/\"\n + databaseName + \"/\");\n\n final CopyManager manager = new CopyManager((BaseConnection) connection);\n\n for (final File currentFile : testDataDir.listFiles()) {\n try (FileReader reader = new FileReader(currentFile)) {\n final String tableName = currentFile.getName().split(\".sql\")[0];\n NaviLogger.info(\"[i] Importing: %s.%s from %s\", databaseName, tableName,\n currentFile.getAbsolutePath());\n manager.copyIn(\"COPY \" + tableName + \" FROM STDIN\", reader);\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n }\n\n try {\n NaviLogger.warning(\"[i] Generating constraints for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_constraints.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final String findSequencesQuery = \"SELECT 'SELECT SETVAL(' ||quote_literal(S.relname)|| \"\n + \"', MAX(' ||quote_ident(C.attname)|| ') ) FROM ' ||quote_ident(T.relname)|| ';' \"\n + \" FROM pg_class AS S, pg_depend AS D, pg_class AS T, pg_attribute AS C \"\n + \" WHERE S.relkind = 'S' AND S.oid = D.objid AND D.refobjid = T.oid \"\n + \" AND D.refobjid = C.attrelid AND D.refobjsubid = C.attnum ORDER BY S.relname; \";\n\n try (PreparedStatement statement = connection.prepareStatement(findSequencesQuery);\n ResultSet resultSet = statement.executeQuery()) {\n while (resultSet.next()) {\n final PreparedStatement fixSequence = connection.prepareStatement(resultSet.getString(1));\n fixSequence.execute();\n }\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n }",
"private boolean checkDataBase() {\n\n SQLiteDatabase checkDB = null;\n\n try {\n String myPath = DB_PATH + DATABASE_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null,\n SQLiteDatabase.OPEN_READONLY);\n\n } catch (SQLiteException e) {\n\n // database doesn't exist yet.\n Log.d(\"DATABASE\",\"Database doesn't exist yet.\");\n }\n\n if (checkDB != null) {\n checkDB.close();\n }\n return checkDB != null;\n }",
"@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }",
"@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }"
]
| [
"0.80305874",
"0.79584855",
"0.790113",
"0.778937",
"0.7755077",
"0.7645161",
"0.7599415",
"0.7590311",
"0.7585238",
"0.75585383",
"0.75585383",
"0.74234253",
"0.74108887",
"0.74057007",
"0.73746455",
"0.7300596",
"0.7288773",
"0.7259145",
"0.72456264",
"0.7242858",
"0.7238102",
"0.7213796",
"0.7212132",
"0.718159",
"0.71555996",
"0.71145326",
"0.7058791",
"0.70247847",
"0.70216316",
"0.7015619",
"0.70127904",
"0.6967118",
"0.6951922",
"0.69254047",
"0.68965757",
"0.6867403",
"0.6864467",
"0.6857337",
"0.68085575",
"0.6782925",
"0.6781457",
"0.6764299",
"0.67621225",
"0.67363274",
"0.6735492",
"0.6729381",
"0.66787076",
"0.66688734",
"0.662719",
"0.66233677",
"0.65993315",
"0.6563354",
"0.65618485",
"0.654214",
"0.65373915",
"0.65368676",
"0.65348274",
"0.65297735",
"0.6500268",
"0.6498927",
"0.6488014",
"0.645166",
"0.64501095",
"0.64414006",
"0.64374393",
"0.6431925",
"0.64264196",
"0.64202344",
"0.6391941",
"0.63855505",
"0.63847584",
"0.63784146",
"0.6356291",
"0.6331455",
"0.6309709",
"0.63029444",
"0.62939376",
"0.6293918",
"0.62732404",
"0.6252788",
"0.62508684",
"0.62468165",
"0.6236577",
"0.62135595",
"0.62042856",
"0.61898905",
"0.6189373",
"0.6187275",
"0.6183262",
"0.61672366",
"0.6166273",
"0.61643064",
"0.61503214",
"0.61503214",
"0.61313754",
"0.6131364",
"0.61270624",
"0.61255145",
"0.61229825",
"0.6121602",
"0.6121602"
]
| 0.0 | -1 |
upgrades the database if its version has changed | @Override
public void onUpgrade( SQLiteDatabase db, int oldVersion, int newVersion ) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doUpgrade() {\n // implement the database upgrade here.\n }",
"private static void doUpgrade(SQLiteDatabase db, Integer oldVersion) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"****** last version [%s]: %s\", Names.GHOST_SMS, oldVersion);\r\n if (CURRENT_VERSION.equals(oldVersion)) {\r\n return;\r\n } else if (VERSION_1.equals(oldVersion)) {\r\n upgradeFrom_1_to_2(db);\r\n }\r\n }",
"public void upgrade() {\n\t\t\tLog.w(\"\" + this, \"Upgrading database \"+ db.getPath() + \" from version \" + db.getVersion() + \" to \"\n\t + DATABASE_VERSION + \", which will destroy all old data\");\n\t db.execSQL(\"DROP TABLE IF EXISTS agencies\");\n\t db.execSQL(\"DROP TABLE IF EXISTS stops\");\n\t create();\n\t\t}",
"private static void upgradeFrom_1_to_2(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** Upgrade database from version [%s] to version [%s]\", VERSION_1, CURRENT_VERSION);\r\n\r\n //1- do migrations\r\n db.execSQL(Parameters.QUERY_CREATE);\r\n db.execSQL(Versions.QUERY_CREATE);\r\n //2- update application version value\r\n Versions.update(db, Names.GHOST_SMS, VERSION_1, VERSION_2);\r\n }",
"@Override\n\t\t\t\t\tpublic void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n\t\t\t\t\t}",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"protected abstract String upgradeSql(int oldVersion, int newVersion);",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tupgradeDatabase = true;\r\n\t}",
"@Override\n\tpublic boolean upgrade() {\n\t\treturn true;\n\t}",
"private boolean upgradeToVersion2(SQLiteDatabase db) {\n\n\t\tboolean upgraded = false;\n\n\t\t// DQDebugHelper.printData(\"query\", \"in method upgradeToVersion2\");\n\t\ttry {\n\n\t\t\tupgraded = true;\n\t\t} catch (final SQLException exception) {\n\t\t\tDQDebugHelper.printAndTrackException(exception);\n\t\t}\n\n\t\treturn upgraded;\n\t}",
"private void doUpgrade() {\n // implement the database upgrade here.\n Log.w(\"ACTUALIZANDO\",\"se actualizara la base de datos\");\n updateDatabase();\n }",
"@Override\n public void reDownloadDB(String newVersion)\n {\n }",
"public void testDatabaseUpgrade_Incremental() {\n create1108(mDb);\n upgradeTo1109();\n upgradeTo1110();\n assertDatabaseStructureSameAsList(TABLE_LIST, /* isNewDatabase =*/ false);\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tSystem.out.println(\"the database is onupgrade\");\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n if(newVersion > oldVersion){\n try {\n this.dbCreate();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion > newVersion) {\n // TODO: lanzar excepcion\n } else {\n /*\n * por cada version de base de datos existe un script que actualiza\n * la misma a su version inmediata superior, ejecutar cada uno de\n * los scripts desde la version inicial (oldVersion) hasta la\n * version final (newVersion), esto para no crear archivos cada vez\n * mas grandes, sino simplemente ir actualizando la base a versiones\n * inmediatamente superiores hasta llegar a la version final\n */\n\n for (int versionToUpgrade = oldVersion + 1; versionToUpgrade <= newVersion; versionToUpgrade++) {\n executeSQLScript(db, \"sql/cstigo_v\" + (versionToUpgrade - 1)\n + \"to\" + versionToUpgrade + \".sql\");\n }\n }\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {\n\r\n\t}",
"public static void checkForUpgrade(SQLiteDatabase db) {\r\n final Optional<Version> version = Versions.getVersion(db, Names.GHOST_SMS, null); // get last saved version\r\n if (version.isPresent()) {\r\n doUpgrade(db, version.get().version);\r\n } else {\r\n doCreate(db);\r\n }\r\n\r\n }",
"@SuppressWarnings({\"checkstyle:FallThrough\"})\n @Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n try {\n Timber.i(\"Upgrading database from version %d to %d\", oldVersion, newVersion);\n\n upgrade(db);\n\n Timber.i(\"Upgrading database from version %d to %d completed with success.\", oldVersion, newVersion);\n isDatabaseBeingMigrated = false;\n } catch (SQLException e) {\n isDatabaseBeingMigrated = false;\n throw e;\n }\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n public void upgrade() throws Exception {\n // all old CDAP tables used to be in the default database\n LOG.info(\"Checking for tables that need upgrade...\");\n List<TableNameInfo> tables = getTables(\"default\");\n\n for (TableNameInfo tableNameInfo : tables) {\n String tableName = tableNameInfo.getTableName();\n TableInfo tableInfo = getTableInfo(tableNameInfo.getDatabaseName(), tableName);\n if (!requiresUpgrade(tableInfo)) {\n continue;\n }\n\n // wait for dataset service to come up. it will be needed when creating tables\n waitForDatasetService(600);\n\n String storageHandler = tableInfo.getParameters().get(\"storage_handler\");\n if (StreamStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading stream table {}\", tableName);\n upgradeStreamTable(tableInfo);\n } else if (DatasetStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading record scannable dataset table {}.\", tableName);\n upgradeRecordScannableTable(tableInfo);\n } else if (tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading file set table {}.\", tableName);\n // handle filesets differently since they can have partitions,\n // and dropping the table will remove all partitions\n upgradeFilesetTable(tableInfo);\n }\n }\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // The database is still at version 1, so there's nothing to do be done here.\n Log.e(LOG_TAG, \"Updating table from \" + oldVersion + \" to \" + newVersion);\n\n }",
"public abstract void doUpgrade();",
"@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n }",
"@Override\n public void updateDatabase() {\n }",
"abstract public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion);",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n\t\treturn;\r\n\t}",
"@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (newVersion > oldVersion) {\n }\n }",
"@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {\n\t\tSystem.out.println(\"update a Database\");\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"protected void migrate() {\r\n java.util.Date dateNow = new java.util.Date();\r\n SQLiteBuilder builder = createBuilder();\r\n for (AbstractTable<?, ?, ?> table : tables) {\r\n if (table.migrated() < table.migrations()) {\r\n //FIXME this doesn't yet implement table updates.\r\n builder.createMigration(table).up(this);\r\n VersionRecord<DBT> v = _versions.create();\r\n v.table.set(table.helper.getTable().getRecordSource().tableName);\r\n v.version.set(1);\r\n v.updated.set(dateNow);\r\n v.insert();\r\n }\r\n }\r\n }",
"@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \n \t}",
"private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }",
"@Override\r\n public void onUpgrade(SQLiteDatabase db,\r\n int oldVersion,\r\n int newVersion)\r\n {\n }",
"private void updateDB() {\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion,\n int newVersion)\n {\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t}",
"void onUpdate(SQLiteDatabase database, int oldVersion, int newVersion, boolean upgrade);",
"private static SQLiteDatabase upgradeDB(SQLiteDatabase mMetaDb, int databaseVersion) {\n Log.i(AnkiDroidApp.TAG, \"Upgrading Internal Database..\");\n // if (mMetaDb.getVersion() == 0) {\n Log.i(AnkiDroidApp.TAG, \"Applying changes for version: 0\");\n // Create tables if not exist\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS languages (\" + \" _id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, modelid INTEGER NOT NULL, \" + \"cardmodelid INTEGER NOT NULL, \"\n + \"qa INTEGER, \" + \"language TEXT)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS whiteboardState (\" + \"_id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, \" + \"state INTEGER)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS customDictionary (\" + \"_id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, \" + \"dictionary INTEGER)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS intentInformation (\" + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"source TEXT NOT NULL, \" + \"target INTEGER NOT NULL)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS smallWidgetStatus (\" + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"progress INTEGER NOT NULL, left INTEGER NOT NULL, eta INTEGER NOT NULL)\");\n // Use pragma to get info about widgetStatus.\n Cursor c = mMetaDb.rawQuery(\"PRAGMA table_info(widgetStatus)\", null);\n int columnNumber = c.getCount();\n if (columnNumber > 0) {\n if (columnNumber < 7) {\n mMetaDb.execSQL(\"ALTER TABLE widgetStatus \" + \"ADD COLUMN eta INTEGER NOT NULL DEFAULT '0'\");\n mMetaDb.execSQL(\"ALTER TABLE widgetStatus \" + \"ADD COLUMN time INTEGER NOT NULL DEFAULT '0'\");\n }\n } else {\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS widgetStatus (\" + \"deckId INTEGER NOT NULL PRIMARY KEY, \"\n + \"deckName TEXT NOT NULL, \" + \"newCards INTEGER NOT NULL, \" + \"lrnCards INTEGER NOT NULL, \"\n + \"dueCards INTEGER NOT NULL, \" + \"progress INTEGER NOT NULL, \" + \"eta INTEGER NOT NULL)\");\n }\n // }\n mMetaDb.setVersion(databaseVersion);\n Log.i(AnkiDroidApp.TAG, \"Upgrading Internal Database finished. New version: \" + databaseVersion);\n return mMetaDb;\n }",
"void onUpdate(SQLiteDatabase db, int oldVersion, int newVersion, boolean upgrade);",
"@Override\n public void onUpgrade( SQLiteDatabase db, int oldVersion, int newVersion )\n {\n }",
"public abstract void upgrade();",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.d(TAG, \"update sqlite database\");\n int version = oldVersion;\n if (version < 8) {\n version = 8;\n }\n if (version != DATABASE_VERSION) {\n Log.d(TAG, \"destorying all old data\");\n db.execSQL(\"DROP TABLE IF EXISTS \" + Tables.DAILY_RANK);\n db.execSQL(\"DROP TABLE IF EXISTS \" + Ranks.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + ManualList.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + Apps.TABLE_NAME);\n onCreate(db);\n }\t\n }",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }"
]
| [
"0.7686865",
"0.7452608",
"0.73877406",
"0.7342601",
"0.71664745",
"0.714287",
"0.7102129",
"0.7094961",
"0.70507556",
"0.70340246",
"0.7014905",
"0.6974262",
"0.69387627",
"0.6896256",
"0.6891337",
"0.6889849",
"0.6888979",
"0.6879214",
"0.6830939",
"0.6822489",
"0.6802351",
"0.67853445",
"0.67853445",
"0.6763958",
"0.67262065",
"0.6708749",
"0.6684319",
"0.6639576",
"0.663574",
"0.66244376",
"0.6608246",
"0.659856",
"0.659611",
"0.6577266",
"0.6577266",
"0.6577266",
"0.6577266",
"0.6577266",
"0.65746295",
"0.6570424",
"0.6549382",
"0.6541901",
"0.6541901",
"0.6541901",
"0.6521486",
"0.65212375",
"0.6521116",
"0.6504895",
"0.65024173",
"0.6490913",
"0.6490913",
"0.6490913",
"0.648873",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64865595",
"0.64851385",
"0.6484772",
"0.64746314",
"0.6466968",
"0.6461951",
"0.64527434",
"0.64527434",
"0.64527434",
"0.64527434",
"0.64527434",
"0.64527434",
"0.64527434",
"0.6445304",
"0.6442571",
"0.6442571",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64416",
"0.64407134",
"0.64407134",
"0.64407134",
"0.64173216",
"0.64173216",
"0.64173216"
]
| 0.6472133 | 70 |
TODO Autogenerated method stub | @Override
public void inativar(EntidadeDominio entidade) {
PreparedStatement pst=null;
Livro livro = (Livro)entidade;
try {
openConnection();
connection.setAutoCommit(false);
StringBuilder sql = new StringBuilder();
sql.append("UPDATE livro SET livStatus=?");
sql.append("WHERE idlivro=?");
pst = connection.prepareStatement(sql.toString());
pst.setString(1, "INATIVADO");
pst.setInt(2, livro.getId());
pst.executeUpdate();
connection.commit();
} catch (SQLException e) {
try {
connection.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
pst.close();
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
//SEGUNDA PARTE
try {
openConnection();
connection.setAutoCommit(false);
//FALTA COLOCAR EDITORA
StringBuilder sql = new StringBuilder();
System.out.println(livro.getId());
System.out.println(livro.getJustificativa());
System.out.println(livro.getIdCatJustificativa());
sql.append("INSERT INTO justificativainativar (id_livro , justificativa, id_Inativar) VALUES (?,?,?)");
pst = connection.prepareStatement(sql.toString());
pst.setInt(1, livro.getId());
pst.setString(2,livro.getJustificativa());
pst.setInt(3,livro.getIdCatJustificativa());
pst.executeUpdate();
connection.commit();
} catch (SQLException e) {
try {
connection.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
pst.close();
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
} | {
"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 List<EntidadeDominio> Visualizar(EntidadeDominio entidade) {
Livro livro = (Livro)entidade;
PreparedStatement pst = null;
PreparedStatement pst2 = null;
PreparedStatement pst3 = null;
PreparedStatement pst4 = null;
PreparedStatement pst5 = null;
StringBuilder sql = new StringBuilder();
sql.append("SELECT * FROM livro WHERE idlivro=?");
try {
openConnection();
pst = connection.prepareStatement(sql.toString());
pst.setInt(1, livro.getId());
ResultSet rs = pst.executeQuery();
List<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();
if(rs.next()) {
livro.setTitulo(rs.getString("livTitulo"));
livro.setSinopse(rs.getString("livSinopse"));
livro.setCodigoBarras(rs.getString("livCodigoDeBarras"));
Dimensoes dimensao = new Dimensoes();
double Altura = rs.getDouble("livAltura");
double Largura = rs.getDouble("livLargura");
double Peso = rs.getDouble("livPeso");
double profundidade = rs.getDouble("livProfundidade");
dimensao.setAltura(Altura);
dimensao.setLargura(Largura);
dimensao.setPeso(Peso);
dimensao.setProfundidade(profundidade);
livro.setDimensoes(dimensao);
livro.setISBN(rs.getString("livISBN"));
livro.setNumeroPaginas(rs.getInt("livNumeroPaginas"));
livro.setEdicao(rs.getInt("livEdicao"));
livro.setStatus(rs.getString("livStatus"));
livro.setAno(rs.getInt("livAno"));
}
StringBuilder sql2 = new StringBuilder();
sql2.append("SELECT * FROM livcat JOIN categoria ON livcat.id_categoria= categoria.id_Categoria WHERE livcat.id_livro=?");
pst2 = connection.prepareStatement(sql2.toString());
pst2.setInt(1, livro.getId());
ResultSet rs2 = pst2.executeQuery();
List<Categoria> cat = new ArrayList<Categoria>();
Categoria c = new Categoria();
if(rs2.next()) {
c.setNome(rs2.getString("categoria"));
c.setId(rs2.getInt("id_Categoria"));
cat.add(c);
}
//TERCEIRA PARTE PUXAR AUTOR
StringBuilder sql3 = new StringBuilder();
sql3.append("SELECT * FROM livro JOIN autor ON livro.livIdAutor = autor.id_Autor WHERE livro.idlivro=?");
pst3 = connection.prepareStatement(sql3.toString());
pst3.setInt(1, rs.getInt("idlivro"));
ResultSet rs3 = pst3.executeQuery();
while(rs3.next())
{
Autor autor = new Autor();
autor.setId(rs3.getInt("id_Autor"));
autor.setNome(rs3.getString("autor"));
livro.setAutor(autor);
}
//QUARTA PARTE PUXANDO A EDITORA
StringBuilder sql4 = new StringBuilder();
sql4.append("SELECT * FROM livro JOIN editora ON livro.livIdEditora = editora.id_editora WHERE livro.idlivro=?");
pst4 = connection.prepareStatement(sql4.toString());
pst4.setInt(1, rs.getInt("idlivro"));
ResultSet rs4 = pst4.executeQuery();
if(rs4.next())
{
Editora edit = new Editora();
edit.setId(rs4.getInt("id_editora"));
edit.setNome(rs4.getString("editora"));
livro.setEditora(edit);
}
//QUINTA PARTE PUXANDO A PRECIFICACAO
StringBuilder sql5 = new StringBuilder();
sql5.append("SELECT * FROM livro JOIN precificacao ON livro.livIdPrecificacao = precificacao.id_precificacao WHERE idlivro=?");
pst5 = null;
pst5 = connection.prepareStatement(sql5.toString());
pst5.setInt(1, rs.getInt("idlivro"));
ResultSet rs5 = pst5.executeQuery();
if(rs5.next())
{
Precificacao preci = new Precificacao();
preci.setClassificacao(rs5.getString("precificacao"));
preci.setTipo(rs5.getInt("id_precificacao"));
livro.setPrecificacao(preci);
}
//SEXTA PARTE MONTANDO O RETORNO
livro.setIdcategoria(cat);
livros.add(livro);
return livros;
//java.sql.Date dtCadastroEmLong = rs.getDate("dt_cadastro");
//Date dtCadastro = new Date(dtCadastroEmLong.getTime());
//p.setDtCadastro(dtCadastro);
//produtos.add(p);
} catch (SQLException e) {
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {
PreparedStatement pst = null;
StringBuilder sql = new StringBuilder();
sql.append("SELECT * FROM livros WHERE Status=?");
try {
openConnection();
pst = connection.prepareStatement(sql.toString());
pst.setString(1, "INATIVADO");
ResultSet rs = pst.executeQuery();
List<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();
//SEGUNDA PARTE PUXAR CATEGORIAS
while (rs.next()) {
StringBuilder sql2 = new StringBuilder();
sql2.append("SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?");
pst = null;
pst = connection.prepareStatement(sql2.toString());
pst.setInt(1, rs.getInt("id_livro"));
ResultSet rs2 = pst.executeQuery();
List<Categoria> cat = new ArrayList<Categoria>();
Categoria c = new Categoria();
while(rs2.next()) {
c.setNome(rs2.getString("CategoriaNome"));
c.setId(rs2.getInt("idCategoria"));
cat.add(c);
}
//TERCEIRA PARTE PUXAR AUTOR
StringBuilder sql3 = new StringBuilder();
sql3.append("SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?");
pst = null;
pst = connection.prepareStatement(sql3.toString());
pst.setInt(1, rs.getInt("id_livro"));
ResultSet rs3 = pst.executeQuery();
//QUARTA PARTE PUXANDO A EDITORA
StringBuilder sql4 = new StringBuilder();
sql4.append("SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?");
pst = null;
pst = connection.prepareStatement(sql4.toString());
pst.setInt(1, rs.getInt("id_livro"));
ResultSet rs4 = pst.executeQuery();
//QUINTA PARTE PUXANDO A PRECIFICACAO
StringBuilder sql5 = new StringBuilder();
sql5.append("SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?");
pst = null;
pst = connection.prepareStatement(sql5.toString());
pst.setInt(1, rs.getInt("id_livro"));
ResultSet rs5 = pst.executeQuery();
//SEXTA PARTE MONTANDO O RETORNO
Livro liv = new Livro();
Editora edit = new Editora();
Autor autor = new Autor();
Precificacao preci = new Precificacao();
edit.setId(rs4.getInt("IdEditora"));
edit.setNome(rs3.getString("AutorNome"));
liv.setId(rs3.getInt("IdAutor"));
liv.setEditora(edit);
liv.setAutor(autor);
liv.setTitulo(rs.getString("Titulo"));
liv.setSinopse(rs.getString("Sinopse"));
liv.dimensoes.setAltura(rs.getDouble("Altura"));
liv.dimensoes.setLargura(rs.getDouble("Largura"));
liv.dimensoes.setPeso(rs.getDouble("Peso"));
liv.dimensoes.setProfundidade(rs.getDouble("Profundidade"));
liv.setISBN(rs.getString("ISBN"));
liv.setIdcategoria(cat);
liv.setNumeroPaginas(rs.getInt("NumeroDePaginas"));
preci.setClassificacao(rs5.getString("PrecificacaoNome"));
preci.setTipo(rs5.getInt("IdPrecificacao"));
liv.setPrecificacao(preci);
liv.setEdicao(rs.getInt("Edicao"));
liv.setStatus(rs.getString("Status"));
int VerificarDuplicatas = 0;
for(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array
{
if(teste.getId() == liv.getId())
{
VerificarDuplicatas = 1;
}
}
if(VerificarDuplicatas == 0)
{
livros.add(liv);
}
//java.sql.Date dtCadastroEmLong = rs.getDate("dt_cadastro");
//Date dtCadastro = new Date(dtCadastroEmLong.getTime());
//p.setDtCadastro(dtCadastro);
//produtos.add(p);
}
return livros;
} catch (SQLException e) {
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void ativar(EntidadeDominio entidade) throws SQLException {
PreparedStatement pst=null;
Livro livro = (Livro)entidade;
try {
openConnection();
connection.setAutoCommit(false);
StringBuilder sql = new StringBuilder();
sql.append("UPDATE livro SET livStatus=?");
sql.append("WHERE idlivro=?");
pst = connection.prepareStatement(sql.toString());
pst.setString(1, "ATIVADO");
pst.setInt(2, livro.getId());
pst.executeUpdate();
connection.commit();
} catch (SQLException e) {
try {
connection.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
pst.close();
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
//SEGUNDA PARTE
try {
openConnection();
connection.setAutoCommit(false);
//FALTA COLOCAR EDITORA
StringBuilder sql = new StringBuilder();
System.out.println(livro.getId());
System.out.println(livro.getJustificativa());
System.out.println(livro.getIdCatJustificativa());
sql.append("INSERT INTO justificativaativar (id_livro , justificativa, id_Ativar) VALUES (?,?,?)");
pst = connection.prepareStatement(sql.toString());
pst.setInt(1, livro.getId());
pst.setString(2,livro.getJustificativa());
pst.setInt(3,livro.getIdCatJustificativa());
pst.executeUpdate();
connection.commit();
} catch (SQLException e) {
try {
connection.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
pst.close();
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
} | {
"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 entradaestoque(EntidadeDominio entidade) throws SQLException {
openConnection();
PreparedStatement pst=null;
Livro livro = (Livro)entidade;
try {
connection.setAutoCommit(false);
StringBuilder sql = new StringBuilder();
sql.append("INSERT INTO estoque (id_livro, quantidade,id_precificacao, custo) VALUES (?,?,?,?)");
pst = connection.prepareStatement(sql.toString());
pst.setInt(1, livro.getId());
pst.setInt(2, livro.getEstoque().getQuantidade());
pst.setInt(3, livro.getPrecificacao().getTipo());
pst.setDouble(4, livro.getEstoque().getCusto());
pst.executeUpdate();
connection.commit();
} catch (SQLException e) {
try {
connection.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
e.printStackTrace();
}finally{
try {
pst.close();
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
} | {
"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 AlterarCartao(EntidadeDominio entidade) throws SQLException {
} | {
"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 AlterarEndereco(EntidadeDominio entidade) throws SQLException {
} | {
"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 AlterarSenha(EntidadeDominio entidade) throws SQLException {
} | {
"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 List<EntidadeDominio> Detalhes(EntidadeDominio entidade) throws SQLException {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {
} | {
"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 DiminuirCarrinho(EntidadeDominio entidade) throws SQLException {
} | {
"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 RemoverCarrinho(EntidadeDominio entidade) throws SQLException {
} | {
"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 List<EntidadeDominio> VisualizarEndereco(EntidadeDominio entidade) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<EntidadeDominio> Frete(EntidadeDominio entidade) throws SQLException {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<EntidadeDominio> FormasDePagamento(EntidadeDominio entidade) throws SQLException {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void RemoverCupons(EntidadeDominio entidade) throws SQLException {
} | {
"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 List<EntidadeDominio> PegarCartoesCliente(EntidadeDominio entidade) throws SQLException {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Created by j.suarez on 4/14/2015. | public interface Api {
@GET("/jokes/random/{number}")
Observable<Jokes> getRandomJokes(@Path("number") int number);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\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 nadar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void getExras() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void m50366E() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void nghe() {\n\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\n public void init() {}",
"private void init() {\n\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 protected void init() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void memoria() {\n \n }",
"private void strin() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override public int describeContents() { return 0; }",
"public void m23075a() {\n }"
]
| [
"0.6053393",
"0.5992162",
"0.59062475",
"0.58965003",
"0.5852548",
"0.5852548",
"0.57781297",
"0.5773839",
"0.5773063",
"0.57676506",
"0.5765825",
"0.57483804",
"0.5711534",
"0.5711114",
"0.5706591",
"0.56942546",
"0.56875646",
"0.56604683",
"0.5652244",
"0.56509745",
"0.5641311",
"0.56351334",
"0.56351334",
"0.56351334",
"0.56351334",
"0.56351334",
"0.56078935",
"0.55945945",
"0.55915606",
"0.5591402",
"0.55817795",
"0.55783975",
"0.5575669",
"0.5572202",
"0.55701214",
"0.55680835",
"0.55261797",
"0.5524922",
"0.54993683",
"0.5497951",
"0.5497951",
"0.5492789",
"0.5492789",
"0.5492789",
"0.54922646",
"0.5489843",
"0.5489288",
"0.54831743",
"0.5480529",
"0.5480529",
"0.54739887",
"0.54735",
"0.54678345",
"0.54678345",
"0.54678345",
"0.5460477",
"0.5460477",
"0.5460477",
"0.54489684",
"0.5446632",
"0.54458344",
"0.5445487",
"0.54346895",
"0.54346895",
"0.5432082",
"0.5432082",
"0.5432082",
"0.5432082",
"0.5432082",
"0.5432082",
"0.5431598",
"0.54308784",
"0.5429057",
"0.5425972",
"0.5422901",
"0.5420084",
"0.54118127",
"0.54111135",
"0.5410986",
"0.5404554",
"0.53902054",
"0.5381648",
"0.5380972",
"0.53765976",
"0.53742945",
"0.53742945",
"0.53742945",
"0.53742945",
"0.53742945",
"0.53742945",
"0.53742945",
"0.53499925",
"0.53437227",
"0.5336432",
"0.533631",
"0.53321415",
"0.53219867",
"0.53213036",
"0.52991134",
"0.52950037",
"0.52945167"
]
| 0.0 | -1 |
select from blogpostlikes where blogpost_id=? and user_username=? if user already liked the post, 1 object if user has not yet liked the post, null object | BlogPostLikes userLikes(BlogPost blogPost,User user); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BlogPost updateLikes(BlogPost blogPost, User user);",
"@Override\n public void onClick(final View view) {\n final ParseRelation<ParseUser> likers = post.getRelation(\"likers\");\n final ParseQuery<ParseUser> usrLikers = likers.getQuery();\n usrLikers.findInBackground(new FindCallback<ParseUser>() {\n @Override\n public void done(List<ParseUser> objects, ParseException e) {\n if (e == null) {\n Log.i(\"USERS:\", \"Looking for current user\");\n for (int i = 0; i < objects.size(); i++) {\n Log.i(\"USERS:\", objects.get(i).getUsername());\n if (objects.get(i).getObjectId().equals(ParseUser.getCurrentUser().getObjectId())) {\n liked[0] = true;\n break;\n }\n }//end loop\n if (liked[0]) {\n unlikePost(view,post,likers,liked);\n } else {\n likePost(view,post,likers);\n }\n }//end works\n }//end done\n });\n }",
"public int liked(int i,String j) {\n \r\n List<Integer> list =new ArrayList();\r\n try{\r\n pst = con.prepareStatement(\"select * from likes where blog=\"+i+\"&& user=\"+j+\" \");\r\n ResultSet rs = pst.executeQuery();\r\n \r\n while(rs.next()){\r\n //créer une instance vide de personne()\r\n \r\n list.add(rs.getInt(1));\r\n //afficher l'instane \r\n //System.out.println(l);\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(CommentaireService.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n System.out.println(list);\r\n return list.size();\r\n \r\n\r\n }",
"@GetMapping(\"/{postId}/like\")\n @ResponseBody\n public int likePost(@PathVariable(\"postId\") Long postId, Principal principal) {\n \tString username = principal.getName();\n \t\n \treturn mainService.likePost(username, postId);\n }",
"public static PostLike fromResultSet(ResultSet resultSet) {\n if (resultSet == null) {\n return null;\n }\n\n try {\n PostLike postLike = new PostLike();\n postLike.setId(resultSet.getLong(\"id\"));\n postLike.setUserID(resultSet.getLong(\"userId\"));\n postLike.setPostID(resultSet.getLong(\"postId\"));\n postLike.setLiked(resultSet.getBoolean(\"liked\"));\n\n return postLike;\n } catch (SQLException e) {\n log.error(\"Error occurred during converting result set to post like.\", e);\n }\n return null;\n }",
"@Override\n\tpublic int liketure(boardDTO board) throws Exception {\n\t\treturn sqlSession.selectOne(namespace+\".liketrue\", board);\n\t}",
"List<InstagramProfile> getLikes(long mediaId);",
"@Override\r\n\tpublic boolean expressLike(Post post, int para, int userid) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tdao=new Score_RecordDaoImpl(TransactionManager.connection);\r\n\t\tScore_Record record=new Score_Record();\r\n\t\trecord.setPostId(post.getPostId());\r\n\t\trecord.setUserId(userid);\r\n\t\tif(dao.insert(record)>0)\r\n\t\t\t{postDao.expressLike(post, para);\r\n\t\t\treturn true;\r\n\t\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"boolean setLike(Integer id, Integer idUser);",
"private void handleLikeButtonClick() {\n boolean performLike = !CurrentUser.hasLiked(prismPost);\n performUIActivitiesForLike(performLike);\n\n if (performLike) {\n DatabaseAction.performLike(prismPost);\n } else {\n DatabaseAction.performUnlike(prismPost);\n }\n }",
"public void likePost(String userKey) {\n if (!this.likes.contains(userKey)) {\n this.likes.add(userKey);\n }\n }",
"Integer getLikes(Integer id);",
"@GetMapping(value = \"/getLikes\")\n\tpublic @ResponseBody List<Likes> getNbByPost(@RequestBody Post post) {\n\n\t\treturn (likesServ.findAllLikeForPost(post));\n\t}",
"long countByExample(LikeUserExample example);",
"public List<likes> findByIdeaId(int ideaId);",
"LikeUser selectByPrimaryKey(Long id);",
"private static Boolean isPhotoLiked(String postId, String accessToken) throws URISyntaxException, IOException, JSONException {\n\n\t\tString JsonResponse = null;\n String urlPost = \"https://api.instagram.com/v1/media/\"+postId+ \"?access_token=\" + accessToken;\n\t\tInputStream inputStream = null;\n\t\tHttpURLConnection urlConnection = null;\n\t\tInteger result = 0;\n\t\ttry {\n /* forming th java.net.URL object */\n\n\t\t\tURL url = new URL(urlPost);\n\t\t\turlConnection = (HttpURLConnection) url.openConnection();\n\n /* optional request header */\n\t\t\turlConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n /* optional request header */\n\t\t\turlConnection.setRequestProperty(\"Accept\", \"application/json\");\n\n /* for Get request */\n\t\t\turlConnection.setRequestMethod(\"GET\");\n\t\t\tint statusCode = urlConnection.getResponseCode();\n\n\n /* 200 represents HTTP OK */\n\t\t\tif (statusCode == 200) {\n\t\t\t\tinputStream = new BufferedInputStream(urlConnection.getInputStream());\n\t\t\t\tString response = Utils.convertInputStreamToString(inputStream);\n\t\t\t\tJsonResponse = response;\n\t\t\t}else{\n\t\t\t\tJsonResponse = null; //\"Failed to fetch data!\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(\"Error\", e.getLocalizedMessage());\n\t\t}\n JSONObject respObject = new JSONObject(JsonResponse);\n\nJSONObject id = respObject.getJSONObject(\"data\");\n\n boolean userhasliked = id.getBoolean(\"user_has_liked\");\n\n if(userhasliked)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n\n }",
"@Override\n public void onClick(View view) {\n if (post.isLikedByUser) {\n removeLike(post);\n } else {\n likePost(post);\n }\n }",
"List<LikeUser> selectByExample(LikeUserExample example);",
"void addLike(long mediaId);",
"@Override\n public void onClick(final View view) {\n Query likeQuery = Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"ratings\").orderByValue().equalTo(false);\n likeQuery.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n// Toast.makeText(view.getContext(), \"AANTAL RATINGS! = \" + dataSnapshot.getChildrenCount(), Toast.LENGTH_SHORT).show();\n\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"dislikes\").setValue(dataSnapshot.getChildrenCount());\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"ratings\").child(userId).setValue(false);\n\n }",
"@Override\n\tpublic void doLike(LoginDetails loginDetails) {\n\t\tif (loginDetails != null) {\n\t\t\tSystem.out.println(\"boomer Post is liked successfully by \" + loginDetails.getUsername());\n\t\t}\n\t}",
"private void setLikes() {\n\n final DatabaseReference likesRef= FirebaseDatabase.getInstance().getReference().child(\"Likes\");\n\n likesRef.addValueEventListener(new ValueEventListener() {\n @SuppressLint(\"NewApi\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.child(postId).hasChild(myUid)) {\n likeBtn.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_liked_blue,0,0,0);\n likeBtn.setText(\"Liked\");\n\n\n }\n else{\n likeBtn.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_like_black,0,0,0);\n likeBtn.setText(\"Like\");\n\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (isLiked) {\n if (dataSnapshot.child(post_key).hasChild(firebaseAuth.getCurrentUser().getUid())) {\n like_database.child(post_key).child(firebaseAuth.getCurrentUser().getUid()).removeValue();\n isLiked = false;\n\n } else {\n like_database.child(post_key).child(firebaseAuth.getCurrentUser().getUid()).setValue(\"random\");\n isLiked = false;\n\n }\n }\n }",
"public void setLikedcount(Integer likedcount) {\n this.likedcount = likedcount;\n }",
"public void like(Long time, String liker) {\n\t for(Post post: posts) {\n\t\t if(post.getTime() == time) {\n\t\t\t post.addLike(liker);\n\t\t\t return;\n\t\t }\n\t }\n }",
"public void setLikedPosts(List<Post> likedPosts) {\n this.likedPosts = likedPosts;\n }",
"public void like() {\n this.likes += 1;\n }",
"Integer getDislikes(Integer id);",
"protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tString postID = request.getParameter(\"postID\"); // getting parameter\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from request\n\t\t\n\t\t//int groupId = Integer.parseInt(request.getParameter(\"groupId\"));\n\t\tUser user = new User(); // Creating instance of 'User' POJO\n\t\ttry {\n\t\t\tString LikesUpdated = null;\n\t\t\tHttpSession session = request.getSession(false); // Checking for session\n\t\t\tuser = (User) session.getAttribute(\"userObject\"); // Getting session attribute (user info)\n\t\t\tLikeService iService = new LikeService(); // Creating instance of 'LikeService' class\n\t\t\tiService.manageLikes(user, Integer.parseInt(postID));\n\t\t\t// calling function of LikeService class to manage whole like operations\n\t\t\tSystem.out.println(\"postid\" + postID);\n\t\t\tint noOfLikes = iService.LikesOnPostByPostId(Integer\n\t\t\t\t\t.parseInt(postID));\n\t\t\tString likes = Integer.toString(noOfLikes);\n\t\t\t\n\t\t\tLikeService iLikeService = new LikeService();\n\t\t\tboolean isLikedByUser = iLikeService.hasUSerAlreadyLiked(\n\t\t\t\t\tuser.getUserId(), Integer.parseInt(postID));\n\t\t\tSystem.out.println(isLikedByUser);\n\t\t\tif (isLikedByUser) {\n\t\t\t\tLikesUpdated = \"<a href='#'><i class='fa fa-thumbs-up' id ='like\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \"' onClick='loadInfo(\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \")\"\n\t\t\t\t\t\t+ \"' value='\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \"' style='color:grey'></i></a>\" + likes;\n\t\t\t} else {\n\t\t\t\tLikesUpdated = \"<a href='#'><i class='fa fa-thumbs-up' id ='like\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \"' onClick='loadInfo(\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \")\"\n\t\t\t\t\t\t+ \"' value='\"\n\t\t\t\t\t\t+ postID\n\t\t\t\t\t\t+ \"' style='color:orange'></i></a>\" + likes;\n\t\t\t}\n\t\t\tresponse.setContentType(\"text/plain\");\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.getWriter().write(LikesUpdated);// redirecting to caller\n\t\t/*} */}catch (MetaSocioSystemException e) {\n\t\t\trequest.setAttribute(\"message\", \"Error in Getting likes, Please try After some time.\"); // setting an attribute in request\n\t\t\trequest.getRequestDispatcher(\"./exception/error.jsp\").forward(request, response); // forwarding to error page if any exception occurs\n\t\t}\n\t}",
"public boolean likesPastebin();",
"public boolean isLiked();",
"public boolean likeKweet(long kweetId, String username) {\n return kweetDAO.likeKweet(kweetId, username);\n }",
"@Test\n\tpublic void FRAN_5593_Verify_user_able_to_like_the_post() throws Exception {\n\t\tArrayList<ContentData> listReview = everContentAPI.getEverContent();\n\t\tContentData selectedContent = listReview.get(0);\n\t\tString postBody = selectedContent.getPostBody();\n\t\t//unlike content and get data again\n\t\teverContentAPI.unLikeContent(selectedContent.getContentKey());\n\t\tselectedContent = everContentAPI.getContentDetail(selectedContent.getContentKey());\n\t\tint beforeClickLikeCount = selectedContent.getLikeCount();\n\t\t\t\t\n\t\t\t\t\n\t\tloginPage = new LoginWithUsernamePage(driver);\n\t\tloginPage.doLoginProcess(Constant.ACCOUNT_EMAIL_1, Constant.ACCOUNT_PASSWORD_1);\n\t\thomePage = new HomePage(driver);\n\t\tassertTrue(homePage.isActive(), \"User is not in Homepage\", \"You're in Home page\");\n\n\t\tdriver.sleep(5);\n\t\treviewDetailPage = homePage.selectReviewNearYouByIndex(1);\n\t\tassertTrue(reviewDetailPage.isActive(), \"Review detail screen is not displayed\",\n\t\t\t\t\"Review detail screen is displayed\");\n\n\t\tString currentReviewBusinessName = reviewDetailPage.getBusinessName();\n\t\tString currentReviewDescription = reviewDetailPage.getReviewDescription();\n\n\t\tassertEquals(currentReviewBusinessName, selectedContent.getCorporateGroup().getDisplayName(),\n\t\t\t\t\"Business name of current review is displayed incorrectly\",\n\t\t\t\t\"Business name of current review is displayed correctly\");\n\t\tassertEquals(currentReviewDescription, postBody,\n\t\t\t\t\"Review description of current review is displayed incorrectly\",\n\t\t\t\t\"Review description of current review is displayed correctly\");\n\n\t\treviewDetailPage.clickLikeReview();\n\t\t//get content again from API\n\t\tselectedContent = everContentAPI.getContentDetail(selectedContent.getContentKey());\n\t\tassertEquals(selectedContent.getLikeCount(),beforeClickLikeCount + 1,\"API verification: Like count is not increased\",\"API verification: Like count is increased correctly\");\n\t}",
"public List<Likes> getAllPostLikes(@RequestParam(\"id\") int id) {\n\t\treturn likeRepo.selectAllPostLikes(id);\n\t}",
"Like createLike();",
"public void addLike() {\n // TODO implement here\n }",
"private void assignLikes(List<Post> likes){\n\t\ttextLikes = Lists.newArrayList();\n\t\tphotoLikes = Lists.newArrayList();\n\t\tvideoLikes = Lists.newArrayList();\n\t\tfor (Post like : likes) {\n\t\t\tif (like instanceof TextPost) {\n\t\t\t\ttextLikes.add((TextPost)like);\n\t\t\t} else if (like instanceof PhotoPost) {\n\t\t\t\tphotoLikes.add((PhotoPost)like);\n\t\t\t} else if (like instanceof VideoPost) {\n\t\t\t\tvideoLikes.add((VideoPost)like);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n View vi = convertView;\n\n if(tasks.get(position) != null){\n\n vi = inflater.inflate(R.layout.task_list_item_summary_done, null);\n\n final TaskRecord tr = tasks.get(position);\n\n ((TextView) vi.findViewById(R.id.taskListItemSummary_title)).setText(tr.title);\n\n final View finalVi = vi;\n tr.parseObject.getParseObject(\"user\").fetchIfNeededInBackground(new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject object, ParseException e) {\n\n ((TextView) finalVi.findViewById(R.id.taskListItemSummary_description)).setText(object.getString(\"name\"));\n }\n });\n\n final View view = vi;\n\n\n final ImageButton likeButton = (ImageButton) vi.findViewById(R.id.taskListItemSummary_like_button);\n if(tr.parseObject.getParseObject(\"user\").getObjectId().equals(ParseUser.getCurrentUser().getObjectId()) || !tr.done || tr.history)likeButton.setVisibility(View.GONE);\n final ImageButton dislikeButton = (ImageButton) vi.findViewById(R.id.taskListItemSummary_dislike_button);\n if(tr.parseObject.getParseObject(\"user\").getObjectId().equals(ParseUser.getCurrentUser().getObjectId()) || !tr.done || tr.history)dislikeButton.setVisibility(View.GONE);\n\n final ArrayList <String> likes = new ArrayList<String>();\n List <String> lLikes = tr.parseObject.getList(\"likes\");\n if(lLikes != null)likes.addAll(lLikes);\n\n final ArrayList <String> dislikes = new ArrayList<String>();\n List <String> lDislikes = tr.parseObject.getList(\"dislikes\");\n if(lDislikes != null)dislikes.addAll(lDislikes);\n\n likeButton.setBackgroundColor(vi.getResources().getColor( likes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorGreen : R.color.colorInactive));\n dislikeButton.setBackgroundColor(vi.getResources().getColor( dislikes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorRed : R.color.colorInactive));\n\n\n if(tr.history){\n ImageView checkbox = (ImageView) vi.findViewById(R.id.taskListItemSummary_checkbox);\n checkbox.setVisibility(View.VISIBLE);\n if(tr.done && likes.size()>=dislikes.size())checkbox.setImageDrawable(vi.getResources().getDrawable(R.drawable.ic_check_box_done));\n else checkbox.setImageDrawable(vi.getResources().getDrawable(R.drawable.ic_check_box_empty));\n }\n\n likeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (!likes.contains(ParseUser.getCurrentUser().getObjectId())) {\n likes.add(ParseUser.getCurrentUser().getObjectId());\n }\n\n dislikes.remove(ParseUser.getCurrentUser().getObjectId());\n\n tr.parseObject.put(\"likes\", likes);\n tr.parseObject.put(\"dislikes\", dislikes);\n\n tr.parseObject.saveInBackground();\n\n likeButton.setBackgroundColor(v.getResources().getColor(likes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorGreen : R.color.colorInactive));\n dislikeButton.setBackgroundColor(v.getResources().getColor(dislikes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorRed : R.color.colorInactive));\n\n\n }\n });\n\n dislikeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (!dislikes.contains(ParseUser.getCurrentUser().getObjectId())) {\n dislikes.add(ParseUser.getCurrentUser().getObjectId());\n }\n\n likes.remove(ParseUser.getCurrentUser().getObjectId());\n\n tr.parseObject.put(\"likes\", likes);\n tr.parseObject.put(\"dislikes\", dislikes);\n\n tr.parseObject.saveInBackground();\n\n likeButton.setBackgroundColor(v.getResources().getColor(likes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorGreen : R.color.colorInactive));\n dislikeButton.setBackgroundColor(v.getResources().getColor(dislikes.contains(ParseUser.getCurrentUser().getObjectId()) ? R.color.colorRed : R.color.colorInactive));\n\n\n }\n });\n\n }else{\n vi = inflater.inflate(R.layout.task_list_header, null);\n\n ((TextView) vi.findViewById(R.id.header_title_textView)).setText(heders.get(position));\n }\n\n return vi;\n }",
"@Override\n\tpublic int boardCommentHasLiked(Map param) {\n\t\treturn dao.boardCommentHasLiked(session, param);\n\t}",
"public List<User> selectLike(User user) {\n\t\treturn mapper.selectLike(user);\n\t}",
"public void onLike(View view){\n Toast.makeText(this, \"You have liked the post.\", Toast.LENGTH_SHORT).show();\n }",
"List<Share> findByPost(Post post);",
"public boolean addLike (Message like) {\n Logger.write(\"VERBOSE\", \"DB\", \"addLike(...)\");\n \n try {\n execute(DBStrings.addLike.replace(\"__likerKey__\", Crypto.encodeKey(getSignatory(like)))\n .replace(\"__parent__\", like.LIKEgetItemID()));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }",
"public boolean likeThreater(int userId, int threaterId) {\n\t\treturn false;\n\t}",
"int insertSelective(LikeUser record);",
"public static boolean isUserAlreadyLiked(LikedSongsDto details) {\n\t\tSongsDao dao = new SongsDao();\n\t\treturn dao.isUserAlreadyLiked(details);\n\n\t}",
"public void likeContent(Integer userID, Integer contentID){\n\n Like newLike = new Like(createLikeID(userID, contentID), userID, contentID);\n likeRepository.save(newLike);\n\n }",
"public void userWithMostLikes() {\n Map<Integer, Integer> userLikesCount = new HashMap<>();\n Map<Integer, User> users = DataStore.getInstance().getUsers();\n \n for (User user : users.values()) {\n for (Comment c : user.getComments()) {\n int likes = 0;\n if (userLikesCount.containsKey(user.getId())) {\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : userLikesCount.keySet()) {\n if (userLikesCount.get(id) > max) {\n max = userLikesCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"User with most likes: \" + max + \"\\n\" \n + users.get(maxId));\n }",
"public void userWithMostLikes() {\n Map<Integer, Integer> userLikesCount = new HashMap<>();\n Map<Integer, User> users = DataStore.getInstance().getUsers();\n \n for (User user : users.values()) {\n for (Comment c : user.getComments()) {\n int likes = 0;\n if (userLikesCount.containsKey(user.getId())) {\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : userLikesCount.keySet()) {\n if (userLikesCount.get(id) > max) {\n max = userLikesCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"User with most likes: \" + max + \"\\n\" \n + users.get(maxId));\n }",
"@Override\n public void doLike(final int position, final boolean like) {\n mCircleAction.doLike(circleList.get(position).getSid(), !circleList.get(position).isLiked(),new RequestCallback() {\n @Override\n public void onResult(int code, String result, Throwable var3) {\n if(code == 0){\n if(!circleList.get(position).isLiked()){\n //点赞\n circleList.get(position).setLikeCount(circleList.get(position).getLikeCount() + 1);\n circleList.get(position).setIsLiked(true);\n } else {\n //取消赞\n circleList.get(position).setLikeCount(circleList.get(position).getLikeCount() - 1);\n circleList.get(position).setIsLiked(false);\n }\n mCircleAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onFailed() {\n\n }\n });\n }",
"int insert(LikeUser record);",
"int isUserLikedCommentAlready(long lifeHackId, long userId) throws DaoException;",
"public List<Post> getLikedPosts() {\n return likedPosts;\n }",
"public boolean hasLiked(String key) {\n return this.likes.contains(key);\n }",
"public int getLikesCount() {\n return likesCount_;\n }",
"public Observable<LikedUsersListResp> getLikedUsers(String postId) {\n\n return api.getPostLikes(new PostRelatedReq(new PostRelatedReq.Snippet(pref.getString(Constants.BG_ID, \"\"), postId))).subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }",
"public void userWithMostLikes(){\n Map<Integer,Integer> userLikesCount = new HashMap<>();\n Map<Integer,User> users = DataStore.getInstance().getUsers();\n \n for(User user : users.values()){\n for(Comment c : user.getComments()){\n int likes=0;\n if(userLikesCount.containsKey(user.getId())){\n\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n System.out.println(userLikesCount);\n int max=0;\n int maxId=0;\n for(int id: userLikesCount.keySet()){\n if(userLikesCount.get(id)>max){\n max= userLikesCount.get(id);\n maxId=id;\n }\n }\n System.out.println(\"\\nUser with most likes : \"+ max+ \"\\n\"+ users.get(maxId));\n }",
"@Override\r\n public void onUpdateLikeCommentCount(String socialType, int requestType, int count, int isUserLike) throws RemoteException {\n\r\n }",
"public long getLikes() {\n return likes;\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n\n final String postID = blog_list.get(position).BlogpostID;\n final String currentUserID = firebaseAuth.getCurrentUser().getUid();\n\n //retrieve post description in list\n String descData = blog_list.get(position).getDesc();\n holder.setDesc(descData);\n\n //retrieve image in list\n String image_uri = blog_list.get(position).getImage_uri();\n String thumbUri = blog_list.get(position).getImage_thumb(); //add\n\n holder.setImage(image_uri, thumbUri); //add\n\n //holder.setImage(image_uri);\n\n //String userID = blog_list.get(position).getUser_id();\n final String user_id = blog_list.get(position).getUser_id();\n\n if (firebaseAuth.getCurrentUser() != null) {\n firebaseFirestore.collection(\"Users\").document(user_id).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(Task<DocumentSnapshot> task) {\n\n if (task.isSuccessful()) {\n\n String userName = task.getResult().getString(\"name\");\n String userImage = task.getResult().getString(\"image\");\n holder.setupUser(userName, userImage);\n\n } else {\n\n /* Firebase Exception */\n }\n }\n });\n\n //Time Feature***\n if (blog_list.get(position).getTimeStamp() != null) {\n\n long millisecond = blog_list.get(position).getTimeStamp().getTime();\n String dateString = DateFormat.format(\"MM/dd/yyyy\", new Date(millisecond)).toString();\n\n holder.setTime(dateString);\n }\n\n //Count Like\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Likes\").addSnapshotListener((MainActivity) context, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n\n //if (documentReference != null) {\n //Log.d(TAG, \"Error:\" + e.getMessage());\n if (queryDocumentSnapshots != null) {\n if (!queryDocumentSnapshots.isEmpty()) {\n\n int count = queryDocumentSnapshots.size();\n holder.likeCount(count);\n\n } else {\n holder.likeCount(0);\n\n }\n }\n\n }\n });\n\n //Count Comment\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Comments\").addSnapshotListener((MainActivity) context, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {\n\n //if (documentReference != null) {\n //Log.d(TAG, \"Error:\" + e.getMessage());\n if (queryDocumentSnapshots != null) {\n if (!queryDocumentSnapshots.isEmpty()) {\n\n int count = queryDocumentSnapshots.size();\n holder.Countcomment(count);\n\n } else {\n holder.Countcomment(0);\n\n }\n }\n\n }\n });\n\n //Get Like\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Likes\").document(currentUserID).addSnapshotListener((MainActivity) context, new EventListener<DocumentSnapshot>() {\n @Override\n public void onEvent(@Nullable DocumentSnapshot documentSnapshot, @Nullable FirebaseFirestoreException e) {\n if (documentSnapshot != null) {\n //Log.d(TAG, \"Error:\" + e.getMessage());\n\n if (documentSnapshot.exists()) {\n\n //holder.setLike();\n holder.btn_blog_like.setImageResource(R.drawable.ic_favorite_red);\n\n } else {\n holder.btn_blog_like.setImageResource(R.drawable.ic_favorite_gray);\n\n }\n } else {\n Log.d(TAG, \"Error:\" + e.getMessage());\n }\n\n }\n });\n\n //Like Feature\n holder.btn_blog_like.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Likes\").document(currentUserID).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n\n if (!task.getResult().exists()) {\n\n Map<String, Object> likesMap = new HashMap<>();\n likesMap.put(\"timeStamp\", FieldValue.serverTimestamp());\n\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Likes\").document(currentUserID).set(likesMap);\n\n } else {\n\n firebaseFirestore.collection(\"Posts/\" + postID + \"/Likes\").document(currentUserID).delete();\n\n }\n\n }\n });\n }\n });\n\n //Comment Feature\n holder.blogCommentBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent commentIntent = new Intent(context, CommentsActivity.class);\n commentIntent.putExtra(\"blog_post_id\", postID);\n context.startActivity(commentIntent);\n\n }\n });\n }\n\n //onClicked post\n holder.mView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Toast.makeText(context, \"post ID: \" + postID, Toast.LENGTH_LONG).show();\n\n Intent intent = new Intent(context, PostPage.class);\n intent.putExtra(\"post_id\", postID);\n intent.putExtra(\"user_id\", user_id);\n\n context.startActivity(intent);\n }\n });\n\n\n }",
"@GetMapping(value = \"/getAllUserLikes\")\n\t@ResponseBody\n\tpublic List<Likes> getAllUserLikes(@RequestParam(\"id\") int id) {\n\t\treturn likeRepo.selectAllUserLikes(id);\n\t}",
"public List<Long> getLikes() {\n\t\treturn this.likes;\n\t}",
"@Override\n public void onResponse(JSONObject response) {\n System.out.println(response+\"ktjbkgrjbhymyposting\");\n try {\n if(response.getInt(\"status\")==200){\n// session.setToken(response.getString(\"token\"));\n listModel = new ArrayList<MyPostingModel>();\n JSONArray jsonArray = response.getJSONArray(\"data\");\n if (jsonArray.length()==0) {\n listMyPosting.setVisibility(View.GONE);\n tvNullPost.setVisibility(View.VISIBLE);\n } else {\n listMyPosting.setVisibility(View.VISIBLE);\n tvNullPost.setVisibility(View.GONE);\n for (int a = 0; a < jsonArray.length(); a++) {\n JSONObject object = jsonArray.getJSONObject(a);\n String begin_date = object.getString(\"begin_date\");\n String end_date = object.getString(\"end_date\");\n String business_code = object.getString(\"business_code\");\n String personal_number = object.getString(\"personal_number\");\n String posting_id = object.getString(\"posting_id\");\n String title = object.getString(\"title\");\n String description = object.getString(\"description\");\n String image = object.getString(\"image\");\n String date = object.getString(\"date\");\n String time = object.getString(\"time\");\n String change_date = object.getString(\"change_date\");\n String change_user = object.getString(\"change_user\");\n String avatar = object.getString(\"profile\");\n// String lovelikes = object.getString(\"lovelikes\");\n// JSONArray jsonArrayLike = object.getJSONArray(\"lovelikes\");\n String full_name = null;\n JSONArray jsonArrayName = object.getJSONArray(\"name\");\n for (int d=0; d<jsonArrayName.length(); d++) {\n JSONObject objectName = jsonArrayName.getJSONObject(d);\n full_name = objectName.getString(\"full_name\");\n }\n JSONArray jsonArrayComment = object.getJSONArray(\"comments\");\n JSONArray jsonArrayLike = object.getJSONArray(\"people_likes\");\n boolean status_like = false;\n for (int c=0; c<jsonArrayLike.length(); c++) {\n JSONObject objectLike = jsonArrayLike.getJSONObject(c);\n String personal_number_like = objectLike.getString(\"personal_number\");\n if (personal_number_like.equals(session.getUserNIK())) {\n status_like = true;\n } else {\n status_like = false;\n }\n }\n model = new MyPostingModel(begin_date, end_date, business_code, personal_number, posting_id, title, description, image, date, time, change_date, change_user, String.valueOf(jsonArrayComment.length()), String.valueOf(jsonArrayLike.length()), full_name, status_like, avatar);\n listModel.add(model);\n }\n adapter = new MyPostingAdapter(EmployeePostingActivity.this, listModel);\n listMyPosting.setAdapter(adapter);\n listMyPosting.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n// generateActivityId();\n Intent i = new Intent(EmployeePostingActivity.this, DetailpostActivity.class);\n i.putExtra(\"posting_id\",listModel.get(position).getPosting_id());\n i.putExtra(\"title\",listModel.get(position).getTitle());\n i.putExtra(\"description\",listModel.get(position).getDescription());\n i.putExtra(\"date\",listModel.get(position).getChange_date());\n i.putExtra(\"image\",listModel.get(position).getImage());\n i.putExtra(\"name\",listModel.get(position).getName());\n i.putExtra(\"status_like\",listModel.get(position).isStatus_like());\n i.putExtra(\"avatar\",listModel.get(position).getAvatar());\n startActivity(i);\n }\n });\n }\n progressDialogHelper.dismissProgressDialog(EmployeePostingActivity.this);\n }else{\n progressDialogHelper.dismissProgressDialog(EmployeePostingActivity.this);\n\n }\n }catch (Exception e){\n progressDialogHelper.dismissProgressDialog(EmployeePostingActivity.this);\n\n System.out.println(e);\n }\n\n }",
"@Override\n public List<Pin> getPinsOnBoard(String username, String boardname) {\n List<Pin> pins = pinDataMapper.getPins(username, boardname);\n for (Pin p : pins)\n for (int userId : pinDataMapper.getLikersIds(p.getId()))\n p.addLike(userDataMapper.getUserByID(userId));\n return pins;\n }",
"public boolean likeClue(Clue clue) {\n boolean update = false;\n\n // If the current clue is contained in the list of liked clues\n if(mainActivity.mLikedClues.size() > 0) {\n if (mainActivity.mLikedClues.get(clue.getId()) != null) {\n return false;\n } else {\n update = true;\n }\n }\n else\n update = true;\n\n\n if (update){\n\n // Update the clue on the server, and add it to the users list\n String message = \"OtherFragmentGrid - UpdateClue\";\n String route = \"/clues/\" + clue.getId() + \"/update\";\n int method = Request.Method.PUT;\n\n HashMap<String, String> params = new HashMap<String, String>();\n HTTPRequest request;\n\n params.put(\"_id\", clue.getId());\n params.put(\"ownerId\", clue.getOwnerId());\n params.put(\"question\", clue.getQuestion());\n params.put(\"answer\", clue.getAnswer());\n params.put(\"updated\", mainActivity.getCurrentDate());\n params.put(\"orderNumber\", Integer.toString(clue.getOrderNumber()));\n params.put(\"likes\", Integer.toString(clue.getLikes() + 1));\n JSONObject req = new JSONObject(params);\n\n request = new HTTPRequest(message,\n mainActivity.HOST + mainActivity.PORT + route,\n method,\n req);\n\n mainActivity.mHTTPHelper.sendToServer(request);\n\n mainActivity.updateLikedClues(clue);\n\n // Send push notification to the owner of the clue\n if(!mSocket.connected()) {\n mSocket.connect();\n }\n HashMap<String, String> msg = new HashMap<String, String>();\n\n msg.put(\"senderUsername\", mainActivity.myProfile.getUsername());\n msg.put(\"senderId\", mainActivity.myProfile.getId());\n msg.put(\"recipientId\", connectionId);\n msg.put(\"clueId\", clue.getId());\n msg.put(\"clueText\", clue.getQuestion() + \" \" + clue.getAnswer());\n JSONObject msgJSON = new JSONObject(msg);\n mSocket.emit(\"likeNotification\", msgJSON);\n\n // Update the likes_given in the shared preferences and check for the achievement\n mainActivity.likes_given = mainActivity.mSettings.getInt(\"likes_given\", mainActivity.likes_given);\n mainActivity.likes_given++;\n mainActivity.mEditor.putInt(\"likes_given\", mainActivity.likes_given);\n mainActivity.mEditor.commit();\n mainActivity.progressAchievements(\"likes_given\");\n\n // ********************************************************\n // Store like to the database on the server\n String tag = \"Add Like\";\n String route2 = \"/likes\";\n int method2 = Request.Method.POST;\n\n HashMap<String, String> params2 = new HashMap<String, String>();\n HTTPRequest request2;\n\n params2.put(\"_ownerId\", mainActivity.myProfile.getId());\n params2.put(\"_clueId\", clue.getId());\n params2.put(\"date\", mainActivity.getCurrentDate());\n JSONObject req2 = new JSONObject(params2);\n\n request2 = new HTTPRequest(tag,\n mainActivity.HOST + mainActivity.PORT + route2,\n method2,\n req2);\n\n mainActivity.mHTTPHelper.sendToServer(request2);\n // ********************************************************\n }\n\n return true;\n\n }",
"public void likeBook(View v) {\n SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n\n try {\n //If not already liked\n if (!liked) {\n //Get current amount of liked books and put like info\n prefEditor.putBoolean(\"LIKED\" + currentBook.GID, true);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_red));\n liked = true;\n } else {\n prefEditor.remove(\"LIKED\" + currentBook.GID);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border_black));\n liked = false;\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(this, \"Book is still loading\", Toast.LENGTH_SHORT).show();\n }\n }",
"List<CommentLike> selectByExample(CommentLikeExample example);",
"@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.like_unlike_change_btn:\n\t\t\t\n\t\t\tUtill.showProgress(getApplicationContext());\n\t\t\t count = Integer.parseInt(newsList.get(position).getLikeCount()) ;\n\t\t\t likeStatus = newsList.get(position).getMyLikeStatus();\n\t\t\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\t\t\tparams.put(\"news_feed_id\", newsList.get(position).getNews_feed_id());\n\t\t\t\tparams.put(\"news_feed_like_user_id\", SessionManager.getUser_id(getApplicationContext()));\n\t\t\t\t\n\t\t\t if(newsList.get(position).getMyLikeStatus().equalsIgnoreCase(\"1\"))\n\t\t\t\t{\n\t\t\t\t\tlikeStatus = \"2\";\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlikeStatus = \"1\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tparams.put(\"likestatus\", likeStatus);\n\n\t\t\t\tif (Utill.isNetworkAvailable(VedioWebView.this)) {\n\t\t\t\t\tUtill.showProgress(getApplicationContext());\n\n\t\t\t\t\tGlobalValues.getModelManagerObj(getApplicationContext()).likeNews(params, new ModelManagerListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(String json) {\n\t\t\t\t\t\t\t// Utill.hideProgress();\n\t\t\t\t\t\t\tLog.e(\"like result \", json+\"\");\n\t\t\t\t\t\t//\tgetNewsFeed();\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJSONObject jsonObj = new JSONObject(json);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//\t10-23 20:25:32.215: E/result:(4090): {\"status\":\"true\",\"message\":\"Liked Successfully\",\"liked\":\"1\"}\n\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),jsonObj.getString(\"message\"), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t // if()\n\t\t\t\t\t\t\t\t//likeStatus = jsonObj.getString(\"liked\");\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\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnewsList.get(position).setMyLikeStatus(likeStatus);\n\t\t\t\t\t\t\tif(likeStatus.equalsIgnoreCase(\"1\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewsList.get(position).setLikeCount((++count)+\"\");\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setTextColor(Color.parseColor(\"#536CB5\") );\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setCompoundDrawablesWithIntrinsicBounds(R.drawable.active_like_icon, 0, 0, 0);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewsList.get(position).setLikeCount((--count)+\"\");\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setTextColor(Color.parseColor(\"#ffffff\") );\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setCompoundDrawablesWithIntrinsicBounds(R.drawable.like_icon, 0, 0, 0);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewsList.get(position).setMyLikeStatus(likeStatus);\n\t\t\t\t\t\t\tUtill.hideProgress();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onError(String msg) {\n\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tUtill.hideProgress();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tbreak;\n\n\t\t\tcase R.id.comment_btn:\n\t\t\t\tcomment_relative_layout.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\tcase\tR.id.comment_send_btn :\n\t\t\t\t\n\t\t\t//\tToast.makeText(getApplicationContext(), \"Plsase enter comment in comment box\", 1).show();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!comment_edittxt.getText().toString().equalsIgnoreCase(\"\")||comment_edittxt.getText().toString()!=\"\")\n\t\t\t\t{\n\t\t\t\t\tcomment_relative_layout.setVisibility(View.GONE);\n\t\t\t\t\tcommentNews(comment_edittxt.getText().toString(), newsList.get(position).getNews_feed_id());\n\t\t\t\t\thideSoftKeyboard();\n\t\t\t\t\tcomment_edittxt.setText(\"\");\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"Plsase enter comment in comment box\", 1).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\n\t\t}\n\t\t\n\t}",
"public static String getAllPostsLikesRef(String postId) {\n //childUpdates.put(\"/posts/\" + postId+\"/likes\", likeValue);\n return String.format(\"/%s/%s/%s\", POSTS, postId, LIKES);\n }",
"List<Post> findPostsByUserName(String userName);",
"public Integer getLikedcount() {\n return likedcount;\n }",
"public void filter(final List<ActivityDTO> activitiesCollection, final PersonModelView user)\n {\n List<ActivityDTO> activities = new LinkedList<ActivityDTO>();\n List<Long> activityIds = new LinkedList<Long>();\n \n // Need a List to preserve order.\n for (ActivityDTO activity : activitiesCollection)\n {\n activityIds.add(activity.getId());\n activities.add(activity);\n }\n \n List<List<Long>> likedCollection = getLikedActivityIdsByUserIdsMapper\n .execute(Arrays.asList(user.getEntityId()));\n \n List<Long> liked = null;\n \n if (likedCollection != null && likedCollection.size() > 0)\n {\n liked = likedCollection.iterator().next();\n }\n else\n {\n return;\n }\n \n List<List<Long>> likersCollection = getPeopleWhoLikedActivityMapper.execute(activityIds);\n List<Long> allLikerIds = new LinkedList<Long>();\n \n // Build list of all needed likers\n for (List<Long> likerList : likersCollection)\n {\n if (likerList.size() > likerLimit - 1)\n {\n allLikerIds.addAll(likerList.subList(0, likerLimit));\n }\n else\n {\n allLikerIds.addAll(likerList);\n }\n }\n \n List<PersonModelView> allLikersList = peopleMapper.execute(allLikerIds);\n \n Map<Long, PersonModelView> allLikersMap = new HashMap<Long, PersonModelView>();\n \n for (PersonModelView person : allLikersList)\n {\n allLikersMap.put(person.getId(), person);\n }\n \n for (int i = 0; i < activities.size(); i++)\n {\n ActivityDTO activity = activities.get(i);\n \n List<Long> likers = likersCollection.get(i);\n \n activity.setLikeCount(likers.size());\n \n List<PersonModelView> likersModels = new LinkedList<PersonModelView>();\n \n for (int j = 0; j < likers.size() && j < likerLimit - 1; j++)\n {\n likersModels.add(allLikersMap.get(likers.get(j)));\n }\n \n activity.setLikers(likersModels);\n activity.setLiked(liked.contains(activity.getId()));\n }\n }",
"@Override\n\tpublic int boardHasLiked(Map param) {\n\t\treturn dao.boardHasLiked(session, param);\n\t}",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"likes\").setValue(dataSnapshot.getChildrenCount());\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n }",
"public interface IRating {\n\t\n\t/**\n\t * Enums for various types of likes\n\t * @author terratenff\n\t *\n\t */\n\tpublic static enum LikeType {\n\t\tFUNNY(0), INFORMATIVE(1), DETAILED(2), IRONIC(3), INSPIRATIONAL(4),\n\t\tEASY(5), CHALLENGING(6), ABSURD(7), POETIC(8), SIMPLE(9),\n\t\tNONE(-1);\n\t\t\n\t\t/**\n\t\t * Container for various types of likes.\n\t\t */\n\t\tprivate static LikeType[] values = null;\n\t\t\n\t\t/**\n\t\t * Identifying value for a like type.\n\t\t */\n\t\tprivate int id;\n\t\t\n\t\t/**\n\t\t * LikeType constructor.\n\t\t * @param id Assigned ID.\n\t\t */\n\t\tLikeType(int id) {\n\t\t\tthis.id = id;\n\t\t}\n\t\t\n\t\t/**\n\t\t * Getter for the like type's ID.\n\t\t * @return ID value that corresponds the like type.\n\t\t */\n\t\tpublic int getId() {\n\t\t\treturn this.id;\n\t\t}\n\t\t\n\t\t/**\n\t\t * Getter for a like type based on provided ID.\n\t\t * @param id ID of desired like type.\n\t\t * @return Like type corresponding to provided ID, or like type\n\t\t * NONE if a match could not be found.\n\t\t */\n\t\tpublic static LikeType getLikeType(int id) {\n\t\t\tif (values == null) values = LikeType.values();\n\t\t\t\n\t\t\tfor (LikeType like : values) {\n\t\t\t\tif (id == like.getId()) return like;\n\t\t\t}\n\t\t\t\n\t\t\treturn LikeType.NONE;\n\t\t}\n\t};\n\n\t/**\n\t * Getter for rating ID.\n\t * @return ID.\n\t */\n\tpublic int getId();\n\t\n\t/**\n\t * Gives the rating instance an ID number. This function is meant to be called only once,\n\t * immediately after being added to the database.\n\t * @param id Assigned ID.\n\t */\n\tpublic void assignId(int id);\n\t\n\t/**\n\t * Getter for the ID of the user who created the story that the rating\n\t * is aimed at.\n\t * @return ID of the creator of the story.\n\t */\n\tpublic int getMakerId();\n\t\n\t/**\n\t * Getter for the ID of the user who created the rating.\n\t * @return ID of the rater.\n\t */\n\tpublic int getRaterId();\n\t\n\t/**\n\t * Getter for the ID of the story that the rating is focused on.\n\t * @return ID of the story.\n\t */\n\tpublic int getStoryId();\n\t\n\t/**\n\t * Getter for the time at which the rating was created.\n\t * @return Time of creation, as a LocalDate instance.\n\t */\n\tpublic LocalDate getViewDate();\n\t\n\t/**\n\t * Getter for the numerical rating given by the rater.\n\t * @return Numerical representation of the rating.\n\t */\n\tpublic int getGrade();\n\t\n\t/**\n\t * Getter for whether the user personally liked the story.\n\t * @return true, if the user liked it. false otherwise.\n\t */\n\tpublic boolean isLiked();\n\t\n\t/**\n\t * Getter for the like type assigned by the rater.\n\t * @return LikeType-enum given by the rater. NONE is returned if\n\t * the rater did not specifically like it.\n\t */\n\tpublic LikeType getLikeType();\n\t\n\t/**\n\t * Getter for the flag possibly raised by the rater. The flag indicates\n\t * that the rater thinks that the story violates story rules/guidelines.\n\t * @return true, if the rater has flagged it. false otherwise.\n\t */\n\tpublic boolean isFlagged();\n\t\n\t/**\n\t * Getter for a comment left behind by the rater.\n\t * @return Comment string. An empty string is returned if no comment was made.\n\t */\n\tpublic String getComment();\n}",
"public int numLikes() {\n return this.likes.size();\n }",
"@PostMapping(value = \"/makeLike\")\n\tpublic @ResponseBody Likes makeLiket(@RequestBody Likes like) {\n\n\t\treturn likesServ.likeAPost(like);\n\t}",
"public interface BlogRepository extends JpaRepository<Blog, Long>, CustomizedBlogRepository {\n\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Page<BlogSummaryProjection> findByAuthorInAndStatusOrderByCreatedTimeDesc(Collection<RganUser> author, BlogStatus status, Pageable pageable);\n\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Page<BlogSummaryProjection> findByStatusOrderByCreatedTimeDesc(BlogStatus status, Pageable pageable);\n\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Page<BlogSummaryProjection> findByAuthor_UsernameAndStatusOrderByCreatedTimeDesc(String username, BlogStatus status, Pageable pageable);\n\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Page<BlogSummaryProjection> findByAuthorOrderByCreatedTime(RganUser author, Pageable pageable);\n\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Page<BlogSummaryProjection> findByAuthorAndStatusOrderByCreatedTimeDesc(RganUser author, BlogStatus status, Pageable pageable);\n\n// @Query(value = \"SELECT b FROM Blog b join fetch b.voteCounter WHERE b.id=?1 AND b.status=?2\")\n @EntityGraph(value = \"blog.voteCounter\", type = EntityGraph.EntityGraphType.LOAD)\n Optional<Blog> findByIdAndStatus(Long id, BlogStatus status);\n\n @Query(value = \"SELECT b FROM Blog b JOIN FETCH b.voteCounter WHERE b.id=?1\")\n Optional<Blog> findByIdIs(Long id);\n}",
"public void storeLikeFeed(FeedUserRequest request, TopicsListResponse response) throws SQLException {\n storeFeed(request, response, LIKED_FEED_TYPE, TopicFeedRelation.DEFAULT_QUERY);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\taddLikeRelationship(jsonArray.getJSONObject(index).getInt(\"postid\"),index);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"private static int likeTwoRandomPhotosOnUserTimeLine(Client client, InstagramFeedItem item) throws InterruptedException{\n\t\tInstagramFeedResult userFeed = null;\n\t\tInstagram4j instagram = client.getInstagram();\n\t\ttry {\n\t\t\tsynchronized (instagram) {\n\t\t\t\tuserFeed = instagram.sendRequest(new InstagramUserFeedRequest(item.getUser().getPk()));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tint previous = 0, randomIndex = 0, numItemsLiked = 0;\n\t\tif (userFeed == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tint numItems = userFeed.getNum_results();\n\t\twhile (numItems >= 3 && numItemsLiked < 2) {\n\t\t\twhile (randomIndex == previous) {\n\t\t\t\trandomIndex = 1 + (rn.nextInt(numItems - 1));\n\t\t\t}\n\t\t\tprevious = randomIndex;\n\t\t\ttry {\n\t\t\t\tThread.sleep((long) ((16 + (6 * rn.nextDouble())) * 1000));\n\t\t\t\tInstagramLikeResult result = null;\n\t\t\t\tsynchronized (instagram) {\n\t\t\t\t\tresult = instagram.sendRequest(new InstagramLikeRequest(userFeed.getItems().get(randomIndex).getPk()));\n\t\t\t\t}\n\t\t\t\tif (checkIsSpam(result)){\n\t\t\t\t\tSystem.out.println(\"User \" + instagram.getUsername() + \" spammed while liking random\"\n\t\t\t\t\t\t\t+ \" item \" + item.id);\n\t\t\t\t\tif (client.incrementSpamCount()){\n\t\t\t\t\t\tSystem.out.println(\"Thread interrupted due to like spam\");\n\t\t\t\t\t\tthrow new InterruptedException();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"User \" + instagram.getUsername() + \" liked \" + userFeed.getItems().get(randomIndex).id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t} \n\t\t\tnumItemsLiked = numItemsLiked + 1;\n\n\t\t}\n\t\treturn numItemsLiked;\n\n\t}",
"public Hashtable<String,Users> getLikedUsers()\n {\n\n return this.likedUsers;\n }",
"int[] likeListForOneUser(int paraUserIndex, int paraLikeThreshold) {\n\t\tint[] tempLikeLists = new int[dataModel.uTeRateInds[paraUserIndex].length];\n\t\tint tempCount = 0;\n\t\t// Step 1. Obtain the like items.\n\t\tfor (int i = 0; i < dataModel.uTeRateInds[paraUserIndex].length; i++) {\n\t\t\tif (dataModel.uTeRatings[paraUserIndex][i] > paraLikeThreshold) {\n\t\t\t\ttempLikeLists[tempCount] = dataModel.uTeRateInds[paraUserIndex][i];\n\t\t\t\ttempCount++;\n\t\t\t} // Of for i\n\t\t} // of for i\n\n\t\t// Step 2. Compress\n\t\tif (tempCount == 0) {\n\t\t\treturn null;\n\t\t} // Of if\n\t\tint[] tempCompLikeLists = new int[tempCount];\n\t\tfor (int i = 0; i < tempCount; i++) {\n\t\t\ttempCompLikeLists[i] = tempLikeLists[i];\n\t\t} // Of for i\n\n\t\tArrays.sort(tempCompLikeLists);\n\n\t\treturn tempCompLikeLists;\n\t}",
"CommentLike selectByPrimaryKey(Integer id);",
"@RequestMapping(method = RequestMethod.GET, value = \"/like\")\n public Boolean like(Long id) {\n\treturn service.like(id);\n }",
"public static List<PostLike> listFromResultSet(ResultSet resultSet) {\n List<PostLike> result = new ArrayList<>();\n try {\n while (resultSet.next()) {\n result.add(fromResultSet(resultSet));\n }\n return result;\n } catch (SQLException e) {\n log.error(\"Error occurred during converting result set to list of post like.\", e);\n }\n return null;\n }",
"@Test\n public void TestLike() throws Exception {\n try {\n assertNull(like);\n int likesCount = 10;\n boolean isLiked = true;\n like = new Like(likesCount,isLiked);\n assertNotNull(like);\n }catch (Exception e){\n fail(\"Creating a like object with parameters fails.\");\n }\n }",
"@Override\n\tpublic void boardLike(boardDTO board) throws Exception {\n\t\tsqlSession.insert(namespace + \".likeInsert\", board);\n\t}",
"public void onClickLike() {\r\n\t\ttry {\r\n\t\t\tJSONObject mChannelData = mListChannelsData.getJSONObject(mCurrentPosition);\r\n\t\t\tString channelId = mChannelData.getString(ListChannelsServices.id);\r\n\t\t\tString channelName = mChannelData.getString(ListChannelsServices.name);\r\n\t\t\tif (mDatabaseDAO.checkFavouriteChannelExist(channelId)) {\r\n\t\t\t\tmDatabaseDAO.deleteFavouriteChannel(channelId);\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.removed_from_favourite_channel));\r\n\t\t\t} else {\r\n\t\t\t\tmDatabaseDAO.insertFavouriteChannel(channelId, \"\", mChannelData.toString());\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like_yes);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.added_to_favourite_channel));\r\n\t\t\t\t\r\n\t\t\t\t// Google Analytics\r\n\t\t\t\tString action = channelName;\r\n\t\t\t\tEasyTracker.getTracker().trackEvent(NameSpace.GA_CATEGORY_MOST_LIKED_CHANNELS, action, null, 1L);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public List<Post> findPostsForUser(Integer i) {\n\t\tSession session;\n\t\ttry {\n\t\t\tsession = sessfact.getCurrentSession();\n\t\t} catch (HibernateException e) {\n\t\t\tsession = sessfact.openSession();\n\t\t}\n\t\tTransaction trans = session.beginTransaction();\n\t\tList<Post> list = session.createQuery(\"from Post where user_id =\" + i, Post.class).list();\n\t\ttrans.commit();\n\t\treturn list;\n\n\t}",
"private void swipeLike() {\n String tmp = \"which position\" + manager.getTopPosition();\n System.out.println(manager.getTopPosition());\n //System.out.println(strangerList.get(manager.getTopPosition()-1).toString());\n //insert pos ACCOUNT -> DATABASE\n mRelationDB.addLike(mPI.getId(), managerlist.get(manager.getTopPosition()-1).getId());\n }",
"@Override\n\tpublic int getLikeCount(int id) {\n\t\treturn mapper.getLikeCount(id);\n\t}",
"@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;",
"Data<List<Pins>> getLike(Integer limit);",
"Wish findByUserId(int id);",
"public Result getLikers(long userID){\n\t\tfinal JsonNode[] result = {null};\n\t\tString userID2 = \"\"+userID;\n\n\t\tSQLTools.StatementFiller sf = stmt -> stmt.setString(1, userID2);\n\t\tSQLTools.ResultSetProcessor rp = rs -> result[0] = SQLTools.columnsAndRowsToJSON(rs);\n\n\t\ttry {\n\t\t\tSQLTools.doPreparedStatement(db, \"SELECT Users.user_id, Users.first_name, Users.last_name \\n\" +\n\t\t\t\t\t\t\t\"FROM Users, User_likes \\n\" +\n\t\t\t\t\t\t\t\"WHERE Users.user_id = User_likes.liker_id \\n\" +\n\t\t\t\t\t\t\t\"AND User_likes.liked_id = ?\", sf,\n\t\t\t\t\trp);\n\t\t} catch (SQLException e) {\n\t\t\treturn internalServerError(\"couldn't load likers: \" + e);\n\t\t}\n\n\t\treturn ok(result[0]);\n\n\t}",
"@Override\n public void like(int hotelId) {\n }",
"public static ResultSet getPinnedPost(int count){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from pinnedposts where postid = ?\");\n pst.setInt(1, count);\n result = pst.executeQuery();\n System.out.println(\"PostDAO: getting pinned post\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }",
"public String getCampaignUserLikes() {\n return userPollLikes;\n }"
]
| [
"0.6910552",
"0.65337586",
"0.6446313",
"0.6280857",
"0.6034948",
"0.6034751",
"0.60228777",
"0.5995521",
"0.581904",
"0.5773479",
"0.5769394",
"0.574911",
"0.5741987",
"0.5720884",
"0.5715629",
"0.56646067",
"0.5656136",
"0.56417274",
"0.55947894",
"0.5551644",
"0.5545666",
"0.55343354",
"0.5505399",
"0.54921895",
"0.5463216",
"0.54532754",
"0.54521716",
"0.5339899",
"0.5337173",
"0.5333077",
"0.53170156",
"0.5316856",
"0.5295781",
"0.5294971",
"0.52836156",
"0.52661276",
"0.5254639",
"0.5252859",
"0.525252",
"0.5228081",
"0.52060044",
"0.5187842",
"0.5174231",
"0.5172305",
"0.5160223",
"0.514241",
"0.51374817",
"0.5126392",
"0.508331",
"0.508331",
"0.50701743",
"0.5062076",
"0.50519764",
"0.50498366",
"0.50364745",
"0.50357723",
"0.5029583",
"0.5014464",
"0.49825427",
"0.49800998",
"0.49773479",
"0.49595392",
"0.49536532",
"0.4952372",
"0.49516913",
"0.49511936",
"0.49440807",
"0.492367",
"0.49205598",
"0.49196446",
"0.49185398",
"0.49111494",
"0.49056882",
"0.48777968",
"0.48768377",
"0.4850386",
"0.48501426",
"0.48243314",
"0.4816456",
"0.48103073",
"0.48045194",
"0.48042196",
"0.47846952",
"0.47827378",
"0.47793296",
"0.47611043",
"0.4758346",
"0.47581515",
"0.47448045",
"0.47434482",
"0.47417393",
"0.47346595",
"0.47325692",
"0.47310898",
"0.47238028",
"0.47172567",
"0.47144413",
"0.470785",
"0.4699612",
"0.46890262"
]
| 0.75451434 | 0 |
increment / decrement the number of likes insert into blogpostlikes / delete from blogpostlikes | BlogPost updateLikes(BlogPost blogPost, User user); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void like() {\n this.likes += 1;\n }",
"void incrementCommentLikes(long id) throws DaoException;",
"private void setLikesCount(int value) {\n \n likesCount_ = value;\n }",
"public void setLikedcount(Integer likedcount) {\n this.likedcount = likedcount;\n }",
"@Override\r\n public void onUpdateLikeCommentCount(String socialType, int requestType, int count, int isUserLike) throws RemoteException {\n\r\n }",
"private void swipeLike() {\n String tmp = \"which position\" + manager.getTopPosition();\n System.out.println(manager.getTopPosition());\n //System.out.println(strangerList.get(manager.getTopPosition()-1).toString());\n //insert pos ACCOUNT -> DATABASE\n mRelationDB.addLike(mPI.getId(), managerlist.get(manager.getTopPosition()-1).getId());\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"dislikes\").setValue(dataSnapshot.getChildrenCount());\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"likes\").setValue(dataSnapshot.getChildrenCount());\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n }",
"@Override\n public void onClick(final View view) {\n Query likeQuery = Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"ratings\").orderByValue().equalTo(false);\n likeQuery.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n// Toast.makeText(view.getContext(), \"AANTAL RATINGS! = \" + dataSnapshot.getChildrenCount(), Toast.LENGTH_SHORT).show();\n\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"dislikes\").setValue(dataSnapshot.getChildrenCount());\n tv_likecounter.setText(dataSnapshot.getChildrenCount() + \"\");\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n Constants.foodstagramDB.child(Constants.CHILD_RECIPE).child(parentId).child(Constants.CHILD_SHARED_DISH).child(postId).child(\"ratings\").child(userId).setValue(false);\n\n }",
"public void onitemclickmethod(int position) {\n\n position_of_image = position;\n int num1 = uploads.get(position_of_image).getNumber_likes();\n uploads.get(position_of_image).setNumber_likes(num1 + 1);\n\n String id = uploads.get(position_of_image).getId();\n int number = uploads.get(position_of_image).getNumber_likes();\n String name = uploads.get(position_of_image).getName();\n url = uploads.get(position_of_image).getImageUrl();\n\n //updating the tables\n\n Map<String, Object> map = new HashMap<>();\n map.put(id, new Upload(name, url, number, id));\n // mDatabaseRef.child(id).child(\"number_likes\").setValue(number);\n uploads.clear();\n mDatabaseRef.updateChildren(map);\n mRecyclerView.smoothScrollToPosition(position_of_image);\n\n }",
"public int getLikesCount() {\n return likesCount_;\n }",
"BlogPostLikes userLikes(BlogPost blogPost,User user);",
"@Override\r\n\tpublic void zjcom(Integer bid) {\n\t\tBlog blog = this.getBlogDao().getById(bid);\r\n\t\tblog.setCommentcounts(blog.getCommentcounts()+1);\r\n\t\tthis.getBlogDao().update(blog);\r\n\t}",
"@Test\n public void TestMinusLikesCount() throws Exception {\n try {\n int likesCount = 10;\n boolean isLiked = true;\n like = new Like(likesCount,isLiked);\n like.minusLikesCount();\n assertEquals(9,like.getLikesCount());\n }catch (Exception e){\n fail(\"addLikesCount method doesn't work properly.\");\n }\n }",
"private void updateCommentCount() {\n mProceessComment = true;\n final DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Posts\").child(postId);\n ref.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (mProceessComment){\n\n String comment =\"\"+ dataSnapshot.child(\"pComments\").getValue();\n int newCommentVal = Integer.parseInt(comment)+1;\n ref.child(\"pComments\").setValue(\"\"+newCommentVal);\n mProceessComment = false ;\n\n\n\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n\n }",
"public void incrementCount() {\n count++;\n }",
"public void addCount()\r\n {\r\n bookCount++;\r\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"@Test\n public void TestAddLikesCount() throws Exception {\n try {\n int likesCount = 10;\n boolean isLiked = true;\n like = new Like(likesCount,isLiked);\n like.addLikesCount();\n assertEquals(11,like.getLikesCount());\n }catch (Exception e){\n fail(\"addLikesCount method doesn't work properly.\");\n }\n }",
"void incrementCount();",
"public void incrementCount() {\n\t\tcount++;\n\t}",
"void addLike(long mediaId);",
"public void incCount() { }",
"public void addCount()\n {\n \tcount++;\n }",
"public int numLikes() {\n return this.likes.size();\n }",
"public void incrementCount(){\n count+=1;\n }",
"public Builder setLikesCount(int value) {\n copyOnWrite();\n instance.setLikesCount(value);\n return this;\n }",
"public void incuploadcount(){\n\t\tthis. num_upload++;\n\t}",
"private void setLikes() {\n\n final DatabaseReference likesRef= FirebaseDatabase.getInstance().getReference().child(\"Likes\");\n\n likesRef.addValueEventListener(new ValueEventListener() {\n @SuppressLint(\"NewApi\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.child(postId).hasChild(myUid)) {\n likeBtn.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_liked_blue,0,0,0);\n likeBtn.setText(\"Liked\");\n\n\n }\n else{\n likeBtn.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_like_black,0,0,0);\n likeBtn.setText(\"Like\");\n\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"public void addLike() {\n // TODO implement here\n }",
"int incCommentCount(Comment comment);",
"public void deleteLike() {\n // TODO implement here\n }",
"private void clearLikesCount() {\n \n likesCount_ = 0;\n }",
"public Integer getLikedcount() {\n return likedcount;\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.like_unlike_change_btn:\n\t\t\t\n\t\t\tUtill.showProgress(getApplicationContext());\n\t\t\t count = Integer.parseInt(newsList.get(position).getLikeCount()) ;\n\t\t\t likeStatus = newsList.get(position).getMyLikeStatus();\n\t\t\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\t\t\tparams.put(\"news_feed_id\", newsList.get(position).getNews_feed_id());\n\t\t\t\tparams.put(\"news_feed_like_user_id\", SessionManager.getUser_id(getApplicationContext()));\n\t\t\t\t\n\t\t\t if(newsList.get(position).getMyLikeStatus().equalsIgnoreCase(\"1\"))\n\t\t\t\t{\n\t\t\t\t\tlikeStatus = \"2\";\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlikeStatus = \"1\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tparams.put(\"likestatus\", likeStatus);\n\n\t\t\t\tif (Utill.isNetworkAvailable(VedioWebView.this)) {\n\t\t\t\t\tUtill.showProgress(getApplicationContext());\n\n\t\t\t\t\tGlobalValues.getModelManagerObj(getApplicationContext()).likeNews(params, new ModelManagerListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(String json) {\n\t\t\t\t\t\t\t// Utill.hideProgress();\n\t\t\t\t\t\t\tLog.e(\"like result \", json+\"\");\n\t\t\t\t\t\t//\tgetNewsFeed();\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJSONObject jsonObj = new JSONObject(json);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//\t10-23 20:25:32.215: E/result:(4090): {\"status\":\"true\",\"message\":\"Liked Successfully\",\"liked\":\"1\"}\n\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),jsonObj.getString(\"message\"), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t // if()\n\t\t\t\t\t\t\t\t//likeStatus = jsonObj.getString(\"liked\");\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\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnewsList.get(position).setMyLikeStatus(likeStatus);\n\t\t\t\t\t\t\tif(likeStatus.equalsIgnoreCase(\"1\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewsList.get(position).setLikeCount((++count)+\"\");\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setTextColor(Color.parseColor(\"#536CB5\") );\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setCompoundDrawablesWithIntrinsicBounds(R.drawable.active_like_icon, 0, 0, 0);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewsList.get(position).setLikeCount((--count)+\"\");\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setTextColor(Color.parseColor(\"#ffffff\") );\n\t\t\t\t\t\t\t\tlike_unlike_change_btn.setCompoundDrawablesWithIntrinsicBounds(R.drawable.like_icon, 0, 0, 0);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewsList.get(position).setMyLikeStatus(likeStatus);\n\t\t\t\t\t\t\tUtill.hideProgress();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onError(String msg) {\n\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tUtill.hideProgress();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tbreak;\n\n\t\t\tcase R.id.comment_btn:\n\t\t\t\tcomment_relative_layout.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\tcase\tR.id.comment_send_btn :\n\t\t\t\t\n\t\t\t//\tToast.makeText(getApplicationContext(), \"Plsase enter comment in comment box\", 1).show();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!comment_edittxt.getText().toString().equalsIgnoreCase(\"\")||comment_edittxt.getText().toString()!=\"\")\n\t\t\t\t{\n\t\t\t\t\tcomment_relative_layout.setVisibility(View.GONE);\n\t\t\t\t\tcommentNews(comment_edittxt.getText().toString(), newsList.get(position).getNews_feed_id());\n\t\t\t\t\thideSoftKeyboard();\n\t\t\t\t\tcomment_edittxt.setText(\"\");\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"Plsase enter comment in comment box\", 1).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\n\t\t}\n\t\t\n\t}",
"public void setNbLikesQuestion(int value) {\n this.nbLikesQuestion = value;\n }",
"public void likePost(String userKey) {\n if (!this.likes.contains(userKey)) {\n this.likes.add(userKey);\n }\n }",
"public void updatePopularity(int increase){\n //@todo implement method\n }",
"public void setLikedPosts(List<Post> likedPosts) {\n this.likedPosts = likedPosts;\n }",
"@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (isLiked) {\n if (dataSnapshot.child(post_key).hasChild(firebaseAuth.getCurrentUser().getUid())) {\n like_database.child(post_key).child(firebaseAuth.getCurrentUser().getUid()).removeValue();\n isLiked = false;\n\n } else {\n like_database.child(post_key).child(firebaseAuth.getCurrentUser().getUid()).setValue(\"random\");\n isLiked = false;\n\n }\n }\n }",
"void decrementCommentLikes(long lifeHackId) throws DaoException;",
"public void increaseCount(){\n myCount++;\n }",
"private void handleLikeButtonClick() {\n boolean performLike = !CurrentUser.hasLiked(prismPost);\n performUIActivitiesForLike(performLike);\n\n if (performLike) {\n DatabaseAction.performLike(prismPost);\n } else {\n DatabaseAction.performUnlike(prismPost);\n }\n }",
"public int liked(int i,String j) {\n \r\n List<Integer> list =new ArrayList();\r\n try{\r\n pst = con.prepareStatement(\"select * from likes where blog=\"+i+\"&& user=\"+j+\" \");\r\n ResultSet rs = pst.executeQuery();\r\n \r\n while(rs.next()){\r\n //créer une instance vide de personne()\r\n \r\n list.add(rs.getInt(1));\r\n //afficher l'instane \r\n //System.out.println(l);\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(CommentaireService.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n System.out.println(list);\r\n return list.size();\r\n \r\n\r\n }",
"@Override\n\tpublic void addURLVisitCount(String shortUrl){\t\t\n\t\t \t\t\t\t \t\t\n\t\t \t\tint visitCount = getVisitCountList(shortUrl).getVisitCount();\t\t\n\t\t \t\tvisitCount++;\t\t\n\t\t \t\tString SQL = \"UPDATE GlobalUrlDB SET visitCount = (?) WHERE shortUrl = (?)\";\t\t\n\t\t \t\tObject[] params = new Object[] { visitCount, shortUrl };\t\t\n\t\t \t\ttry{\t\t\n\t\t \t\t\tjdbcTemplateObject.update( SQL, params);\t\t\n\t\t \t\t}\t\t\n\t\t \t\tcatch(Exception e){\t\t\n\t\t \t\t\te.printStackTrace();\t\t\n\t\t \t\t}\t\t\n\t\t \t\t\n\t\t \t}",
"private void incrNegativeCount(){\n m_NegativeCount++;\n }",
"public void increseHitCount() {\n\r\n\t}",
"@GetMapping(value = \"/getLikes\")\n\tpublic @ResponseBody List<Likes> getNbByPost(@RequestBody Post post) {\n\n\t\treturn (likesServ.findAllLikeForPost(post));\n\t}",
"public void addVote() {\n this.votes++;\n }",
"@Override\n public void onBindViewHolder(final MascotaViewHolder mascotaViewHolder, int position) {\n final Mascota mascota = mascotas.get(position);\n\n mascotaViewHolder.imgMascota.setImageResource(mascota.getFoto());\n mascotaViewHolder.tv_nombre.setText(mascota.getNombre());\n mascotaViewHolder.tv_count.setText(String.valueOf(mascota.getCount()));\n mascotaViewHolder.btn_BoneLike.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Toast.makeText(activity, \"Diste BoneLike a \" + mascota.getNombre(), Toast.LENGTH_SHORT).show();\n int count=mascota.getCount();\n count = count +1;\n mascota.setCount(count);\n //Volvemos a cargar los count\n mascotaViewHolder.tv_count.setText(String.valueOf(mascota.getCount()));\n }\n\n });\n\n }",
"void incrementAddedCount() {\n addedCount.incrementAndGet();\n }",
"@Override\r\n\tpublic boolean expressLike(Post post, int para, int userid) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tdao=new Score_RecordDaoImpl(TransactionManager.connection);\r\n\t\tScore_Record record=new Score_Record();\r\n\t\trecord.setPostId(post.getPostId());\r\n\t\trecord.setUserId(userid);\r\n\t\tif(dao.insert(record)>0)\r\n\t\t\t{postDao.expressLike(post, para);\r\n\t\t\treturn true;\r\n\t\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\taddLikeRelationship(jsonArray.getJSONObject(index).getInt(\"postid\"),index);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"void incCount() {\n ++refCount;\n }",
"int insert(LikedKey record);",
"private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}",
"Builder addCommentCount(Integer value);",
"public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }",
"public void increment(){\n\t\twordCount += 1;\n\t}",
"public void addKickVote()\n\t{\n\t\tthis.numberOfKickVotes++;\n\t}",
"public void incrementKills(Firebase reference){\n reference.child(\"kills\").setValue(++kills);\n }",
"public void increseReplyCount() {\n\r\n\t}",
"void recount();",
"public void increaseNumHits() {\n\t\tthis.numHits += 1;\n\t}",
"public long getLikes() {\n return likes;\n }",
"public int getLikesCount() {\n return instance.getLikesCount();\n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"public void upVote(Post p) {\n p.upvote();\n }",
"void upCount(){\n count++;\n }",
"void deleteLike(long mediaId);",
"public void increaseCount(RefreshToken refreshToken) {\n refreshToken.incrementRefreshCount();\n save(refreshToken);\n }",
"public void likeBook(View v) {\n SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n\n try {\n //If not already liked\n if (!liked) {\n //Get current amount of liked books and put like info\n prefEditor.putBoolean(\"LIKED\" + currentBook.GID, true);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_red));\n liked = true;\n } else {\n prefEditor.remove(\"LIKED\" + currentBook.GID);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border_black));\n liked = false;\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(this, \"Book is still loading\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onClick(View v) {\n if (deletedContentModel != null && deletedContentModel.getBean() != null) {\n premium_updateBookmarkFavLike(null, null, context,\n deletedPosition, deletedContentModel.getBean(), \"dislike\");\n CleverTapUtil.cleverTapBookmarkFavLike(context, articleId, mFrom, \"UNDO\");\n }\n }",
"@Override\n public void doLike(final int position, final boolean like) {\n mCircleAction.doLike(circleList.get(position).getSid(), !circleList.get(position).isLiked(),new RequestCallback() {\n @Override\n public void onResult(int code, String result, Throwable var3) {\n if(code == 0){\n if(!circleList.get(position).isLiked()){\n //点赞\n circleList.get(position).setLikeCount(circleList.get(position).getLikeCount() + 1);\n circleList.get(position).setIsLiked(true);\n } else {\n //取消赞\n circleList.get(position).setLikeCount(circleList.get(position).getLikeCount() - 1);\n circleList.get(position).setIsLiked(false);\n }\n mCircleAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onFailed() {\n\n }\n });\n }",
"public void incrementNumOfBoats() {\n\t\tnumOfBoats++;\n\t}",
"@Override \n public void updateVote(String keyString) throws EntityNotFoundException {\n Key entityKey = KeyFactory.stringToKey(keyString);\n Entity entity = ds.get(entityKey);\n int currentCount = ((Long) entity.getProperty(\"voteCount\")).intValue();\n entity.setProperty(\"voteCount\", currentCount + 1);\n ds.put(entity);\n }",
"public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}",
"public void incB() {\n this.countB++;\n }",
"public void incrementBranchCount() {\n this.branchCount++;\n }",
"private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}",
"long countByExample(LikeUserExample example);",
"public int readLikesNumbers(LikesStat likesStat) {\n\t\ttry {\n\t\t\tString query = \"SELECT COUNT(*) AS total FROM LikesStat WHERE signalisation_id = ? AND stat_type = 1\";\n\t\t\tResultSet rs = db.executeQuery(query, new SQLParameter(likesStat.getSignalingId()));\n\t\t\tif(rs.next()){\n\t\t\t\treturn rs.getInt(\"total\");\n\t\t\t}else{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t} catch (SQLException exception) {\n\t\t\tSystem.err.println(\"Unexpected error in LikeStatDao delete : \" + exception);\n\t\t\treturn -1;\n\t\t}\n\t}",
"public void increment_tally(int list_position){\n int tally_value = db.getGroupItemTallyValueFromDisplayedIndex(group_id, list_position);\n // Add 1\n tally_value += 1;\n // Store value in database\n db.setGroupItemTally(group_id, list_position, tally_value);\n\n drawbars();\n }",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"@Override\n\tpublic void updateStatisticCounts(long topicCoutn, long postCount)\n\t\t\tthrows Exception {\n\n\t}",
"private void incTag() {\n long id = tagId(tag[th()]); // 1\n tag[th()] = newTag(id+1); // 2\n }",
"public void incrank() {\n\t\trank++;\n\t}",
"public void incrementRefusals() {\n\t}",
"public void onClickLike() {\r\n\t\ttry {\r\n\t\t\tJSONObject mChannelData = mListChannelsData.getJSONObject(mCurrentPosition);\r\n\t\t\tString channelId = mChannelData.getString(ListChannelsServices.id);\r\n\t\t\tString channelName = mChannelData.getString(ListChannelsServices.name);\r\n\t\t\tif (mDatabaseDAO.checkFavouriteChannelExist(channelId)) {\r\n\t\t\t\tmDatabaseDAO.deleteFavouriteChannel(channelId);\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.removed_from_favourite_channel));\r\n\t\t\t} else {\r\n\t\t\t\tmDatabaseDAO.insertFavouriteChannel(channelId, \"\", mChannelData.toString());\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like_yes);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.added_to_favourite_channel));\r\n\t\t\t\t\r\n\t\t\t\t// Google Analytics\r\n\t\t\t\tString action = channelName;\r\n\t\t\t\tEasyTracker.getTracker().trackEvent(NameSpace.GA_CATEGORY_MOST_LIKED_CHANNELS, action, null, 1L);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void increaseReviewViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseReviewViewCnt\", no);\r\n\t}",
"public void incrementAmountBought() {\n amountBought++;\n }",
"private void setFriendsCount(DocumentReference reference, Map<String, Object> data, boolean increment, boolean updateFriendsCount) {\n String error = \"Failed to update friends count information\";\n if (data != null) {\n Object valueObj = data.get(\"friends-count\");\n\n int value = increment ? 1:0;\n\n if (valueObj instanceof Long) {\n long temp = (Long)valueObj;\n value = (int)(increment ? temp + 1:temp - 1);\n value = Math.max(value, 0);\n }\n\n final int finalValue = value;\n data.clear();\n data.put(\"friends-count\", value);\n reference.set(data, SetOptions.merge())\n .addOnSuccessListener(success -> {\n if (updateFriendsCount)\n friendsView.setText(String.valueOf(finalValue));\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n } else {\n int value = increment ? 1:0;\n data = new HashMap<>();\n data.put(\"friends-count\", value);\n reference.set(data)\n .addOnFailureListener(fail -> handleError(error, fail));\n }\n }",
"private synchronized void increment() {\n ++count;\n }",
"private void assignLikes(List<Post> likes){\n\t\ttextLikes = Lists.newArrayList();\n\t\tphotoLikes = Lists.newArrayList();\n\t\tvideoLikes = Lists.newArrayList();\n\t\tfor (Post like : likes) {\n\t\t\tif (like instanceof TextPost) {\n\t\t\t\ttextLikes.add((TextPost)like);\n\t\t\t} else if (like instanceof PhotoPost) {\n\t\t\t\tphotoLikes.add((PhotoPost)like);\n\t\t\t} else if (like instanceof VideoPost) {\n\t\t\t\tvideoLikes.add((VideoPost)like);\n\t\t\t}\n\t\t}\n\t}",
"public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}",
"int postsCount();",
"private static void setCounter() {++counter;}",
"@Test\n public void TestGetLikeCount() throws Exception {\n try {\n int likesCount = 10;\n boolean isLiked = true;\n like = new Like(likesCount,isLiked);\n assertEquals(10,like.getLikesCount());\n }catch (Exception e){\n fail(\"get likesCount method doesn't work properly.\");\n }\n }"
]
| [
"0.7233242",
"0.6677799",
"0.649465",
"0.64704204",
"0.6281685",
"0.62245345",
"0.62079954",
"0.6105897",
"0.60805017",
"0.59113854",
"0.5897923",
"0.58972734",
"0.5876726",
"0.5872284",
"0.5851257",
"0.5835911",
"0.57951456",
"0.5760712",
"0.5760226",
"0.5743156",
"0.57390153",
"0.57270443",
"0.57099044",
"0.5673894",
"0.56450063",
"0.5629653",
"0.55968744",
"0.5596553",
"0.5581925",
"0.5575491",
"0.5531968",
"0.55267626",
"0.55192477",
"0.55178046",
"0.5509195",
"0.55059713",
"0.54948795",
"0.5492372",
"0.54903334",
"0.54817927",
"0.5463277",
"0.54593533",
"0.54546535",
"0.544912",
"0.544902",
"0.5448414",
"0.5443304",
"0.54401577",
"0.5429412",
"0.5423544",
"0.542086",
"0.53965664",
"0.5394542",
"0.539339",
"0.5358691",
"0.53494877",
"0.53361535",
"0.53282017",
"0.5315386",
"0.5309345",
"0.5303946",
"0.5277266",
"0.52761793",
"0.5270412",
"0.5264951",
"0.52617556",
"0.5246844",
"0.52152383",
"0.5214329",
"0.5197495",
"0.5189896",
"0.5189466",
"0.5187473",
"0.5185818",
"0.51739156",
"0.51663256",
"0.5155637",
"0.514842",
"0.51437765",
"0.51388174",
"0.5133817",
"0.51334167",
"0.5126874",
"0.5118934",
"0.5116708",
"0.5116708",
"0.5105162",
"0.5102993",
"0.510015",
"0.5094332",
"0.50903076",
"0.508312",
"0.50807106",
"0.5079673",
"0.50753015",
"0.50736326",
"0.5063722",
"0.5060647",
"0.5054902",
"0.50541604"
]
| 0.6741787 | 1 |
Return the types of events allowed in a response, an assert will be done. | protected abstract List<EventType> getAllowedEventTypes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testValidEventTypes() throws Exception {\n \n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n\n String elist = EventFeedJSON.CONTEST_KEY + \",\" + EventFeedJSON.TEAM_KEY;\n EventFeedFilter filter = new EventFeedFilter(null, elist);\n String json = eventFeedJSON.createJSON(data.getContest(), filter, null, null);\n assertNotNull(json);\n \n// System.out.println(\"debug valid event json \"+json);\n\n assertCountEvent(1, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertMatchCount(120, \"icpc_id\", json);\n }",
"String getEventType();",
"@Override\n protected void validateResponseTypeParameter(String responseType, AuthorizationEndpointRequest request) {\n }",
"boolean handlesEventsOfType(RuleEventType type);",
"public void testLotsOfValidTypes() throws Exception {\n\n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n\n String elist = EventFeedJSON.AWARD_KEY + \",\" + // \n EventFeedJSON.CLARIFICATIONS_KEY + \",\" + // \n EventFeedJSON.CONTEST_KEY + \",\" + // \n EventFeedJSON.GROUPS_KEY + \",\" + // \n EventFeedJSON.JUDGEMENT_KEY + \",\" + // \n EventFeedJSON.JUDGEMENT_KEY + \",\" + // \n EventFeedJSON.JUDGEMENT_TYPE_KEY + \",\" + // \n EventFeedJSON.LANGUAGE_KEY + \",\" + // \n EventFeedJSON.CONTEST_KEY + \",\" + // \n EventFeedJSON.ORGANIZATION_KEY + \",\" + // \n EventFeedJSON.TEAM_MEMBERS_KEY + \",\" + // \n EventFeedJSON.PROBLEM_KEY + \",\" + // \n EventFeedJSON.RUN_KEY + \",\" + // \n EventFeedJSON.RUN_KEY + \",\" + // \n EventFeedJSON.SUBMISSION_KEY + \",\" + // \n EventFeedJSON.CLARIFICATIONS_KEY + \",\" + // \n EventFeedJSON.TEAM_KEY + \",\" + // \n EventFeedJSON.TEAM_MEMBERS_KEY;\n\n eventFeedJSON.setEventTypeList(elist);\n String json = eventFeedJSON.createJSON(data.getContest(), null, null);\n assertNotNull(json);\n \n // editFile(writeFile(new File(\"/tmp/stuf.\" + System.currentTimeMillis() + \".json\"), json));\n\n assertCountEvent(2, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(200, EventFeedJSON.CLARIFICATIONS_KEY, json);\n assertCountEvent(600, EventFeedJSON.TEAM_MEMBERS_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertCountEvent(6, EventFeedJSON.LANGUAGE_KEY, json);\n assertCountEvent(24, EventFeedJSON.JUDGEMENT_KEY, json);\n assertCountEvent(9, EventFeedJSON.JUDGEMENT_TYPE_KEY, json);\n }",
"private HashSet<String> getEventTypes(HLPetriNet hlPN) {\n\t\tHashSet<String> returnEvtTypes = new HashSet<String>();\n\t\tIterator<Transition> transitionsIt = hlPN.getPNModel().getTransitions()\n\t\t\t\t.iterator();\n\t\twhile (transitionsIt.hasNext()) {\n\t\t\tTransition transition = transitionsIt.next();\n\t\t\tif (transition.getLogEvent() != null) {\n\t\t\t\treturnEvtTypes.add(transition.getLogEvent().getEventType());\n\t\t\t}\n\t\t}\n\t\treturn returnEvtTypes;\n\t}",
"java.lang.String getEventType();",
"public abstract NAEventType getEventType();",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"public String[] getAcceptedTypes() {\n\t\tLinkedList<String> typelist = new LinkedList<String>(acceptedEventTypes.keySet());\n\t\tCollections.sort(typelist);\n\t\tString[] result = new String[typelist.size()];\n\t\tint c = 0;\n\t\tfor (String t : typelist) {\n\t\t\tresult[c] = t;\n\t\t\tc++;\n\t\t}\n\t\treturn result;\n\t}",
"public abstract Response[] collectResponse();",
"ResponsesType createResponsesType();",
"public boolean check(EventType event);",
"EventType getEvent();",
"public boolean hasResponseType() {\n return fieldSetFlags()[4];\n }",
"List<String> getListenerTypes();",
"public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }",
"public boolean isSupportedResponseTriggerEvent(String messageType, String triggerEvent) {\n if(\"ACK\".equals(messageType)) {\n return true;\n }\n int index = indexOf(allowedResponseMessageTypes, messageType);\n if (index == INDEX_NOT_FOUND) {\n throw new IllegalArgumentException(\"Unknown message type \" + messageType);\n }\n String triggerEvents = allowedResponseTriggerEvents[index];\n return contains(StringUtils.split(triggerEvents, ' '), triggerEvent);\n }",
"com.google.protobuf.ByteString getEventTypeBytes();",
"public void testEventAdditionalTypes() throws Exception\n {\n checkEventTypeRegistration(EVENT_TYPE_BUILDER,\n \"testTree -> MOUSE, testTree -> CHANGE\");\n }",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"String event_type () throws BaseException;",
"@Override\n public long getSupportedEventTypes() {\n return EventType.GO_TO;\n }",
"boolean hasGenericResponse();",
"java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse> \n getConditionalResponsesList();",
"public void testTeamEventType() throws Exception {\n\n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n\n String elist = EventFeedJSON.SUBMISSION_KEY + \",\" + //\n EventFeedJSON.TEAM_KEY;\n\n eventFeedJSON.setEventTypeList(elist);\n String json = eventFeedJSON.createJSON(data.getContest(), null, null);\n assertNotNull(json);\n \n // editFile(writeFile(new File(\"/tmp/stuf.\" + System.currentTimeMillis() + \".json\"), json));\n\n assertCountEvent(0, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(0, EventFeedJSON.CLARIFICATIONS_KEY, json);\n assertCountEvent(0, EventFeedJSON.TEAM_MEMBERS_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertCountEvent(0, EventFeedJSON.JUDGEMENT_TYPE_KEY, json);\n \n /**\n * Run test of filter a second time.\n */\n \n json = eventFeedJSON.createJSON(data.getContest(), null, null);\n assertNotNull(json);\n \n assertCountEvent(0, EventFeedJSON.CONTEST_KEY, json);\n assertCountEvent(0, EventFeedJSON.CLARIFICATIONS_KEY, json);\n assertCountEvent(0, EventFeedJSON.TEAM_MEMBERS_KEY, json);\n assertCountEvent(120, EventFeedJSON.TEAM_KEY, json);\n assertCountEvent(0, EventFeedJSON.JUDGEMENT_TYPE_KEY, json);\n \n }",
"public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;",
"@Override\n public boolean accepts(HttpResponse response) {\n Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);\n for (Header header : headers) {\n if (header != null && header.getValue().contains(NTLMConstants.CONTENT_TYPE_FOR_SPNEGO)) {\n return true;\n }\n }\n return false;\n }",
"public void testInvalidEventTypes() throws Exception {\n \n \n UnitTestData data = new UnitTestData();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(data.getContest());\n \n String [] badTypeNameLists = {\n //\n \"a,b,c\", //\n \"contest,teams,bogus\", //\n \"unk,contest,teams\", //\n \"bad\", //\n \"23423499afsdfdf,34343,contest\", //\n };\n\n for (String badbadlist : badTypeNameLists) {\n try {\n eventFeedJSON.setEventTypeList(badbadlist);\n eventFeedJSON.createJSON(data.getContest(), null, null);\n fail(\"Expecting IllegalArgumentException for list '\" + badbadlist + \"'\");\n } catch (IllegalArgumentException e) {\n\n ; // Expected results, this passes the test\n }\n }\n\n \n }",
"protected LogEventRequestType getLogEventRequestTypeForProxyResponseMessage(RegistryResponseType response,\n AssertionType assertion) {\n LogEventRequestType message = new LogEventRequestType();\n return message;\n }",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"@Test\n\tpublic void testGetAvailableEvents() {\n\n\t\tArrayList<Object[]> showEvents = new ArrayList<Object[]>();\n\n\t\ttry {\n\t\t\trequest = new MockHttpServletRequest(\"GET\", \"/displayEvent.htm\");\n\t\t\t\n\t\t\tcontroller.getAvailableEvents(request, response);\t\t\n\t\t\t\n\t\t\tshowEvents = eventDao.showAllEvents();\n\t\t\t\n\t\t} catch (Exception exception) {\t\t\t\n\t\t\tfail(\"Exception\");\n\t\t}\n\t\tassertEquals(showEvents.size() > 0, true);\n\t}",
"@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }",
"public ZserioType getResponseType()\n {\n return responseType;\n }",
"public String getEventType()\r\n {\r\n return eventType;\r\n }",
"IEvent[] getEvents();",
"public int[] enabledEvents() {\n boolean[] userRecordableEvts0 = userRecordableEvts;\n\n int[] enabledEvts = new int[len];\n int enabledEvtsLen = 0;\n\n for (int type = 0; type < len; type++) {\n if (userRecordableEvts0[type])\n enabledEvts[enabledEvtsLen++] = type;\n }\n\n return U.unique(enabledEvts, enabledEvtsLen, inclEvtTypes, inclEvtTypes.length);\n }",
"@JsonProperty(\"EventType\")\r\n\tpublic EventRequest.EventType getEventType() {\r\n\t\treturn eventType;\r\n\t}",
"@JsonIgnore public Collection<Offer> getExpectsAcceptanceOfs() {\n final Object current = myData.get(\"expectsAcceptanceOf\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Offer>) current;\n }\n return Arrays.asList((Offer) current);\n }",
"public String getEventType()\n {\n return eventType;\n }",
"private boolean isWholeGameEvent(String eventType){\n return eventType.equals(\"Stonks\") || eventType.equals(\"Riot\") || eventType.equals(\"Mutate\") || eventType.equals(\"WarpReality\");\n }",
"DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);",
"private void verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE type) {\n verify(mDefaultEventBus, atLeastOnce()).post(mPostEventCaptor.capture());\n List<Object> events = mPostEventCaptor.getAllValues();\n assertTrue(events.size() > 0);\n Log.d(Constants.TAG, \"\\n expected type: \" + type);\n boolean isContain = false;\n for (Object event : events) {\n Log.d(Constants.TAG, \"::::::\" + event);\n if (event instanceof ScheduleFetchEvent && ((ScheduleFetchEvent) event).getType() == type) {\n isContain = true;\n }\n }\n if (!isContain) {\n fail(\"Do not have FetchAlarm: \" + type);\n }\n }",
"public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }",
"TypeList getExceptionTypes();",
"public boolean getAssertAllowedType() {\n return _assertType;\n }",
"@Override\n protected boolean acceptEvent(BuilderEvent event)\n {\n if (getEventType() == null)\n {\n return false;\n }\n assert event != null : \"Event is null!\";\n\n Class<?> eventClass = event.getClass();\n try\n {\n Method method = eventClass.getMethod(METHOD_TYPE);\n Object eventType = method.invoke(event);\n if (eventType instanceof Enum<?>)\n {\n return getEventType().equals(((Enum<?>) eventType).name());\n }\n }\n catch (Exception ex)\n {\n // All exceptions cause the event to be not accepted\n }\n\n return false;\n }",
"private void parseEventType() { //TODO: add a list of all the school holidays to checkfor the 'holiday' event type.\n String tempTitle = title.toLowerCase();\n if(tempTitle.contains(\"no school\") || tempTitle.contains(\"teacher's institute\") || tempTitle.contains(\"teacher's work day\") || tempTitle.contains(\"snow day\")) { //example: no school\n this.type = EventType.noSchool;\n } else if(tempTitle.contains(\"late start\")) {//example: late start wednesday\n this.type = EventType.lateStart;\n } else if(tempTitle.contains(\"last day\")) {//example last day before spring break;\n this.type = EventType.lastDayBeforeBreak;\n } else if(tempTitle.contains(\"end of\")) { //example: end of first semester\n this.type = EventType.endOf;\n } else if(tempTitle.contains(\"meeting\")) {\n this.type = EventType.meeting;\n } else {\n this.type = EventType.regular;\n }\n }",
"List<Type> getThrows();",
"public String getEventType() {\r\n return eventType;\r\n }",
"public int[] exceptionTypes();",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"public void testDispatchTypes() {\n startActivity();\n \n Log.v(TAG,\"testDispatchTypes\");\n SystemDispatcher.Listener listener = new SystemDispatcher.Listener() {\n\n public void onDispatched(String type , Map message) {\n Log.v(TAG,\"testDispatchTypes - received: \" + type);\n\n if (!type.equals(\"Automater::response\")) {\n return;\n }\n\n Payload payload = new Payload();\n payload.name = type;\n payload.message = message;\n\n lastPayload = payload;\n }\n };\n\n SystemDispatcher.addListener(listener);\n\n Map message = new HashMap();\n message.put(\"field1\",\"value1\");\n message.put(\"field2\",10);\n message.put(\"field3\",true);\n message.put(\"field4\",false);\n \n List field5 = new ArrayList(3);\n field5.add(23);\n field5.add(true);\n field5.add(\"stringValue\");\n message.put(\"field5\",field5);\n field5 = new ArrayList(10);\n\n Map field6 = new HashMap();\n field6.put(\"sfield1\", \"value1\");\n field6.put(\"sfield2\", 10);\n field6.put(\"sfield3\", true);\n field6.put(\"sfield4\", false);\n message.put(\"field6\", field6);\n \n assertTrue(lastPayload == null);\n\n SystemDispatcher.dispatch(\"Automater::echo\",message);\n sleep(500);\n\n assertTrue(lastPayload != null);\n assertTrue(lastPayload.message.containsKey(\"field1\"));\n assertTrue(lastPayload.message.containsKey(\"field2\"));\n assertTrue(lastPayload.message.containsKey(\"field3\"));\n assertTrue(lastPayload.message.containsKey(\"field4\"));\n assertTrue(lastPayload.message.containsKey(\"field5\"));\n assertTrue(lastPayload.message.containsKey(\"field6\"));\n\n String field1 = (String) lastPayload.message.get(\"field1\");\n assertTrue(field1.equals(\"value1\"));\n\n int field2 = (int) (Integer) lastPayload.message.get(\"field2\");\n assertEquals(field2,10);\n\n boolean field3 = (boolean)(Boolean) lastPayload.message.get(\"field3\");\n assertEquals(field3,true);\n\n boolean field4 = (boolean)(Boolean) lastPayload.message.get(\"field4\");\n assertEquals(field4,false);\n \n List list = (List) lastPayload.message.get(\"field5\");\n assertEquals(list.size(),3);\n assertEquals(list.get(0), 23);\n assertEquals(list.get(1), true);\n assertTrue((((String) list.get(2)).equals(\"stringValue\")));\n\n Map map = (Map) lastPayload.message.get(\"field6\");\n assertTrue(map.containsKey(\"sfield1\"));\n assertTrue(((String) map.get(\"sfield1\")).equals(\"value1\"));\n assertTrue(map.containsKey(\"sfield2\"));\n assertEquals(map.get(\"sfield2\"), 10);\n assertTrue(map.containsKey(\"sfield3\"));\n assertTrue(map.containsKey(\"sfield4\"));\n \n SystemDispatcher.removeListener(listener);\n }",
"public static ArrayList<Event> getEvents(String accessToken) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n try {\n JsonObject eventsJson = getWebService(params, EVENTS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"RESULT: \" + eventsJson.toString());\n if (eventsJson != null) {\n GsonBuilder builder = new GsonBuilder();\n builder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n\n Gson gson = builder.create();\n ArrayList<Event> eventList = gson.fromJson(\n eventsJson.get(\"events\"),\n new TypeToken<ArrayList<Event>>() {\n }.getType());\n return eventList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when getting events - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when getting events\", e);\n return null;\n } // end try-catch\n }",
"public String getEventType() {\n return eventType;\n }",
"@PostMapping(path = \"/online-sales-service/allEventRegistration\")\n\tpublic @ResponseBody ResponseEntity<?> allEventRegistration(\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tList<EventRegistration> eventRegistrationList = null;\n\t\ttry {\n\t\t\teventRegistrationList = eventRegistrationService.retrieveAllEventRegistration();\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\treturn new ResponseEntity<List<EventRegistration>>(eventRegistrationList, HttpStatus.OK);\n\t}",
"public static List<AbiDefinition> getEventAbiDefinitions(String contractAbi) {\n List<AbiDefinition> abiArr = JsonUtils.toJavaObjectList(contractAbi, AbiDefinition.class);\n List<AbiDefinition> result = new ArrayList<>();\n for (AbiDefinition abiDefinition : abiArr) {\n if (ConstantProperties.TYPE_EVENT.equals(abiDefinition.getType())) {\n result.add(abiDefinition);\n } \n }\n return result;\n }",
"@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}",
"boolean supports(GenericType<? extends Source<?>> type, HttpClientResponse response);",
"public AbstractIterableAssert<?, ? extends Iterable<? extends E>, E> events() {\n return Assertions.assertThat(getEvents());\n }",
"public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }",
"public void setEventType(String eventType){\n this.eventType = eventType;\n }",
"@Override\n public String getEventType()\n {\n\t return null;\n }",
"boolean hasReflectionResponse();",
"public GameEvent[] getEvents();",
"public PayloadType[] getVideoPayloadTypes();",
"int getResponseTypeValue();",
"@Override\n\tprotected Boolean isHeader(String[] fields) {\n\t\t//check\n return (isValid(fields) && fields[0].equals(\"event\") && fields[1].equals(\"yes\") && fields[2].equals(\"maybe\") && fields[3].equals(\"invited\") && fields[4].equals(\"no\"));\n\t}",
"public abstract int[] getReturnTypes();",
"public void testValidEnums () {\t\n\t\tString example = \"USER_EXIT\";\n\t\tAppInterfaceUnregisteredReason enumUserExit = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"IGNITION_OFF\";\n\t\tAppInterfaceUnregisteredReason enumIgnitionOff = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"BLUETOOTH_OFF\";\n\t\tAppInterfaceUnregisteredReason enumBluetoothOff = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"USB_DISCONNECTED\";\n\t\tAppInterfaceUnregisteredReason enumUsbDisconnected = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"REQUEST_WHILE_IN_NONE_HMI_LEVEL\";\n\t\tAppInterfaceUnregisteredReason enumRequestWhileInNoneHmiLevel = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"TOO_MANY_REQUESTS\";\n\t\tAppInterfaceUnregisteredReason enumTooManyRequests = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"DRIVER_DISTRACTION_VIOLATION\";\n\t\tAppInterfaceUnregisteredReason enumDriverDistractionViolation = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"LANGUAGE_CHANGE\";\n\t\tAppInterfaceUnregisteredReason enumLanguageChange = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"MASTER_RESET\";\n\t\tAppInterfaceUnregisteredReason enumMasterReset = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"FACTORY_DEFAULTS\";\n\t\tAppInterfaceUnregisteredReason enumFactoryDefaults = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"APP_UNAUTHORIZED\";\n\t\tAppInterfaceUnregisteredReason enumAppAuthorized = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"PROTOCOL_VIOLATION\";\n\t\tAppInterfaceUnregisteredReason enumProtocolViolation = AppInterfaceUnregisteredReason.valueForString(example);\n\t\t\t\t\n\t\tassertNotNull(\"USER_EXIT returned null\", enumUserExit);\n\t\tassertNotNull(\"IGNITION_OFF returned null\", enumIgnitionOff);\n\t\tassertNotNull(\"BLUETOOTH_OFF returned null\", enumBluetoothOff);\n\t\tassertNotNull(\"USB_DISCONNECTED returned null\", enumUsbDisconnected);\n\t\tassertNotNull(\"REQUEST_WHILE_IN_NONE_HMI_LEVEL returned null\", enumRequestWhileInNoneHmiLevel);\n\t\tassertNotNull(\"TOO_MANY_REQUESTS returned null\", enumTooManyRequests);\n\t\tassertNotNull(\"DRIVER_DISTRACTION_VIOLATION returned null\", enumDriverDistractionViolation);\n\t\tassertNotNull(\"LANGUAGE_CHANGE returned null\", enumLanguageChange);\n\t\tassertNotNull(\"MASTER_RESET returned null\", enumMasterReset);\n\t\tassertNotNull(\"FACTORY_DEFAULTS returned null\", enumFactoryDefaults);\n\t\tassertNotNull(\"APP_UNAUTHORIZED returned null\", enumAppAuthorized);\n\t\tassertNotNull(\"PROTOCOL_VIOLATION returned null\", enumProtocolViolation);\n\t}",
"public boolean hasListResponse() {\n return msgCase_ == 6;\n }",
"public int getResponseTypeValue() {\n return responseType_;\n }",
"private boolean isPeriodEndOnInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (response.getDescriptionValues() == null ||\n !response.getDescriptionValues().containsKey(PERIOD_END_ON) ||\n StringUtils.isBlank(response.getDescriptionValues().get(PERIOD_END_ON))) {\n\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"Period end on has not been set within the description_values in the Document Generator Response\");\n\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n return false;\n }\n\n return true;\n }",
"public void testValidEnums () {\t\n\t\tString example = \"NORMAL\";\n\t\tECallConfirmationStatus enumNormal = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_IN_PROGRESS\";\n\t\tECallConfirmationStatus enumCallInProgress = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_CANCELLED\";\n\t\tECallConfirmationStatus enumCancelled = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_COMPLETED\";\n\t\tECallConfirmationStatus enumCompleted = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_UNSUCCESSFUL\";\n\t\tECallConfirmationStatus enumUnsuccessful = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"ECALL_CONFIGURED_OFF\";\n\t\tECallConfirmationStatus enumConfiguredOff = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_COMPLETE_DTMF_TIMEOUT\";\n\t\tECallConfirmationStatus enumCompleteDtmfTimeout = ECallConfirmationStatus.valueForString(example);\n\t\t\n\t\tassertNotNull(\"NORMAL returned null\", enumNormal);\n\t\tassertNotNull(\"CALL_IN_PROGRESS returned null\", enumCallInProgress);\n\t\tassertNotNull(\"CALL_CANCELLED returned null\", enumCancelled);\n\t\tassertNotNull(\"CALL_COMPLETED returned null\", enumCompleted);\n\t\tassertNotNull(\"CALL_UNSUCCESSFUL returned null\", enumUnsuccessful);\n\t\tassertNotNull(\"ECALL_CONFIGURED_OFF returned null\", enumConfiguredOff);\n\t\tassertNotNull(\"CALL_COMPLETE_DTMF_TIMEOUT returned null\", enumCompleteDtmfTimeout);\n\t}",
"public interface NoEventType {\n\n}",
"boolean hasListResponse();",
"public boolean hasListResponse() {\n return msgCase_ == 6;\n }",
"public String getActions()\n {\n StringBuffer sb = new StringBuffer();\n boolean first = true;\n \n if ( ( m_eventTypeMask & MASK_SERVICE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_SERVICE );\n }\n if ( ( m_eventTypeMask & MASK_CONTROL ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CONTROL );\n }\n if ( ( m_eventTypeMask & MASK_CORE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CORE );\n }\n \n return sb.toString();\n }",
"@Test\n public void testSimpleValidType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(TimestampedEvent.class);\n typeList.add(GenericRecord.class);\n typeList.add(Integer.class);\n typeList.add(Object.class);\n PipelineRegisterer.validateTypes(typeList);\n }",
"teledon.network.protobuffprotocol.TeledonProtobufs.TeledonResponse.Type getType();",
"@Override\n\tpublic EVENT_TYPE getEventType() {\n\t\treturn EVENT_TYPE.FLOW_EVENT;\n\t}",
"public LogEventRequestAndResponse[] retrieveRecordedRequestsAndResponses(RequestDefinition requestDefinition) {\n String recordedRequests = retrieveRecordedRequestsAndResponses(requestDefinition, Format.JSON);\n if (isNotBlank(recordedRequests) && !recordedRequests.equals(\"[]\")) {\n return httpRequestResponseSerializer.deserializeArray(recordedRequests);\n } else {\n return new LogEventRequestAndResponse[0];\n }\n }",
"public IEventType<T>[] getSuperTypes();",
"public List<AbstractWebhookEvent> decodeEvents(String json) {\n\n JSONArray rawEventArray = new JSONArray(json);\n\n List<AbstractWebhookEvent> webhookEvents = new ArrayList<AbstractWebhookEvent>();\n for (int i = 0; i < rawEventArray.length(); i++) {\n JSONObject jsonobject = rawEventArray.getJSONObject(i);\n JSONObject eventWrapper = jsonobject.getJSONObject(\"msys\");\n\n Object[] keys = eventWrapper.keySet().toArray();\n if (keys.length != 1) {\n System.err.println(\"ERROR: there should only be one key in the event keyset. [\" + eventWrapper + \"]\");\n continue;\n }\n String classGroup = keys[0].toString();\n JSONObject eventData = eventWrapper.getJSONObject(classGroup);\n String type = eventData.getString(\"type\");\n\n String classId = classGroup + \".\" + type;\n Class c = classMap.get(classId);\n if (c == null) {\n System.err.println(\"Unknow event type: \" + classId + \"\\n[\" + eventData + \"]\");\n continue;\n }\n\n //AbstractWebhookEvent eventObj = GSON.fromJson(eventData.toString(), c);\n //webhookEvents.add(eventObj);\n\n }\n\n return webhookEvents;\n }",
"public interface RetrofitResponseEvent<R> extends ResponseEvent<R> {\n\n void setHeadersAndStatus(List<Header> headers, int status);\n}",
"public Map<String, JsonElementType> getJsonResponseStructure();",
"@WebMethod public Vector<Question> getQuestions(Event ev);",
"public void onEventResponded(int eventID, int qid, String qtype, String responseString);",
"ResponseEntity<List<Type>> findTaskTypes();",
"public interface OnEventRespondedListener {\n\t \t\n\t \t// boolean value to decide if let go next\n\t public void onEventResponded(int eventID, int qid, String qtype, String responseString);\n\t \n\t // CODE: CONTAINS A STRING OF FOUR VALUES\n\t // Event ID(int), QID(int), QUESTION_TYPE(\"S\"(single) or \"M\"(multiple)),\n\t // CHOICE_INDEX(int for Single, String for multiple)\n\t \n\t }",
"Collection<EventDetector> getEventsDetectors();",
"RecordDataSchema getActionResponseSchema();",
"@DISPID(7) //= 0x7. The runtime will prefer the VTID if present\r\n @VTID(14)\r\n visiotool.IVEventList eventList();",
"boolean getReturnPartialResponses();",
"public boolean isResponse(){\n return true;\n }",
"public String[] getSupportedRequestTypes()\n {\n return new String[] { ms_RequestDTD };\n }",
"@WebMethod public List<BetMade> getBetsFromEvents(Event ev);",
"private String getEventType(Event event) {\n if (event instanceof Seminar) {\n return \"[S]: \";\n } else {\n return \"[E]: \";\n }\n }",
"public List<Event> getAllResponsesByResponder(String responder_name) {\n List<Event> events = new ArrayList<Event>();\n\n String selectQuery = \"SELECT * FROM \" + EVENTS_TABLE_NAME + \" evt, \"\n + EVENTS_TABLE_NAME + \" resp, \" + RESPONDERS_EVENTS_TABLE_NAME + \" resp_evt WHERE resp.\"\n + EVENT_NAME + \" = '\" + responder_name + \"'\" + \" AND resp.\" + KEY_ID\n + \" = \" + \"resp_evt.\" + RESPONDERS_EVENTS_EVENTS_ID + \" AND evt.\" + KEY_ID + \" = \"\n + \"resp_evt.\" + RESPONDERS_EVENTS_RESPONDERS_ID;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Event evt = new Event();\n evt.setId(c.getInt((c.getColumnIndex(KEY_ID))));\n evt.setEventName((c.getString(c.getColumnIndex(EVENT_NAME))));\n evt.setDate(c.getString(c.getColumnIndex(EVENT_DATE)));\n\n events.add(evt);\n } while (c.moveToNext());\n }\n\n return events;\n }"
]
| [
"0.61564094",
"0.5803144",
"0.55844337",
"0.5460945",
"0.54491884",
"0.5350546",
"0.5341132",
"0.5304324",
"0.5290701",
"0.5290701",
"0.5268114",
"0.5263505",
"0.52460873",
"0.52325183",
"0.5231337",
"0.5228188",
"0.5171237",
"0.5150577",
"0.51275814",
"0.5112921",
"0.5103065",
"0.50821805",
"0.50751615",
"0.5066108",
"0.5058492",
"0.5047444",
"0.50430477",
"0.50327337",
"0.5031607",
"0.50279343",
"0.502612",
"0.5020722",
"0.5009015",
"0.4997255",
"0.4993814",
"0.49688208",
"0.49596125",
"0.49537915",
"0.49478903",
"0.49439386",
"0.49368414",
"0.49233022",
"0.4915648",
"0.49143615",
"0.4908839",
"0.4897765",
"0.48973286",
"0.48916048",
"0.48843724",
"0.48695472",
"0.48651415",
"0.48315024",
"0.48303807",
"0.48232016",
"0.48217216",
"0.48185188",
"0.4806599",
"0.48029837",
"0.48012066",
"0.47918725",
"0.4777872",
"0.47769782",
"0.47752628",
"0.4775068",
"0.4774558",
"0.47679174",
"0.47653148",
"0.4762274",
"0.47576904",
"0.47487763",
"0.47465387",
"0.47453788",
"0.47372404",
"0.47343257",
"0.4718106",
"0.4716188",
"0.4701463",
"0.4698073",
"0.46898234",
"0.468624",
"0.46848047",
"0.46818864",
"0.4675962",
"0.46748418",
"0.46721306",
"0.4661341",
"0.46557286",
"0.46531865",
"0.46517766",
"0.4649595",
"0.46486008",
"0.46465865",
"0.46425655",
"0.46422783",
"0.4641373",
"0.46407107",
"0.46311137",
"0.4628682",
"0.4628095",
"0.46276474"
]
| 0.720151 | 0 |
When the user exits the activity the exit transition should be triggered | @Override
public void onBackPressed() {
exitReveal();
super.onBackPressed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onExit();",
"void onExit();",
"public void exitActivity() {\n\n finish();\n\n }",
"@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\toverridePendingTransition(activityCloseEnterAnimation, activityCloseExitAnimation);\n\t}",
"public void onExit() {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n startActivity(homeIntent);\n finish();\n }",
"@Override\n\tpublic void onExit() {\n\t\t\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onExit() {\n if (currStepView != null) {\n showNextStep(0);\n }\n\n clearStep(currStepView);\n UserIQSDKInternal.getScreenTracker().removeCallBack(screenTracker);\n UIManager.getInstance().getUiRootView().setCallback(null);\n uiThreadHandler.removeCallbacksAndMessages(null);\n }",
"public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }",
"@Override\n\t public void onExit() {\n\t\t super.onExit();\n\t }",
"public void Exit() {\r\n \tsuper.onBackPressed();\r\n }",
"public void exitAnimation() {\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }",
"public void btnExitClick(){\n // Finish the main activity\n onPause();\n this.getActivity().finish();\n }",
"private void onEndGame() {\n Intent intent1 = new Intent(this, MainActivity.class);\n startActivity(intent1);\n finish();\n }",
"@Override\n\tpublic void exit() {\n\t\tMessenger.unregister(this, Message.KEY_DOWN, Message.Move, Message.Scale, Message.Rotate);\n\t}",
"private void exitApplication() {\n Button exit = (Button) findViewById(R.id.activity_one_exit_button); // exit button declaration\n exit.setOnClickListener(new View.OnClickListener() { //set listener for exit button\n @Override\n public void onClick(View v) {\n finish();//close the activity\n\n }\n });\n }",
"public void finish() {\n\t\tsuper.finish();\n\t\tthis.overridePendingTransition(0, R.anim.acvivity_stop_anim);\n\t}",
"private void exitAction() {\n\t}",
"@Override\n public void onBackPressed() {\n exit++;\n System.out.println(\"###############exit\" + exit);\n if (exit == 1) {\n start = System.currentTimeMillis();\n Toast.makeText(this, \"再点击退出\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n end = System.currentTimeMillis();\n if (end - start < 3000) {\n//\t\t\t\tSystem.exit(0);\n//\t\t\t\tAppActivityManager.getAppManager().finishAllActivity();\n finish();\n } else {\n Toast.makeText(this, \"再点击退出\", Toast.LENGTH_SHORT).show();\n start = System.currentTimeMillis();\n return;\n }\n }\n }",
"@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.stay, R.anim.slide_out_to_bottom);\n }",
"public void touchExit() \n {\n if (getOneIntersectingObject(Exit.class) != null)\n Level1.transitionToGameWinWorld(); \n }",
"@Override\n public void onBackPressed() {\n runExitAnimation(new Runnable() {\n public void run() {\n // *Now* go ahead and exit the activity\n finish();\n }\n });\n }",
"public void exit(View v) {\n finish();\n }",
"protected void onExit() {\r\n\t\tnew DelayAsyncTask(this, 500).execute();\r\n\t}",
"public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}",
"@FXML\n private void handleExit() {\n GuiSettings guiSettings = new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n logic.setGuiSettings(guiSettings);\n logic.displayAllTasks();\n resultDisplay.setFeedbackToUser(\"\");\n primaryStage.hide();\n }",
"@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.activity_slide_in_left, R.anim.activity_slide_out_right);\n }",
"@FXML protected void doExit(ActionEvent event) {\n\t\tmodel.exit();\n\t}",
"@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}",
"@FXML\r\n void exit(ActionEvent event) {\r\n \tSystem.out.println(\"Student Account Working Controller\");\r\n \t((Node) event.getSource()).getScene().getWindow().hide();\r\n }",
"private void exit() {\n this.isRunning = false;\n }",
"public void onTileExit(Tile tile) {}",
"@Override\n public void finish()\n {\n super.finish();\n\n // Allow for a smooth transition to the new Activity.\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }",
"@Override\n public void onBackPressed() {\n if (exit) {\n System.exit(0);\n } else {\n Toast.makeText(this, \"Press Back again to Exit.\",\n Toast.LENGTH_SHORT).show();\n exit = true;\n new Handler().postDelayed(new Runnable() { //3 sn içinde iki defa basıldı mı kontrolu için\n @Override\n public void run() {\n exit = false;\n }\n }, 3 * 1000);\n }\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t\tmApplication.exit();\n\t\t\t}",
"@Override\n public void exit() {\n model.exit();\n }",
"public void exit() {\n\tif (hasPlayed) {\n\t hasPlayed = false;\n\t lastExit = System.currentTimeMillis(); // note the time of exit\n\t}\n }",
"public void exitApplication(View view){\n finishAffinity();\n }",
"public void finish() {\n\t \n\t super.onDestroy();\n\t MainActivity.nowcontext=MainActivity.context;\n\t super.finish();\n\t \n\t //关闭窗体动画显示 \n\t this.overridePendingTransition(R.anim.activity_open_right,R.anim.activity_close_right); \n\t}",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"public final void onExitAmbient() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.MapView) this.getHInstance()).onExitAmbient()\");\n ((com.huawei.hms.maps.MapView) this.getHInstance()).onExitAmbient();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.MapView) this.getGInstance()).onExitAmbient()\");\n ((com.google.android.gms.maps.MapView) this.getGInstance()).onExitAmbient();\n }\n }",
"@FXML\n void OnActionLogout(ActionEvent event) {\n System.exit(0);\n }",
"@Override\n public void exit() {\n super.exit();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\texit();\r\n\t\t\t}",
"@Override\n\tpublic void exit() {\n\n\t}",
"@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n\tpublic void exit() {\n\t\t\n\t}",
"@Override\n\tpublic void exit() {\n\t\t\n\t}",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }",
"public void onClickExit(View view) {\n BYPASS_LOGIN = false;\n\n //finish activity\n super.finish();\n\n //close all activities\n ActivityCompat.finishAffinity(this);\n\n //log out of google play services\n super.signOut();\n }",
"@Override\n public void onBackPressed() {\n gameAlertDialog.show(\"EXIT\");\n exitAlertVisible = true;\n }",
"public void finishTransition() {\n animTimer = 0;\n if (gameTransition) playTime = 0.0f;\n roomTransition = false;\n gameTransition = false;\n fadeToBlack = true;\n }",
"public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n switch (keyCode) {\n case KeyEvent.KEYCODE_BACK:\n if (keyCode == KeyEvent.KEYCODE_BACK\n && event.getAction() == KeyEvent.ACTION_DOWN) {\n// HcAppState.getInstance().removeActivity(this);\n finish();\n overridePendingTransition(0, 0);\n }\n break;\n\n default:\n break;\n }\n return true;\n }",
"@Override\r\n\tpublic void exit() {\n\r\n\t}",
"@Override\n public void onBackPressed() {\n\n Intent homeIntent = new Intent(CustomersActivity.this, MainActivity.class);\n startActivity(homeIntent);\n\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n\n finish();\n\n return;\n }",
"@Override\r\n public void drawExit()\r\n {\r\n\tdraw();\r\n\tif (_transition != null)\r\n\t _transition.draw();\r\n }",
"@Override\r\n public void onAgentExit(Event event, Agent agent, Cell cell, Direction dir) {\r\n }",
"@Override\n public void exit()\n {\n\t ((ControllerHost)getHost()).showPopupNotification(\"Chord Buddy Exited\");\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n overridePendingTransition(R.anim.enter_from_left, R.anim.exit_to_right);\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread() {\n @Override\n public void run() {\n if (animator.isStarted()) animator.stop();\n System.exit(0);\n }\n }.start();\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n new Thread() {\n @Override\n public void run() {\n if (animator.isStarted()) animator.stop();\n System.exit(0);\n }\n }.start();\n }",
"@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }",
"public void exit(ActionEvent actionEvent) {\r\n //Closes hibernate and then the program.\r\n controller.exit();\r\n System.exit(0);\r\n }",
"@Override\n public void onBackPressed() {\n confirmExit();\n }",
"@Override\r\n\tpublic void exit(long dateTime) {\n\t\t\r\n\t}",
"@Override\n protected void end() {\n DemoUtils.fadeOutAndExit(getMainFrame(), 800);\n }",
"@Override\n public void onClick(View v) {\n finish();\n System.exit(0);\n }",
"@Override\n public void onClick(View v) {\n finish();\n System.exit(0);\n }",
"public void onAnimationEnd(Animation animation){\n\t\t\t\tIntent intent = new Intent(Splash.this, TMDmenu.class);\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tSplash.this.finish();\n\t\t\t}",
"public abstract void exit();",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tif (workoutService != null && workoutService.getService().getStatus().isMonitoring()) {\n\t\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\t\tstopWorkout(true);\n\t\t\t} else {\n\t\t\t\tpromptStopWorkout(true);\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onBackPressed();\n\t\t\toverridePendingTransition(anim.push_right_in, anim.push_right_out);\n\t\t}\n\t}",
"private void ending() {\n\t\tstartView.ending();\n\t\tSystem.exit(-1);\n\t}",
"public void onDestroy() {\n if (getIntent() != null && getIntent().getBooleanExtra(Constants.EXTRA_FROM_MAINACTIVITY, false)) {\n MainActivity.gotoMainActivity(this);\n }\n super.onDestroy();\n }",
"@FXML\n private void exitMenuItem() {\n\n // Exit the entire application\n Platform.exit();\n }",
"public void exitActionMode() {\n if (isInActionMode()) {\n actionMode.finish();\n }\n }",
"public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n public void run() {\n animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdoExit();\r\n\t\t\t}",
"public void exit() {\n\t\tnextPlace = exitName;\n\t\tOrganizer.getOrganizer().deleteSuspended();\n\t\texit(Values.LANDSCAPE);\n\t}",
"@FXML\n public void quitGame(ActionEvent event) {\n Platform.exit();\n }",
"public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n public void run() {\n if (animator.isAnimating())\n \t\t animator.stop();\n System.exit(0);\n }\n }).start();\n }",
"public void onAnimationEnd(Animation animation) {\n\t\t\t\tstartActivity(new Intent(SplashActivity.this, MainMenu.class));\n\t\t\t\tSplashActivity.this.finish();\n\t\t\t}",
"private void shopExitButtonClicked() {\n finish();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n // Clear the session data\n // This will clear all session data and\n // rdirect user to LoginActivity\n FragmentManager mFragmentManager = getActivity().getSupportFragmentManager();\n if (mFragmentManager.getBackStackEntryCount() > 0)\n mFragmentManager.popBackStackImmediate();\n\n\n// getActivity().finish();\n// Intent i = new Intent(getContext(), LoginWithMobile.class);\n// startActivity(i);\n session.logoutUser();\n// System.exit(0);\n\n\n// int pid = android.os.Process.myPid();\n// android.os.Process.killProcess(pid);\n// Toast.makeText(getApplicationContext(), \"User Is Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onBackPressed() {\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n if (drawer.isDrawerOpen(GravityCompat.START)) {\n drawer.closeDrawer(GravityCompat.START);\n } else {\n // salir de la app\n if (exit) {\n finish();\n } else {\n Toast.makeText(this, R.string.alert_close_message,\n Toast.LENGTH_SHORT).show();\n exit = true;\n new CountDownTimer(3000, 1000) {\n\n @Override\n public void onTick(long l) {\n\n }\n\n @Override\n public void onFinish() {\n exit = false;\n }\n }.start();\n }\n }\n }",
"public void Exit_button() {\n\t \t Stage stage = (Stage) btnExit.getScene().getWindow();\n\t \t \n\t \t stage.close();\n\t }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n\n overridePendingTransition(R.anim.slide_right_exit, R.anim.slide_left_exit);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif(isExit){\n\t\t\tfinish();\n\t\t}else{\n\t\t\tisExit=true;\n\t\t\tToast.makeText(MainActivity.this, \"�ٵ��һ���˳�\", 0).show();\n\t\t\ttimerTask=new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tisExit=false;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttimer.schedule(timerTask, 2000);\n\t\t}\n\t}",
"public void exitToMenu()\n {\n exitToMenuFlag = true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinish();\n\t\t\t\tactivityAnimationClose();\n\t\t\t}",
"@Override\r\n public void onBackPressed() {\r\n \t// Handle the back button click event such that if user \r\n \t// is performing an IMCI or CCM assessment then a confirmation dialog \r\n \t// will be displayed to confirm that the user wishes to exit the \r\n \t// patient assessment\r\n \texitAssessmentDialogHandler();\r\n }",
"public void onUserLeaveHint() {\n\t\tsuper.onUserLeaveHint();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tString log_msg = \"Back pressed...\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\tthis.finish();\n\t\t\n\t\tthis.overridePendingTransition(0, 0);\n\t\t\n\t}",
"void btn_Exit_actionPerformed(ActionEvent e) {\n\t\t// TODO : changer le behaviour oneshot ? le remplacer par le notre ?\n m_owner.addBehaviour( new OneShotBehaviour() {\n public void action() {\n ((TinderSupervisorAgent) myAgent).terminateHost();\n }\n } );\n }",
"public void exit();",
"private void exitCombatPlayerDefeat(){\n\t\tCheckpoint.load();\r\n\t\t//GlobalGameState.setActiveGameState(GameStates.DEFEAT);\r\n\t\tGSTransition.getInstace().prepareTransition( GameStates.DEFEAT );\r\n\t\tGlobalGameState.setActiveGameState(GameStates.TRANSITION);\r\n\t}"
]
| [
"0.75284475",
"0.74649066",
"0.73712754",
"0.72946244",
"0.72797835",
"0.72394264",
"0.7196896",
"0.7190961",
"0.7093371",
"0.7000371",
"0.6995363",
"0.698285",
"0.69500464",
"0.6947171",
"0.6940005",
"0.6916549",
"0.6898442",
"0.6854456",
"0.6844368",
"0.6828783",
"0.6803705",
"0.6785733",
"0.6712685",
"0.66945976",
"0.66574585",
"0.6649033",
"0.6648555",
"0.66472316",
"0.66161674",
"0.6594954",
"0.6592606",
"0.65827703",
"0.6581758",
"0.65748304",
"0.6572821",
"0.6570112",
"0.65400374",
"0.6536397",
"0.6527964",
"0.65064126",
"0.64982253",
"0.64982253",
"0.64982253",
"0.64982253",
"0.64966714",
"0.6495927",
"0.6493547",
"0.64805686",
"0.6474677",
"0.6472011",
"0.644258",
"0.644258",
"0.64424473",
"0.64338833",
"0.6418237",
"0.6397276",
"0.6396077",
"0.63940376",
"0.6379925",
"0.63789344",
"0.6374923",
"0.6369304",
"0.6358963",
"0.6352066",
"0.634884",
"0.634727",
"0.634727",
"0.6345041",
"0.6343396",
"0.6336195",
"0.63348323",
"0.6328871",
"0.6319886",
"0.6319886",
"0.6317262",
"0.63160956",
"0.63111925",
"0.6308414",
"0.6307684",
"0.63015705",
"0.62981206",
"0.6297963",
"0.629676",
"0.6296742",
"0.62912196",
"0.6288728",
"0.6288117",
"0.6277622",
"0.62687534",
"0.6267576",
"0.6267456",
"0.6264035",
"0.6258918",
"0.6252244",
"0.6251256",
"0.6249294",
"0.6243796",
"0.6238419",
"0.6235213",
"0.62337357",
"0.62305963"
]
| 0.0 | -1 |
Starts the transition to enter the DetailsActivity page | void enterReveal() {
// get the center for the clipping circles
int fabCall_x = binding.fabCall.getMeasuredWidth() / 2;
int fabCall_y = binding.fabCall.getMeasuredHeight() / 2;
int fabLike_x = binding.fabLike.getMeasuredWidth() / 2;
int fabLike_y = binding.fabLike.getMeasuredHeight() / 2;
// get the final radius for the clipping circle
int fabCall_finalRadius = Math.max(binding.fabCall.getWidth(), binding.fabCall.getHeight()) / 2;
int fabLike_finalRadius = Math.max(binding.fabLike.getWidth(), binding.fabLike.getHeight()) / 2;
// create the animator for this view (the start radius is zero)
Animator fabCall_anim = ViewAnimationUtils.createCircularReveal(binding.fabCall, fabCall_x, fabCall_y, 0, fabCall_finalRadius);
Animator fabLike_anim = ViewAnimationUtils.createCircularReveal(binding.fabLike, fabLike_x, fabLike_y, 0, fabLike_finalRadius);
// Add Listener for button animation
fabCall_anim.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
getWindow().getEnterTransition().removeListener(transitionListener);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
fabLike_anim.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
getWindow().getEnterTransition().removeListener(transitionListener);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
// make the view visible and start the animation
binding.fabCall.setVisibility(View.VISIBLE);
binding.fabLike.setVisibility(View.VISIBLE);
fabCall_anim.start();
fabLike_anim.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }",
"@Override\n public void startDetailActivity(String dateAndTime, String message, int colorResource, View viewRoot) {\n Intent i = new Intent(this, DetailActivity.class);\n i.putExtra(EXTRA_DATE_AND_TIME, dateAndTime);\n i.putExtra(EXTRA_MESSAGE, message);\n i.putExtra(EXTRA_DRAWABLE, colorResource);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n getWindow().setEnterTransition(new Fade(Fade.IN));\n getWindow().setEnterTransition(new Fade(Fade.OUT));\n\n ActivityOptions options = ActivityOptions\n .makeSceneTransitionAnimation(this,\n new Pair<View, String>(viewRoot.findViewById(R.id.imv_list_item_circle),\n getString(R.string.transition_drawable)),\n new Pair<View, String>(viewRoot.findViewById(R.id.lbl_message),\n getString(R.string.transition_message)),\n new Pair<View, String>(viewRoot.findViewById(R.id.lbl_date_and_time),\n getString(R.string.transition_time_and_date)));\n\n startActivity(i, options.toBundle());\n\n\n } else {\n startActivity(i);\n }\n }",
"@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }",
"public void onResume() {\n super.onResume();\n MiStatInterface.recordPageStart((Activity) this, \"SetMyOtherInfoActivity\");\n }",
"private void showCreateWalkActivity() {\n Intent intent = new Intent(this, ActivityNewWalk.class);\n this.startActivityForResult(intent, CREATE_WALK_REQUEST);\n }",
"@Test\n public void openTaskDetails_startsActivity() {\n String taskId = \"id\";\n\n // When opening the task details\n mTasksNavigator.openTaskDetails(taskId);\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResultWithExtra(eq(TaskDetailActivity.class),\n eq(-1), eq(TaskDetailActivity.EXTRA_TASK_ID), eq(taskId));\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"public void startViewTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this,TripHistoryActivity.class);\r\n startActivity(intent);\r\n\t}",
"public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}",
"public void startTripViewer() {\n\n\t\t// TODO - fill in here\n\t\tviewTripButton.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\tIntent viewTripIntent = new Intent(MainActivity.this,\n\t\t\t\t\t\tTripHistoryActivity.class);\n\t\t\t\tstartActivity(viewTripIntent);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onSequenceFinish() {\n // Yay\n mShowingTour = false;\n mPresenter.showCaseFinished();\n }",
"@When(\"Hotels Details page has finished loading\")\n public void detailspage_i_am_on_details_page() {\n detailsPage = new HotelsDetailsPage(driver);\n detailsPage.check_page_title();\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"@Override\n public void startingScreen(Home.ToHome presenter) {\n presenter.onScreenStarted();\n }",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }",
"private void startBoardingAct() {\n Intent intent = new Intent(this, EcomLoginActivity.class);\n startActivity(intent);\n AnimUtil.activityTransitionAnimation(this);\n }",
"@Override\n public void onClick(View v) {\n Step currentStep = mRecipe.getmSteps().get(currentPosition);\n if (mTwoPane) {\n Bundle arguments = new Bundle();\n arguments.putSerializable(ARG_RECIPE, mRecipe);\n arguments.putSerializable(ARG_STEP, currentStep);\n StepDetailFragment fragment = new StepDetailFragment();\n fragment.setArguments(arguments);\n mParentActivity.getSupportFragmentManager().beginTransaction().replace(R.id.step_detail_container, fragment).commit();\n\n } else {\n Intent intent = new Intent(mParentActivity, StepDetailActivity.class);\n intent.putExtra(ARG_RECIPE, mRecipe);\n intent.putExtra(ARG_STEP, currentStep);\n\n mParentActivity.startActivity(intent);\n }\n }",
"protected void gotoReadyPage(){\n\n Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n //\n finish();\n }",
"@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }",
"@Override\n public void goToNextScreen(Home.HomeTo presenter) {\n toMapsState = new MapState();\n toMapsState.shop = presenter.getShop();\n\n Context view = presenter.getManagedContext();\n if (view != null) {\n Log.d(TAG, \"calling startingMapsScreen()\");\n view.startActivity(new Intent(view, MapsView.class));\n Log.d(TAG, \"calling destroyView()\");\n presenter.destroyView();\n }\n }",
"private void startViewer() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View view) {\n\n if (!JourneyService.journeyRunning) {\n Intent i = new Intent(MainActivity.this, LoadingScreen.class);\n startActivityForResult(i, SELECT_SOURCE_DESTINATION_REQUEST_CODE);\n } else {\n createStopJourneyDialog();\n //stopJourneyDialog.show(getSupportFragmentManager(), \"dialog_for_force_stopping_current_journey\");\n }\n\n }",
"private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }",
"private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}",
"@Override\n public void onClick(View view) {\n mPb.setVisibility(ProgressBar.VISIBLE);\n // set Start to on in Firebase\n DatabaseReference startRef = FirebaseDatabase.getInstance().getReference(\"Actuals/start\");\n startRef.setValue(\"off\");\n startRef.setValue(\"on\");\n // go to next activity\n Intent goInstruct = new Intent(PreInstructionsActivity.this,InstructionsActivity.class);\n startActivity(goInstruct);\n overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\n }",
"private void SendUserToInfoPage(){\n Intent intent = new Intent(sign_up_activity.this,user_info_activity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);\n overridePendingTransition(0,0);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}",
"private void call_register_details_activity_page()\n {\n\n\n Intent intent = new Intent(getApplicationContext(), b_register_details_activity.class);\n\n startActivity(intent);\n finish();\n\n }",
"private void goToDetailScreen(int position) {\n// ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n// new Pair(mAdapter.getHolderItem(position).getThumbnail(), DetailActivity.IMAGE_TRANSITION_NAME));\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n mAdapter.getHolderItem(position).getThumbnail(),\n DetailActivity.IMAGE_TRANSITION_NAME);\n\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(ITEM_CURRENT_POSITION, position);\n intent.putParcelableArrayListExtra(IMAGES_LIST, mAdapter.getData());\n\n startActivity(intent, options.toBundle());\n }",
"@FXML private void transitionView(ActionEvent event) {\n\t\t// id button caller\n\t\tString btn = ((Button) event.getSource()).getId();\n\t\tNavigationController.PREVIOUS = NavigationController.STARTMENU;\n\t\t// send load request\n\t\tif (btn.equals(\"newgame\"))\n\t\t\tNavigationController.loadView(NavigationController.GAMECREATION);\n\t\tif (btn.equals(\"loadgame\"))\n\t\t\tNavigationController.loadView(NavigationController.SAVELOAD);\n\n\t\t// if this spot is reached: do nothing\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,studentLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"public void gotoDetailSalesOrder() {\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,teacherLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"public void transitionToNewParticipantPage(){\n removeAll();\n newParticipantPanel = new NewParticipantPanel(contr);\n add(newParticipantPanel, \"span 1\");\n }",
"private void startLesson() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\tint screenId = onLargeScreen ? R.id.detailFragmentContainer\n\t\t\t\t: R.id.fragmentContainer;\n\t\tFragment lessonFragment = (Fragment) fm.findFragmentById(screenId);\n\t\tif (lessonFragment != null) {\n\t\t\t// ft.remove(lessonFragment) ;\n\t\t\tfm.popBackStackImmediate();\n\n\t\t}\n\t\tlessonFragment = getLessonFragment();\n\t\tft.add(screenId, lessonFragment,\n\t\t\t\tonLargeScreen ? CHILD_CONTAINER : MASTER_CONTAINER)\n\t\t\t\t.addToBackStack(null).commit();\n\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tIntent Intent=new Intent(MainPage.this,TimeTable1.class);\r\n\t\t\t\tstartActivity(Intent);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}",
"private void loadDashboard() {\n Intent navigationIntent = new Intent(this, DashboardActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,staffLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}",
"public void switchToInstructionScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"insn\");\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,SafeMove.class));\n }",
"@Override\n public void onMovieClicked(Movie movie, MovieHolder holder) {\n if (!mIsOpeningDetails) {\n mIsOpeningDetails = true;\n MovieDetailActivity.start(getActivity(), movie, holder.getPosterView());\n }\n }",
"private void startViewData() {\n startActivity(new Intent(this, ViewDataActivity.class));\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(TAG);\n\t}",
"@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }",
"@Override\n public void onResume() {\n super.onResume();\n updateUserAcount();\n showMainBottom();\n MobclickAgent.onPageStart(\"MyMainFragment\");\n }",
"private void checkToMyDetail() {\n toolbar.setTitle(R.string.my_detail);\n MyDetailFragment myDetailFragment = new MyDetailFragment();\n displaySelectedFragment(myDetailFragment);\n }",
"private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,parentLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"@Override\n public void onResume() {\n super.onResume();\n MobclickAgent.onResume(this);\n MobclickAgent.onEvent(FourPartAct.this, UrlConfig.point + 8 + \"\");\n }",
"@Override\n public void onClick(View view) {\n Intent startIntent = new Intent(MainActivity.this, FirstActivity.class);\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this);\n ActivityCompat.startActivity(MainActivity.this, startIntent, options.toBundle());\n }",
"public void executeAppTransition() {\n if (this.mAppTransition.isTransitionSet()) {\n if (WindowManagerDebugConfig.DEBUG_APP_TRANSITIONS) {\n Slog.w(TAG, \"Execute app transition: \" + this.mAppTransition + \", displayId: \" + this.mDisplayId + \" Callers=\" + Debug.getCallers(5));\n }\n this.mAppTransition.setReady();\n this.mWmService.mWindowPlacerLocked.requestTraversal();\n }\n }",
"public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(CatalogActivity.this, CatalogActivity.class);\n finish();\n overridePendingTransition(0, 0);\n startActivity(i);\n overridePendingTransition(0, 0);\n\n }",
"@Override\n public void onClick(View v)\n {\n // Loads the AddEntryActivity\n Intent i = new Intent(getActivity(), AddEntryActivity.class);\n i.putExtra(\"user\",user);\n startActivity(i);\n Objects.requireNonNull(getActivity()).overridePendingTransition(R.anim.slide_in_left,R.anim.slide_out_right);\n getActivity().finish();\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tif (onPause) {\r\n\t\t\tstack.setCurrentPhase(TracePhase.NEWS);\r\n\t\t\tBundle args = new Bundle();\r\n\t\t\targs.putParcelableArrayList(NewsBean.KEY_NEWS, news);\r\n\t\t\tCommand.forwardTab((BaseFragment) getFragmentManager()\r\n\t\t\t\t\t.findFragmentById(R.id.TabNewsLayoutHolderId), getNews(),\r\n\t\t\t\t\targs);\r\n\t\t}\r\n\t}",
"private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }",
"public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }",
"@Override\n\t\tprotected void doTransition() {\n\t\t\t\n\t\t}",
"@Override\n public void onClick(View v) {\n startNavigation();\n }",
"private void forwardToCreateDemands() {\n Timer additionalAction = new Timer() {\n @Override\n public void run() {\n eventBus.goToCreateDemandModule();\n }\n };\n if (displayThankYouPopup) {\n eventBus.showThankYouPopup(\n Storage.MSGS.thankYouCodeActivatedToDemandCreation(), additionalAction);\n } else {\n eventBus.goToCreateDemandModule();\n }\n }",
"private void tournaments() {\n\tstartActivity (new Intent(getApplicationContext(), Tournaments.class));\n\n\t}",
"public StartPage() {\n initComponents();\n \n }",
"protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}",
"@Override\n public void onClick(View view) {\n MainActivity.loadStart = true;\n Intent intent = new Intent(WelcomeActivity.this,\n MainActivity.class);\n startActivity(intent);\n finish();\n }",
"@Subscribe\n\tpublic void onShowActivityDetails(Events.LXShowDetails event) {\n\t\tOmnitureTracking.trackAppLXProductInformation(event.activityDetails, lxState.searchParams);\n\t\tactivityDetails = event.activityDetails;\n\n\t\tbuildGallery(activityDetails);\n\t\tbuildSections(activityDetails);\n\t\tbuildOfferDatesSelector(activityDetails.offersDetail, lxState.searchParams.startDate);\n\t}",
"@Override\n public void viewDetails(Object object) {\n Member member = (Member) object;\n\n Intent detailsIntent = new Intent(getContext(), MemberActivity.class);\n detailsIntent.putExtra(\"MEMBER\", member);\n startActivity(detailsIntent);\n }",
"@Override\n public void onItemSelected(Uri uri) {\n if(mTwoPaneLayout){\n MovieDetailsFragment detailsFragment = new MovieDetailsFragment();\n\n Bundle arguments = new Bundle();\n arguments.putParcelable(MovieDetailsFragment.DETAIL_URI, uri);\n detailsFragment.setArguments(arguments);\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.movie_detail_container, detailsFragment, DETAIL_FRAGMENT_TAG)\n .commit();\n } else {\n Intent intent = new Intent(MainActivity.this, MovieDetailsActivity.class);\n intent.setData(uri);\n startActivity(intent);\n }\n }",
"public void toExamSe(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", false);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(false);\n startActivity(intent);\n }",
"private void screenStartUpState() {\n isMainShown = true;\n setTitle(\"\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.rLayoutMain, fragmentList.get(0)).addToBackStack(null).commit();\n listView.setItemChecked(0, true);\n drawerLayout.closeDrawer(listView);\n }",
"@Override\n public void showPowerDetailsUI(String itemId, String itemName,\n String powerListId, View transitioningView, String powerListName) {\n if (transitioningView != null){\n Intent i = new Intent(PowerListActivity.this, PowerDetailsActivity.class);\n String transitionName = getString(R.string.transition_powerDetails_name);\n ActivityOptionsCompat options =\n ActivityOptionsCompat.makeSceneTransitionAnimation(\n PowerListActivity.this,\n transitioningView,\n transitionName);\n Bundle bundle = options.toBundle();\n\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_ID, itemId);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_ID, powerListId);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_NAME, itemName);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_NAME, powerListName);\n ActivityCompat.startActivity(PowerListActivity.this, i, bundle);\n }\n else\n this.openPowerDetailsActivity(itemId, powerListId, powerListName);\n }",
"public void goToEntitySelectActivity() {\n Intent intent = new Intent(LoginActivity.this, EntitySelectActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.UserServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}",
"private void startHome() {\n if (context instanceof MainActivity) {\n CityListFragment fragment = CityListFragment\n .getInstance(fatherParent);\n ((MainActivity) context).switchContent(fragment, true);\n }\n }",
"private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }",
"@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }",
"void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }",
"@Override\n public void onClick(View view, final int position) {\n if (position == 0) {\n return;\n } else {\n int mypos = recyclerView.getChildViewHolder(view).getAdapterPosition();\n Intent detailed = new Intent(getActivity(), EventDeatilsPage.class);\n detailed.putExtra(\"eventInfo\", childList.get(mypos - 1));\n startActivity(detailed);\n getActivity().overridePendingTransition(R.anim.left_to_right, R.anim.right_to_left);\n }\n }",
"@Override\r\n public void showMovieDetails(MovieEntry movie) {\n Fragment fragment = new DetailsFragment();\r\n Bundle args = new Bundle();\r\n args.putParcelable(DetailsFragment.MOVIE_ARG_POSITION, movie);\r\n fragment.setArguments(args);\r\n\r\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\r\n if(!twoPane) {\r\n transaction.replace(R.id.master_fragment, fragment, DetailsFragment.FRAGMENT_TAG);\r\n if(screenSize == Configuration.SCREENLAYOUT_SIZE_NORMAL) {\r\n transaction.addToBackStack(null);\r\n }\r\n } else {\r\n transaction.replace(R.id.details_fragment, fragment, DetailsFragment.FRAGMENT_TAG);\r\n }\r\n\r\n transaction.commit();\r\n }",
"public void showItemDetails() {\n if (mShowingDetails == STATE_ITEM_DETAIL_NOT_SHOW) {\n mItemDetailsLinearLayout = new ItemDetailLinearLayout(mContext);\n }\n else {\n return;\n }\n\n // Step 1\n LayoutParams layoutParams = new LayoutParams(mPopItemDetailWidth, mPopItemDetailHeight);\n layoutParams.addRule(CENTER_HORIZONTAL);\n layoutParams.setMargins(0, mPopViewTopMargin - (mPopItemDetailHeight - mPopItemHeight) / 2, 0, 0);\n mItemDetailsLinearLayout.setLayoutParams(layoutParams);\n mItemDetailsLinearLayout.setBackgroundColor(ContextCompat.getColor(mContext, DEFAULT_DETAILS_COLOR_RES_ID));\n\n PropertyValuesHolder stretchVH = PropertyValuesHolder.ofFloat(\"scaleY\", ((float) mPopItemZoomInHeight) / mPopItemDetailHeight, 1f);\n PropertyValuesHolder elevateVH;\n Animator animator;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n elevateVH = PropertyValuesHolder.ofInt(\"Elevation\", 0, 40);\n animator = ObjectAnimator.ofPropertyValuesHolder(mItemDetailsLinearLayout, stretchVH, elevateVH);\n } else {\n animator = ObjectAnimator.ofPropertyValuesHolder(mItemDetailsLinearLayout, stretchVH);\n }\n\n animator.setDuration(300);\n LayoutTransition layoutTransition = new LayoutTransition();\n layoutTransition.setAnimator(LayoutTransition.APPEARING, animator);\n layoutTransition.addTransitionListener(new LayoutTransition.TransitionListener() {\n @Override\n public void startTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) {\n mMainThreadBusyState = MAIN_THREAD_STATE_BUSY;\n }\n\n @Override\n public void endTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) {\n mMainThreadBusyState = MAIN_THREAD_STATE_IDLE;\n }\n });\n setLayoutTransition(layoutTransition);\n\n // step 2\n addView(mItemDetailsLinearLayout);\n View detailContentView = mItemDetailsLinearLayout.getChildAt(0);\n if (detailContentView != null) {\n ValueAnimator detailAppearAnim = ObjectAnimator.ofFloat(detailContentView, \"alpha\", 0f, 1f);\n detailAppearAnim.setStartDelay(300);\n detailAppearAnim.setDuration(300).start();\n mShowingDetails = STATE_ITEM_DETAIL_SHOW;\n }\n }",
"@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent2 = new Intent(myActivity, ProductDetailInfoActivity.class);\n\t\t\t\tintent2.putExtra(\"id\", product.getId());\n\t\t\t\tintent2.putExtra(\"pro_name\", product.getSubject());\n\t\t\t\t// intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tmyActivity.startActivity(intent2);\n\t\t\t\tmyActivity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t\t\t}",
"public void onClick(DialogInterface dialog,int id) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(context, StepActivity.class);\n startActivity(intent);\n }\n }, 50);\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(mPageName);\n\t\tMobclickAgent.onResume(mContext);\n\t}",
"public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }",
"void goMainScreen(){\n\t\tcheckSavePwd();\n\t\tActionEvent e = new ActionEvent();\n\t\te.sender = this;\n\t\te.action = ActionEventConstant.ACTION_SWITH_TO_CATEGORY_SCREEN;\n\t\tUserController.getInstance().handleSwitchActivity(e);\n\t}",
"@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openMachineDetails(position);\n }",
"@Override\n public void onExpandingClick(View v) {\n View view = v.findViewById(R.id.image);\n Travel travel = generateTravelList().get(viewPager.getCurrentItem());\n startInfoActivity(view,travel);\n }",
"public void toExamFi(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", true);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(true);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n intent.putExtra(\"locationMailBox\", markerOptions);\n intent.putExtra(\"location\", getIntent().getParcelableArrayListExtra(\"location\"));\n\n //Save timer values\n dt.beforeChange(editorTimers, \"TimeLeft\", \"TimerRunning\", \"EndTime\");\n\n //New activity without transition\n startActivity(intent);\n overridePendingTransition(0, 0);\n }",
"void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }",
"@Override\n\tpublic void onMoreLisenter() {\n\t\tstartActivity(new Intent(this, AccidentHandlingActivity.class));\n\t}",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View view) {\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n goToNextActivity();\n }\n }",
"private void startBookMain() {\n Intent intent = new Intent();\r\n intent.setClass(this, MainActivity.class);\r\n this.startActivity(intent);\r\n this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\r\n this.finish();\r\n }",
"public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }",
"@Override\n public void userPageViewConcerts() {\n Intent intent = new Intent(userPageModel.this, viewConcertsPageModel.class);\n startActivity(intent);\n }"
]
| [
"0.66828096",
"0.6441971",
"0.63253456",
"0.62475765",
"0.61625886",
"0.61585885",
"0.6153448",
"0.6146749",
"0.6145274",
"0.608381",
"0.60512835",
"0.6039656",
"0.6030923",
"0.60209626",
"0.60157436",
"0.59572774",
"0.59542024",
"0.59516156",
"0.59430236",
"0.59291345",
"0.59055805",
"0.5862568",
"0.58561057",
"0.58378404",
"0.5828848",
"0.5822759",
"0.58110636",
"0.58090705",
"0.58067334",
"0.57974243",
"0.5793582",
"0.5783161",
"0.57799053",
"0.5775809",
"0.57697517",
"0.57605886",
"0.5745659",
"0.5741175",
"0.57333004",
"0.5731528",
"0.5729366",
"0.57252467",
"0.5712417",
"0.56959945",
"0.5687665",
"0.56799424",
"0.567124",
"0.5655779",
"0.56507367",
"0.56486857",
"0.56475943",
"0.5647266",
"0.5641706",
"0.5640815",
"0.56363523",
"0.5621325",
"0.5616435",
"0.5613002",
"0.56101334",
"0.55982584",
"0.558158",
"0.5580464",
"0.55797476",
"0.5564021",
"0.556213",
"0.5556304",
"0.5553264",
"0.55407184",
"0.5540429",
"0.55381304",
"0.5533564",
"0.55317456",
"0.5530277",
"0.5517179",
"0.5515918",
"0.5512682",
"0.55065954",
"0.55011016",
"0.54986715",
"0.5497041",
"0.54959",
"0.5491459",
"0.54896337",
"0.54892874",
"0.54884386",
"0.5487505",
"0.5485351",
"0.54812545",
"0.547548",
"0.5472125",
"0.54682946",
"0.5467728",
"0.546532",
"0.54653084",
"0.546477",
"0.54617894",
"0.5461211",
"0.5458619",
"0.5452049",
"0.5449666",
"0.5444986"
]
| 0.0 | -1 |
Starts the transition to exis the DetailsActivity | void exitReveal() {
// get the center for the clipping circle
int fabCall_x = binding.fabCall.getMeasuredWidth() / 2;
int fabCall_y = binding.fabCall.getMeasuredHeight() / 2;
int fabLike_x = binding.fabLike.getMeasuredWidth() / 2;
int fabLike_y = binding.fabLike.getMeasuredHeight() / 2;
// get the initial radius for the clipping circle
int fabCall_initialRadius = binding.fabCall.getWidth() / 2;
int fabLike_initialRadius = binding.fabLike.getWidth() / 2;
// create the animation (the final radius is zero)
Animator fabCall_anim = ViewAnimationUtils.createCircularReveal(binding.fabCall, fabCall_x, fabCall_y, fabCall_initialRadius, 0);
Animator fabLike_anim = ViewAnimationUtils.createCircularReveal(binding.fabLike, fabLike_x, fabLike_y, fabLike_initialRadius, 0);
// make the view invisible when the animation is done
fabCall_anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
binding.fabCall.setVisibility(View.INVISIBLE);
}
});
fabLike_anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
binding.fabLike.setVisibility(View.INVISIBLE);
}
});
// Add listener to finish activity when animation finished
fabCall_anim.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
finishAfterTransition();
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
fabLike_anim.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
finishAfterTransition();
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
// start the animation
fabCall_anim.start();
fabLike_anim.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void openTaskDetails_startsActivity() {\n String taskId = \"id\";\n\n // When opening the task details\n mTasksNavigator.openTaskDetails(taskId);\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResultWithExtra(eq(TaskDetailActivity.class),\n eq(-1), eq(TaskDetailActivity.EXTRA_TASK_ID), eq(taskId));\n }",
"@Override\n public void startDetailActivity(String dateAndTime, String message, int colorResource, View viewRoot) {\n Intent i = new Intent(this, DetailActivity.class);\n i.putExtra(EXTRA_DATE_AND_TIME, dateAndTime);\n i.putExtra(EXTRA_MESSAGE, message);\n i.putExtra(EXTRA_DRAWABLE, colorResource);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n getWindow().setEnterTransition(new Fade(Fade.IN));\n getWindow().setEnterTransition(new Fade(Fade.OUT));\n\n ActivityOptions options = ActivityOptions\n .makeSceneTransitionAnimation(this,\n new Pair<View, String>(viewRoot.findViewById(R.id.imv_list_item_circle),\n getString(R.string.transition_drawable)),\n new Pair<View, String>(viewRoot.findViewById(R.id.lbl_message),\n getString(R.string.transition_message)),\n new Pair<View, String>(viewRoot.findViewById(R.id.lbl_date_and_time),\n getString(R.string.transition_time_and_date)));\n\n startActivity(i, options.toBundle());\n\n\n } else {\n startActivity(i);\n }\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"public void startViewTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this,TripHistoryActivity.class);\r\n startActivity(intent);\r\n\t}",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }",
"private void goToDetailScreen(int position) {\n// ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n// new Pair(mAdapter.getHolderItem(position).getThumbnail(), DetailActivity.IMAGE_TRANSITION_NAME));\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n mAdapter.getHolderItem(position).getThumbnail(),\n DetailActivity.IMAGE_TRANSITION_NAME);\n\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(ITEM_CURRENT_POSITION, position);\n intent.putParcelableArrayListExtra(IMAGES_LIST, mAdapter.getData());\n\n startActivity(intent, options.toBundle());\n }",
"public void startTripViewer() {\n\n\t\t// TODO - fill in here\n\t\tviewTripButton.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\tIntent viewTripIntent = new Intent(MainActivity.this,\n\t\t\t\t\t\tTripHistoryActivity.class);\n\t\t\t\tstartActivity(viewTripIntent);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onMovieClicked(Movie movie, MovieHolder holder) {\n if (!mIsOpeningDetails) {\n mIsOpeningDetails = true;\n MovieDetailActivity.start(getActivity(), movie, holder.getPosterView());\n }\n }",
"public void onResume() {\n super.onResume();\n MiStatInterface.recordPageStart((Activity) this, \"SetMyOtherInfoActivity\");\n }",
"@Override\n public void onClick(View v) {\n Step currentStep = mRecipe.getmSteps().get(currentPosition);\n if (mTwoPane) {\n Bundle arguments = new Bundle();\n arguments.putSerializable(ARG_RECIPE, mRecipe);\n arguments.putSerializable(ARG_STEP, currentStep);\n StepDetailFragment fragment = new StepDetailFragment();\n fragment.setArguments(arguments);\n mParentActivity.getSupportFragmentManager().beginTransaction().replace(R.id.step_detail_container, fragment).commit();\n\n } else {\n Intent intent = new Intent(mParentActivity, StepDetailActivity.class);\n intent.putExtra(ARG_RECIPE, mRecipe);\n intent.putExtra(ARG_STEP, currentStep);\n\n mParentActivity.startActivity(intent);\n }\n }",
"private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }",
"@Override\n public void onSequenceFinish() {\n // Yay\n mShowingTour = false;\n mPresenter.showCaseFinished();\n }",
"private void showCreateWalkActivity() {\n Intent intent = new Intent(this, ActivityNewWalk.class);\n this.startActivityForResult(intent, CREATE_WALK_REQUEST);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent2 = new Intent(myActivity, ProductDetailInfoActivity.class);\n\t\t\t\tintent2.putExtra(\"id\", product.getId());\n\t\t\t\tintent2.putExtra(\"pro_name\", product.getSubject());\n\t\t\t\t// intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tmyActivity.startActivity(intent2);\n\t\t\t\tmyActivity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t\t\t}",
"@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }",
"@Override\n public void onClick(String[] movieInformation) {\n Context context = this;\n Class destinationClass = DetailActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n intentToStartDetailActivity.putExtra (\"movieInfo\", movieInformation);\n startActivity(intentToStartDetailActivity);\n }",
"private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}",
"@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }",
"@Override\n public void showPowerDetailsUI(String itemId, String itemName,\n String powerListId, View transitioningView, String powerListName) {\n if (transitioningView != null){\n Intent i = new Intent(PowerListActivity.this, PowerDetailsActivity.class);\n String transitionName = getString(R.string.transition_powerDetails_name);\n ActivityOptionsCompat options =\n ActivityOptionsCompat.makeSceneTransitionAnimation(\n PowerListActivity.this,\n transitioningView,\n transitionName);\n Bundle bundle = options.toBundle();\n\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_ID, itemId);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_ID, powerListId);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_NAME, itemName);\n i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_NAME, powerListName);\n ActivityCompat.startActivity(PowerListActivity.this, i, bundle);\n }\n else\n this.openPowerDetailsActivity(itemId, powerListId, powerListName);\n }",
"@Override\n public void onClick(View v) {\n intent.putExtra(\"locationMailBox\", markerOptions);\n intent.putExtra(\"location\", getIntent().getParcelableArrayListExtra(\"location\"));\n\n //Save timer values\n dt.beforeChange(editorTimers, \"TimeLeft\", \"TimerRunning\", \"EndTime\");\n\n //New activity without transition\n startActivity(intent);\n overridePendingTransition(0, 0);\n }",
"public void showItemDetails() {\n if (mShowingDetails == STATE_ITEM_DETAIL_NOT_SHOW) {\n mItemDetailsLinearLayout = new ItemDetailLinearLayout(mContext);\n }\n else {\n return;\n }\n\n // Step 1\n LayoutParams layoutParams = new LayoutParams(mPopItemDetailWidth, mPopItemDetailHeight);\n layoutParams.addRule(CENTER_HORIZONTAL);\n layoutParams.setMargins(0, mPopViewTopMargin - (mPopItemDetailHeight - mPopItemHeight) / 2, 0, 0);\n mItemDetailsLinearLayout.setLayoutParams(layoutParams);\n mItemDetailsLinearLayout.setBackgroundColor(ContextCompat.getColor(mContext, DEFAULT_DETAILS_COLOR_RES_ID));\n\n PropertyValuesHolder stretchVH = PropertyValuesHolder.ofFloat(\"scaleY\", ((float) mPopItemZoomInHeight) / mPopItemDetailHeight, 1f);\n PropertyValuesHolder elevateVH;\n Animator animator;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n elevateVH = PropertyValuesHolder.ofInt(\"Elevation\", 0, 40);\n animator = ObjectAnimator.ofPropertyValuesHolder(mItemDetailsLinearLayout, stretchVH, elevateVH);\n } else {\n animator = ObjectAnimator.ofPropertyValuesHolder(mItemDetailsLinearLayout, stretchVH);\n }\n\n animator.setDuration(300);\n LayoutTransition layoutTransition = new LayoutTransition();\n layoutTransition.setAnimator(LayoutTransition.APPEARING, animator);\n layoutTransition.addTransitionListener(new LayoutTransition.TransitionListener() {\n @Override\n public void startTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) {\n mMainThreadBusyState = MAIN_THREAD_STATE_BUSY;\n }\n\n @Override\n public void endTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) {\n mMainThreadBusyState = MAIN_THREAD_STATE_IDLE;\n }\n });\n setLayoutTransition(layoutTransition);\n\n // step 2\n addView(mItemDetailsLinearLayout);\n View detailContentView = mItemDetailsLinearLayout.getChildAt(0);\n if (detailContentView != null) {\n ValueAnimator detailAppearAnim = ObjectAnimator.ofFloat(detailContentView, \"alpha\", 0f, 1f);\n detailAppearAnim.setStartDelay(300);\n detailAppearAnim.setDuration(300).start();\n mShowingDetails = STATE_ITEM_DETAIL_SHOW;\n }\n }",
"private void startBoardingAct() {\n Intent intent = new Intent(this, EcomLoginActivity.class);\n startActivity(intent);\n AnimUtil.activityTransitionAnimation(this);\n }",
"@Override\n public void onClick(View view) {\n Intent startIntent = new Intent(MainActivity.this, FirstActivity.class);\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this);\n ActivityCompat.startActivity(MainActivity.this, startIntent, options.toBundle());\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(CatalogActivity.this, CatalogActivity.class);\n finish();\n overridePendingTransition(0, 0);\n startActivity(i);\n overridePendingTransition(0, 0);\n\n }",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}",
"private void startViewer() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View view) {\n mPb.setVisibility(ProgressBar.VISIBLE);\n // set Start to on in Firebase\n DatabaseReference startRef = FirebaseDatabase.getInstance().getReference(\"Actuals/start\");\n startRef.setValue(\"off\");\n startRef.setValue(\"on\");\n // go to next activity\n Intent goInstruct = new Intent(PreInstructionsActivity.this,InstructionsActivity.class);\n startActivity(goInstruct);\n overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long id) {\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n\n if (!JourneyService.journeyRunning) {\n Intent i = new Intent(MainActivity.this, LoadingScreen.class);\n startActivityForResult(i, SELECT_SOURCE_DESTINATION_REQUEST_CODE);\n } else {\n createStopJourneyDialog();\n //stopJourneyDialog.show(getSupportFragmentManager(), \"dialog_for_force_stopping_current_journey\");\n }\n\n }",
"@Override\n public void onDetailsClick(int position) {\n Intent intent = new Intent(getActivity(), MovieViewActivity.class);\n intent.putExtra(\"movieName\", memoirs.get(position).getMovieName());\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"from\", \"memoir\");\n startActivity(intent);\n }",
"public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }",
"private void startViewData() {\n startActivity(new Intent(this, ViewDataActivity.class));\n }",
"private void tournaments() {\n\tstartActivity (new Intent(getApplicationContext(), Tournaments.class));\n\n\t}",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActInfo.class);\n\t\t\t\t \n\t\t\t\t Bundle bundle=new Bundle();\n\t\t\t\t bundle.putInt(\"id\", 0);\n\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public void viewDetails(Object object) {\n Member member = (Member) object;\n\n Intent detailsIntent = new Intent(getContext(), MemberActivity.class);\n detailsIntent.putExtra(\"MEMBER\", member);\n startActivity(detailsIntent);\n }",
"public void startCreateTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this, CreateTripActivity.class);\r\n startActivityForResult(intent, CREATE_CODE);\r\n\r\n\t}",
"@Override\n public void onClick(View view, final int position) {\n if (position == 0) {\n return;\n } else {\n int mypos = recyclerView.getChildViewHolder(view).getAdapterPosition();\n Intent detailed = new Intent(getActivity(), EventDeatilsPage.class);\n detailed.putExtra(\"eventInfo\", childList.get(mypos - 1));\n startActivity(detailed);\n getActivity().overridePendingTransition(R.anim.left_to_right, R.anim.right_to_left);\n }\n }",
"@Subscribe\n\tpublic void onShowActivityDetails(Events.LXShowDetails event) {\n\t\tOmnitureTracking.trackAppLXProductInformation(event.activityDetails, lxState.searchParams);\n\t\tactivityDetails = event.activityDetails;\n\n\t\tbuildGallery(activityDetails);\n\t\tbuildSections(activityDetails);\n\t\tbuildOfferDatesSelector(activityDetails.offersDetail, lxState.searchParams.startDate);\n\t}",
"@Override\n public void goToNextScreen(Home.HomeTo presenter) {\n toMapsState = new MapState();\n toMapsState.shop = presenter.getShop();\n\n Context view = presenter.getManagedContext();\n if (view != null) {\n Log.d(TAG, \"calling startingMapsScreen()\");\n view.startActivity(new Intent(view, MapsView.class));\n Log.d(TAG, \"calling destroyView()\");\n presenter.destroyView();\n }\n }",
"public void gotoProduct(Product product){\n Intent detail = new Intent(getContext(), ProductDetail.class);\n detail.putExtra(\"PRODUCT\",product);\n // create the animator for this view (the start radius is zero)\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n\n //itemView.getContext().startActivity(detail);\n }else{\n\n }\n //ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(),recycler,\"heading\");\n //getContext().startActivity(detail,options.toBundle());\n getContext().startActivity(detail);\n\n }",
"@Override\n public void onClick(View view) {\n\n Pair<View, String> pair = Pair.create((View) holder.thumbnail, \"name_transition\");\n\n ActivityOptionsCompat options;\n Activity act = (AppCompatActivity) mContext;\n options = ActivityOptionsCompat.makeSceneTransitionAnimation(act, pair);\n Intent intent = new Intent(mContext, AlbumDetailActivity.class);\n intent.putExtra(\"IMG\",album.getCont());\n act.startActivityForResult(intent, getItemCount(), options.toBundle());\n\n\n // ((AppCompatActivity) mContext).startActivityForResult(intent, requestCode, options.toBundle());\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(Constant.INTENT_WEB_URL, webHotUrl);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent detailIntent = Post.starter(mContext, mCurrentPost.getComment());\n\n //Start the detail activity\n mContext.startActivity(detailIntent);\n }",
"@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openMachineDetails(position);\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,SafeMove.class));\n }",
"@Override\n public DetailToMainActivityState getDataFromDetailScreen(){\n DetailToMainActivityState state = mediator.getDetailToMainActivityState();\n return state;\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,studentLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }",
"private void startBookMain() {\n Intent intent = new Intent();\r\n intent.setClass(this, MainActivity.class);\r\n this.startActivity(intent);\r\n this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\r\n this.finish();\r\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getActivity(), InstructionStartActivity.class);\n intent.putExtra(\"title\", MainHomeActivity.origamiTitles[position]);\n intent.putExtra(\"info\", MainHomeActivity.origamiInfo[position]);\n intent.putExtra(\"design\", MainHomeActivity.origamiDesigns[position]);\n startActivity(intent);\n }",
"@Override\n public void run() {\n Intent i = new Intent(ActivityTestStart.this, ActivityTestList.class);\n startActivity(i);\n finish();\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,staffLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"@Override\n public void run() {\n Intent i = new Intent(ActivityTestStart.this, ActivityTestList.class);\n startActivity(i);\n finish();\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,teacherLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tintent = new Intent(SnaDetailsActivity.this,HostActivity.class);\r\n\t\t\t\tintent.putExtra(\"stoid\", stoid);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void startingScreen(Home.ToHome presenter) {\n presenter.onScreenStarted();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }",
"public void GoToTestDetails() {\n\t \t Intent intent = new Intent(this, TestDetails.class);\n\t \t intent.putExtra(\"Test value\", testList);\n\t \t startActivity(intent);\n\t }",
"public static void navigate(AppCompatActivity activity, View transitionImage, Friend obj, String snippet, String uid, String displayName) {\r\n Intent intent = new Intent(activity, ActivityChatDetails.class);\r\n intent.putExtra(KEY_FRIEND, obj);\r\n intent.putExtra(KEY_SNIPPET, snippet);\r\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, transitionImage, KEY_FRIEND);\r\n ActivityCompat.startActivity(activity, intent, options.toBundle());\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tIntent Intent=new Intent(MainPage.this,TimeTable1.class);\r\n\t\t\t\tstartActivity(Intent);\r\n\t\t\t}",
"private void SendUserToInfoPage(){\n Intent intent = new Intent(sign_up_activity.this,user_info_activity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);\n overridePendingTransition(0,0);\n startActivity(intent);\n finish();\n }",
"public void showDetails(boolean animated) {\n\n flushAnimations();\n\n detailsUp = true;\n\n if (detailsBar == null) {\n detailsBar = actionBar.createContextMode(detailsListener);\n detailsBar.setDoneResource(R.drawable.ic_action_done_dark);\n detailsBar.setSeparatorVisible(false);\n detailsBar.setTextColor(getResources().getColor(R.color.DashboardText));\n\n if (phoneUI) {\n detailsBar.setBackgroundColor(getResources().getColor(R.color.GradientStart));\n }\n else {\n detailsBar.setBackgroundResource(R.drawable.actionbar_background_round);\n }\n\n detailsBar.start();\n\n detailsBar.setTitleAnimated(getString(R.string.Details), 1);\n }\n\n final ScrollView DetailScroller = new ScrollView(getActivity());\n DetailScroller.setClipChildren(false);\n\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n params.addRule(RelativeLayout.BELOW, R.id.ScrapWindowActionBar);\n params.addRule(RelativeLayout.ABOVE, R.id.ScrapTotal);\n\n PanelBuilder builder = new PanelBuilder(activity)\n .setTitleSetting(DetailLabels[0], DetailLabelTypes[0], DetailIDs[0]);\n\n if (!phoneUI) {\n builder.setTitleWidth((int) (144 * metrics.density + 0.5f));\n }\n\n for (int i = 1; i < DetailCount; i++) {\n builder.addSetting(DetailLabels[i], DetailLabelTypes[i], DetailIDs[i]);\n }\n\n FrameLayout panel = builder.build();\n panel.setClipChildren(false);\n\n SpannableStringBuilder date = new SpannableStringBuilder();\n date.append(Integer.toString(dataSet.date.get(Calendar.DATE))).append(\" \").append(dataSet.date.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.getDefault()));\n Utils.appendWithSpan(date, \" \" + dataSet.date.get(Calendar.YEAR), Receipt.textLightSpan());\n ((TextView) panel.findViewById(DetailIDs[0])).setText(date);\n $(panel, \"#\" + DetailIDs[0]).click(DatePickerClickListener);\n\n date = new SpannableStringBuilder();\n date.append(Integer.toString(dataSet.date.get(Calendar.HOUR_OF_DAY))).append(\":\").append(Integer.toString(dataSet.date.get(Calendar.MINUTE)));\n Utils.appendWithSpan(date, \":\" + dataSet.date.get(Calendar.SECOND), Receipt.titleLightSpan());\n ((TextView) panel.findViewById(R.id.CheckoutTime)).setText(date);\n\n ((TextView) panel.findViewById(R.id.ItemCount)).setText(Long.toString(dataSet.details[DetailItemCount]));\n if (dataSet.details[DetailBudget] < Long.MAX_VALUE) {\n ((TextView) panel.findViewById(R.id.BudgetAssigned)).setText(ReceiptActivity.longToFormattedString(dataSet.details[DetailBudget], Receipt.textLightSpan()));\n ((TextView) panel.findViewById(R.id.BudgetRemaining)).setText(ReceiptActivity.longToFormattedString(dataSet.details[DetailRemainingBudget], Receipt.textLightSpan()));\n }\n else {\n ((TextView) panel.findViewById(R.id.BudgetAssigned)).setText(Utils.appendWithSpan(new SpannableStringBuilder(), getString(R.string.BudgetUnlimited), Receipt.textLightSpan()));\n ((TextView) panel.findViewById(R.id.BudgetRemaining)).setText(Utils.appendWithSpan(new SpannableStringBuilder(), getString(R.string.BudgetUnlimited), Receipt.textLightSpan()));\n }\n ((TextView) panel.findViewById(R.id.Tax)).setText(ReceiptActivity.longToFormattedString(dataSet.details[DetailTax], Receipt.textLightSpan()));\n ((TextView) panel.findViewById(R.id.Subtotal)).setText(ReceiptActivity.longToFormattedString(dataSet.details[DetailSubtotal], Receipt.textLightSpan()));\n\n panelLayout = new LinearLayout(activity);\n panelLayout.setGravity(Gravity.CENTER);\n\n panelLayout.addView(DetailScroller, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n panelLayout.setClipChildren(false);\n\n final View TotalSeparator = viewer.findViewById(R.id.TotalSeparator);\n final View ActionBarSeparator = viewer.findViewById(R.id.ActionBarSeparator);\n\n DetailScroller.addView(panel);\n DetailScroller.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {\n if (DetailScroller.getHeight() >= ((View) DetailScroller.getParent()).getHeight()) {\n TotalSeparator.setVisibility(View.VISIBLE);\n ActionBarSeparator.setVisibility(View.VISIBLE);\n } else {\n TotalSeparator.setVisibility(View.INVISIBLE);\n ActionBarSeparator.setVisibility(View.INVISIBLE);\n }\n }\n });\n\n container.addView(panelLayout, params);\n\n if (animated && !USE_VIEWPROXY_ANIMATIONS) {\n collection.freeze();\n collection.setLayerType(View.LAYER_TYPE_HARDWARE, null);\n collection.buildLayer();\n\n ((View) headerTitle.getParent()).setLayerType(View.LAYER_TYPE_HARDWARE, null);\n ((View) headerTitle.getParent()).buildLayer();\n\n DetailScroller.setTranslationY(-96 * metrics.density);\n DetailScroller.setAlpha(0f);\n DetailScroller.setLayerType(View.LAYER_TYPE_HARDWARE, null);\n DetailScroller.setVerticalScrollBarEnabled(false);\n DetailScroller.setOverScrollMode(View.OVER_SCROLL_NEVER);\n DetailScroller.setWillNotDraw(true);\n\n final ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f);\n animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n float fraction = valueAnimator.getAnimatedFraction();\n\n collection.setTranslationY(Utils.interpolateValues(fraction, 0f, 128 * metrics.density));\n collection.setAlpha(1 - fraction);\n\n ((View) headerTitle.getParent()).setTranslationY(Utils.interpolateValues(fraction, 0f, 128 * metrics.density));\n ((View) headerTitle.getParent()).setAlpha(1 - fraction);\n\n DetailScroller.setAlpha(fraction);\n DetailScroller.setTranslationY(Utils.interpolateValues(fraction, -96 * metrics.density, 0f));\n }\n });\n animator.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n animations.remove(animation);\n ((View) headerTitle.getParent()).setVisibility(View.INVISIBLE);\n ((View) headerTitle.getParent()).setLayerType(View.LAYER_TYPE_NONE, null);\n collection.setVisibility(View.INVISIBLE);\n collection.thaw();\n collection.setLayerType(View.LAYER_TYPE_NONE, null);\n\n DetailScroller.setLayerType(View.LAYER_TYPE_NONE, null);\n DetailScroller.setVerticalScrollBarEnabled(true);\n DetailScroller.setOverScrollMode(View.OVER_SCROLL_IF_CONTENT_SCROLLS);\n DetailScroller.setWillNotDraw(false);\n\n if (currentExpander != null) {\n currentExpander.destroy();\n }\n }\n });\n animator.setDuration(300);\n animator.setInterpolator(new Utils.FrictionInterpolator(1.5f));\n pendingAnimations.add(new Runnable() {\n @Override\n public void run() {\n pendingAnimations.remove(this);\n\n animator.start();\n animations.add(animator);\n }\n });\n handler.post(pendingAnimations.get(pendingAnimations.size() - 1));\n }\n else if (animated && USE_VIEWPROXY_ANIMATIONS) {\n\n $.bind(activity);\n\n $.finishQueue(\"detailsQueue\", true);\n\n ((ViewGroup) collection.getChildAt(0)).setClipChildren(false);\n $ outgoing = $(R.id.ScrapHeader).add(collection.visibleViews()).reverse();\n\n outgoing.animate()\n .property($.TranslateY, $.dp(DetailDisplacementDistanceDP), $.Op.Add)\n .property($.Opacity, 0)\n .layer(true)\n .duration(DetailAnimationDuration)\n .interpolator(new Utils.FrictionInterpolator(1.5f))\n .stride(DetailSpread / outgoing.length())\n .complete(new $.AnimationCallback() {\n @Override\n public void run($ collection) {\n HistoryViewerFragment.this.collection.setVisibility(View.INVISIBLE);\n $(R.id.ScrapHeader).visibility($.Invisible);\n collection.property($.Opacity, 1).property($.TranslateY, 0);\n }\n })\n .start(\"detailsQueue\");\n\n final $ Incoming = $(DetailScroller.getChildAt(0)).children();\n Incoming.each(new $.Each() {\n int i = 0;\n int row = Incoming.length();\n int stride = DetailSpread / Incoming.length();\n\n @Override\n public void run(View view, int index) {\n $ wrapper = $(view);\n\n wrapper.property($.Opacity, 0)\n .property($.TranslateY, $.dp(-DetailDisplacementDistanceDP), $.Op.Add)\n .animate()\n .property($.Opacity, 1)\n .property($.TranslateY, $.dp(DetailDisplacementDistanceDP), $.Op.Add)\n .layer(true)\n .duration(DetailAnimationDuration)\n .delay(stride * row)\n .interpolator(new Utils.FrictionInterpolator(1.5f))\n .start(\"detailsQueue\");\n\n i++;\n if (i == 2) {\n i = 0;\n row --;\n }\n }\n });\n\n $.unbind();\n\n }\n else {\n collection.setVisibility(View.INVISIBLE);\n ((View) headerTitle.getParent()).setVisibility(View.INVISIBLE);\n }\n\n }",
"private void bibleStudyOnClick(int startingPosition) {\n\n // New intent is to create a new activity\n Intent intent = new Intent(this, BibleStudyDetailActivity.class);\n intent.putParcelableArrayListExtra(\"BibleStudies\", mBibleStudyList);\n intent.putExtra(\"StartingPosition\", startingPosition);\n\n // Start the activity\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"private void startLesson() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\tint screenId = onLargeScreen ? R.id.detailFragmentContainer\n\t\t\t\t: R.id.fragmentContainer;\n\t\tFragment lessonFragment = (Fragment) fm.findFragmentById(screenId);\n\t\tif (lessonFragment != null) {\n\t\t\t// ft.remove(lessonFragment) ;\n\t\t\tfm.popBackStackImmediate();\n\n\t\t}\n\t\tlessonFragment = getLessonFragment();\n\t\tft.add(screenId, lessonFragment,\n\t\t\t\tonLargeScreen ? CHILD_CONTAINER : MASTER_CONTAINER)\n\t\t\t\t.addToBackStack(null).commit();\n\n\t}",
"protected void gotoReadyPage(){\n\n Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n //\n finish();\n }",
"private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }",
"@Override\n\tpublic void turnToDetail(int position) {\n\t\tIntent intent = new Intent(WhiteListActivity.this,\n\t\t\t\tWhiteListDetailActivity.class);\n\t\tif (position >= 0) {\n\t\t\tintent.putExtra(\"isnew\", false);\n\t\t\tintent.putExtra(\"name\", adapter.getItem(position).getName());\n\t\t\tintent.putExtra(\"phone\", adapter.getItem(position).getPhone());\n\t\t\tintent.putExtra(\"id\", adapter.getItem(position).getId());\n\t\t} else {\n\t\t\tintent.putExtra(\"isnew\", true);\n\t\t}\n\t\tstartActivity(intent);\n\t}",
"@Override\n\t\tprotected void doTransition() {\n\t\t\t\n\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(ActivityIndex.this, ActivityTrialMessage.class);\n intent.putExtra(\"fromIndex\", true);\n startActivity(intent);\n }",
"@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }",
"public void gotoDetailSalesOrder() {\n\t}",
"@Override\n public void run() {\n\n Intent intent = new Intent(getApplicationContext(), FirstActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.enter_from_right, R.anim.exit_out_left);\n\n\n finish();\n\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i){\n NavUtils.navigateUpFromSameTask(DetailsActivity.this);\n }",
"public void onClick(DialogInterface dialog,int id) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(context, StepActivity.class);\n startActivity(intent);\n }\n }, 50);\n }",
"@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(Intent.EXTRA_TEXT, movie);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnext.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Truck.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.right_in,R.anim.left_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }",
"public void switchToInstructionScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"insn\");\n }",
"@Override\n public void onClick(View v) {\n Intent detail=new Intent(getBaseContext(),DetailArticle.class);\n detail.putExtra(\"webURL\",webHotURL);\n startActivity(detail);\n }",
"@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }",
"void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\tContestListSampleActivity.class);\n\t\t\t\t\tintent.putExtra(\"contest_id\", contest_id);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\n\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t}\n\t\t\t}",
"@OnClick(R.id.ivPosterPortrait)\n public void onClick(View v) {\n if (mMainActivity.ismTwoPane()) {\n Bundle arguments = new Bundle();\n arguments.putParcelable(MovieDetailFragment.ARG_MOVIE, mItem);\n Fragment fragment = new MovieDetailFragment();\n fragment.setArguments(arguments);\n mMainActivity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.movie_detail_container, fragment)\n .commit();\n lastClicked = position;\n } else {\n //Starting Details Activity\n Context context = v.getContext();\n Intent intent = new Intent(context, MovieDetailActivity.class);\n intent.putExtra(MovieDetailFragment.ARG_MOVIE, mItem);\n context.startActivity(intent);\n }\n }",
"public void openMoving() {\n myActivity.setContentView(R.layout.moving);\n Button movingButtonToGame = myActivity.findViewById(R.id.button10);\n\n movingButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"@Override\n public void onItemSelected(Uri uri) {\n if(mTwoPaneLayout){\n MovieDetailsFragment detailsFragment = new MovieDetailsFragment();\n\n Bundle arguments = new Bundle();\n arguments.putParcelable(MovieDetailsFragment.DETAIL_URI, uri);\n detailsFragment.setArguments(arguments);\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.movie_detail_container, detailsFragment, DETAIL_FRAGMENT_TAG)\n .commit();\n } else {\n Intent intent = new Intent(MainActivity.this, MovieDetailsActivity.class);\n intent.setData(uri);\n startActivity(intent);\n }\n }",
"private void startGoToCartAct() {\n Intent intent = new Intent(this, EcomCartActivity.class);\n startActivity(intent);\n }",
"public void gotoActivity(Context context, Class<?> cla) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(android.R.anim.slide_in_left, R.anim.slide_out_right);\n\t}",
"@Override\n public void onResume() {\n super.onResume();\n MobclickAgent.onResume(this);\n MobclickAgent.onEvent(FourPartAct.this, UrlConfig.point + 8 + \"\");\n }",
"public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, ShowDetails.class);\r\n\t\t\t\tintent.putExtra(\"placeReference\",placeReference); \r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,parentLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }"
]
| [
"0.67727685",
"0.6572871",
"0.6545338",
"0.63875705",
"0.6386251",
"0.62619334",
"0.6228205",
"0.62131727",
"0.61854964",
"0.6073082",
"0.6053989",
"0.6052852",
"0.6051149",
"0.60411835",
"0.5994292",
"0.59808207",
"0.59576863",
"0.59552824",
"0.5916088",
"0.5873671",
"0.58473146",
"0.58134145",
"0.5802359",
"0.5797491",
"0.57929397",
"0.5786875",
"0.57646453",
"0.57636863",
"0.5753144",
"0.5731061",
"0.5728059",
"0.5726478",
"0.5704157",
"0.56963885",
"0.56922925",
"0.5691196",
"0.5684606",
"0.5669959",
"0.5650703",
"0.56494474",
"0.5641037",
"0.56304675",
"0.56300324",
"0.5624026",
"0.56214696",
"0.56193954",
"0.5611789",
"0.5607888",
"0.5599843",
"0.5597196",
"0.55936086",
"0.5593093",
"0.5586575",
"0.5578679",
"0.5578071",
"0.5573515",
"0.5572596",
"0.5572118",
"0.55663395",
"0.55646944",
"0.55557954",
"0.5552127",
"0.5546593",
"0.55463505",
"0.5545236",
"0.55340976",
"0.553255",
"0.553147",
"0.55225825",
"0.55188847",
"0.5496105",
"0.5484886",
"0.5484805",
"0.54838043",
"0.54826295",
"0.54795074",
"0.5479114",
"0.54756653",
"0.5475151",
"0.54684544",
"0.54651934",
"0.5464874",
"0.5461828",
"0.5460189",
"0.54600024",
"0.5458583",
"0.545694",
"0.54534984",
"0.54508865",
"0.5450516",
"0.5445265",
"0.54452574",
"0.5443993",
"0.5438387",
"0.54327744",
"0.5431358",
"0.54243845",
"0.5423259",
"0.5422593",
"0.54212546",
"0.5420957"
]
| 0.0 | -1 |
Loads the map Uses the special class WorkaroundMapFragment to intercept any touchEvent from ScrollView so that when touching the map the screen stays the same. | protected void loadMap(GoogleMap googleMap) {
this.map = googleMap;
if (this.map == null) {
Toast.makeText(this, "Error loading map", Toast.LENGTH_SHORT).show();
return;
}
// Set map settings, and create listener to intercept clicks so that map is able to move
this.map.getUiSettings().setZoomControlsEnabled(false);
((WorkaroundMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.setListener(new WorkaroundMapFragment.OnTouchListener() {
@Override
public void onTouch() {
binding.scrollView.requestDisallowInterceptTouchEvent(true);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onMapReady(final GoogleMap googleMap) {\n this.googleMap = googleMap;\n googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n googleMap.getUiSettings().setZoomControlsEnabled(true);\n final ScrollView mScrollView = (ScrollView) findViewById(R.id.scrollMap); //parent scrollview in xml, give your scrollview id value\n\n ((WorkaroundMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .setListener(new WorkaroundMapFragment.OnTouchListener() {\n @Override\n public void onTouch() {\n mScrollView.requestDisallowInterceptTouchEvent(true);\n }\n });\n\n final LatLng latLng = new LatLng(31.203156318491384, 29.915557913482193);\n fromLot = 29.915557913482193;\n fromLat = 31.203156318491384;\n toLat = fromLat;\n toLot = fromLot;\n markerOptions = new MarkerOptions().position(latLng)\n .title(\"مكان الاقلاع\").draggable(true);\n\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n zoomIn(latLng);\n\n marker = googleMap.addMarker(markerOptions);\n marker.showInfoWindow();\n\n\n googleMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() {\n @Override\n public void onMarkerDragStart(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDrag(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDragEnd(Marker marker) {\n if (secondClick) {\n toLat = marker.getPosition().latitude;\n toLot = marker.getPosition().longitude;\n\n\n Geocoder geocoder = new Geocoder(AskForTaxiActivity.this, Locale.getDefault());\n List<Address> toAddresses = null;\n try {\n toAddresses = geocoder.getFromLocation(toLat, toLot, 1);\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n if (toAddresses != null) {\n toAddress = toAddresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n toCity = toAddresses.get(0).getAdminArea();\n } else {\n //Toast.makeText(AskForTaxiActivity.this,\"لا يوجد انترنت\",Toast.LENGTH_LONG).show();\n Helper.showSnackBarMessage(\"لا يوجد انترنت\",AskForTaxiActivity.this);\n finish();\n }\n addressEditText.setText(toAddress);\n\n GMethods.writeToLog(\"To lat\" + toLat + \" \" + \" to lot\" + toLot);\n } else {\n fromLat = marker.getPosition().latitude;\n fromLot = marker.getPosition().longitude;\n\n Geocoder geocoder = new Geocoder(AskForTaxiActivity.this, Locale.getDefault());\n List<Address> toAddresses = null;\n try {\n toAddresses = geocoder.getFromLocation(fromLat, fromLot, 1);\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n if (toAddresses!= null) {\n toAddress = toAddresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n toCity = toAddresses.get(0).getAdminArea();\n\n } else {\n //Toast.makeText(AskForTaxiActivity.this,\"لا يوجد انترنت\",Toast.LENGTH_LONG).show();\n Helper.showSnackBarMessage(\"لا يوجد انترنت\",AskForTaxiActivity.this);\n finish();\n }\n addressEditText.setText(toAddress);\n\n GMethods.writeToLog(\"from lat \" + fromLat + \" \" + \"from lot\" + fromLot);\n }\n }\n });\n\n\n googleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n marker.setPosition(latLng);\n marker.showInfoWindow();\n if (secondClick) {\n toLat = marker.getPosition().latitude;\n toLot = marker.getPosition().longitude;\n\n\n Geocoder geocoder = new Geocoder(AskForTaxiActivity.this, Locale.getDefault());\n List<Address> toAddresses = null;\n try {\n toAddresses = geocoder.getFromLocation(toLat, toLot, 1);\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n if (toAddresses != null) {\n toAddress = toAddresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n toCity = toAddresses.get(0).getAdminArea();\n } else {\n //Toast.makeText(AskForTaxiActivity.this,\"لا يوجد انترنت\",Toast.LENGTH_LONG).show();\n Helper.showSnackBarMessage(\"لا يوجد انترنت\",AskForTaxiActivity.this);\n finish();\n }\n addressEditText.setText(toAddress);\n\n GMethods.writeToLog(\"To lat\" + toLat + \" \" + \" to lot\" + toLot);\n } else {\n fromLat = marker.getPosition().latitude;\n fromLot = marker.getPosition().longitude;\n\n Geocoder geocoder = new Geocoder(AskForTaxiActivity.this, Locale.getDefault());\n List<Address> toAddresses = null;\n try {\n toAddresses = geocoder.getFromLocation(fromLat, fromLot, 1);\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n if (toAddresses!= null) {\n toAddress = toAddresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n toCity = toAddresses.get(0).getAdminArea();\n\n } else {\n //Toast.makeText(AskForTaxiActivity.this,\"لا يوجد انترنت\",Toast.LENGTH_LONG).show();\n Helper.showSnackBarMessage(\"لا يوجد انترنت\",AskForTaxiActivity.this);\n finish();\n }\n addressEditText.setText(toAddress);\n\n GMethods.writeToLog(\"from lat \" + fromLat + \" \" + \"from lot\" + fromLot);\n }\n }\n });\n\n\n }",
"private void inflateMap() {\n\n // Alter the visibiliity\n waitLayout.setVisibility(View.GONE);\n mapWearFrame.setVisibility(View.VISIBLE);\n\n // Set up fragment manager\n fm = getFragmentManager();\n\n // Set up map fragment\n mapFragment = (MapFragment) fm.findFragmentByTag(TAG_FRAG_MAP);\n if (mapFragment == null) {\n // Initialize map options\n GoogleMapOptions mapOptions = new GoogleMapOptions();\n mapOptions.mapType(GoogleMap.MAP_TYPE_NORMAL)\n .compassEnabled(true)\n .rotateGesturesEnabled(true)\n .tiltGesturesEnabled(true);\n mapFragment = MapFragment.newInstance(mapOptions);\n }\n mapFragment.getMapAsync(this);\n\n // Add map to DismissOverlayView\n fm.beginTransaction().add(R.id.mapWearFrame, mapFragment).commit();\n }",
"@Override\n protected void onResume() {\n mapView.onResume();\n super.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n mapView.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n mapView.onResume();\n }",
"@Override\n public void onResume() {\n mMapView.onResume();\n super.onResume();\n }",
"private void loadMapScene() {\n mapView.getMapScene().loadScene(MapScheme.NORMAL_DAY, new MapScene.LoadSceneCallback() {\n\n @Override\n public void onLoadScene(@Nullable MapError mapError) {\n if (mapError == null) {\n positioningExample = new BackgroundPositioningExample();\n positioningExample.onMapSceneLoaded(mapView, MainActivity.this);\n positioningExample.startForegroundService();\n } else {\n Log.d(TAG, \"Loading map failed: mapError: \" + mapError.name());\n }\n }\n });\n }",
"@Override\n protected void onResume() {\n super.onResume();\n mapView.onResume();\n }",
"@Override\n public void onMapLoaded() {\n mGoogleMap.animateCamera(cu);\n }",
"@Override\r\n protected void onResume() {\n super.onResume();\r\n mapView.onResume();\r\n }",
"private void initMap() {\n setContentView(R.layout.map_activity);\n MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.mapFragment);\n if (mapFragment == null)\n Log.e(\"Hi\", \"Couldn't find mapFragment\");\n else {\n Log.d(\"Hi\", \"Found mapFragment\");\n mapFragment.getMapAsync(this);\n }\n }",
"@Override\n public void onTouch() {\n mScrollView.requestDisallowInterceptTouchEvent(true);\n\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng location) {\n\n\n Toast.makeText(DoctorRegistration.this, \"\"+location, Toast.LENGTH_SHORT).show();\n if(marker!=null)\n {\n marker.remove();\n map.clear();\n }\n marker=map.addMarker(new MarkerOptions().position(location));\n\n new_lat=location.latitude;\n new_log=location.longitude;\n }\n });\n\n }",
"@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n }",
"private boolean initMap(Bundle savedInstanceState) {\n // setContentView(R.layout.activity_map);\n Log.v(TAG, \"Map Activated\");\n LayoutInflater inflater = LayoutInflater.from(GeoCollectMapActivity.this);\n inflater.inflate(R.layout.activity_map, (FrameLayout)findViewById(R.id.content_frame));\n \n this.mapView = (AdvancedMapView) findViewById(R.id.advancedMapView);\n\n mapView.setClickable(true);\n mapView.setBuiltInZoomControls(true);\n\n // mapView.setDebugSettings(new DebugSettings(true, true, false));\n\n mapView.getMapZoomControls().setZoomLevelMax((byte) 24);\n mapView.getMapZoomControls().setZoomLevelMin((byte) 1);\n\n final String filePath = PreferenceManager.getDefaultSharedPreferences(this).getString(\n MapView.MAPSFORGE_BACKGROUND_FILEPATH, null);\n final int type = Integer.parseInt(PreferenceManager.getDefaultSharedPreferences(this).getString(\n MapView.MAPSFORGE_BACKGROUND_RENDERER_TYPE, \"0\"));\n File mapfile = null;\n\n // if the map file was edited in the preferences\n if (filePath != null && type == 0) {\n mapfile = new File(filePath);\n }\n\n if (mapfile != null && mapfile.exists()) {\n // use it\n mapView.setMapFile(new File(filePath));\n\n } else if (MAP_FILE != null) {\n\n Log.i(TAG, \"setting background file\");\n mapView.setMapFile(MAP_FILE);\n loadPersistencePreferences();\n\n } else {\n Log.i(TAG, \"unable to set background file\");\n // return false;\n }\n\n return true;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.activity_locate_on_map, container,\n false);\n mMapView = (MapView) v.findViewById(R.id.locateOnMapView);\n mMapView.onCreate(savedInstanceState);\n userID=getArguments().getString(\"userID\");\n tableCategory=getArguments().getString(\"tableCategory\");\n Toast.makeText(getActivity(),tableCategory,Toast.LENGTH_LONG).show();\n mMarkersHashMap = new HashMap<Marker, ContactsnWantedAdObject>();\n first = true;\n mMapView.onResume();// needed to get the map to display immediately\n\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n googleMap = mMapView.getMap();\n googleMap.setMyLocationEnabled(true);\n new AsyncLoadContactAds().execute();\n\n return v;\n\n }",
"void configureSupportMapFragment(){\n supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\n }",
"public void MapFragment() {}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n }",
"private void initMap(){\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n }",
"@Override\n protected void onResume() {\n super.onResume();\n if (mMap != null) {\n requestLocation();\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.setOnCameraMoveListener(this);\n mMap.setOnMarkerClickListener(this);\n\n SharedPreferences sharedPref = this.getSharedPreferences(this.getString(R.string.app_name), (Context.MODE_PRIVATE));\n Double latitude = Double.valueOf(sharedPref.getString(this.getString(R.string.latitude), \"0\"));\n Double longitude = Double.valueOf(sharedPref.getString(this.getString(R.string.longitude), \"0\"));\n\n if(latitude != 0 && longitude != 0){\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n odradiDohvatSadrzaja();\n\n itemView.setVisibility(View.GONE);\n mRefreshMarkers.setVisibility(View.GONE);\n }",
"private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_map, container, false);\n\n mapView = (MapViewEnvelope) rootView.findViewById(R.id.map);\n //mapView.setTileSource(TileSourceFactory.MAPNIK);\n //mapView.setTileSource(TileSourceFactory.CYCLEMAP);\n OnlineTileSourceBase tileSource = null;\n tileSource = TileSourceFactory.MAPNIK;//CYCLEMAP;//CLOUDMADESMALLTILES;//MAPQUESTAERIAL;//MAPQUESTOSM;//PUBLIC_TRANSPORT;\n\n Configuration.getInstance().setUserAgentValue(getContext().getPackageName());\n\n /*float scale = getContext().getResources().getDisplayMetrics().density/1.5f;\n if(scale <1) scale=1;\n\n final int newScale = (int) (256 * scale + 0.5);\n tileSource=new XYTileSource(\"Mapnik\",\n 0, 19, newScale, \".png\", new String[] {\n \"https://a.tile.openstreetmap.org/\",\n \"https://b.tile.openstreetmap.org/\",\n \"https://c.tile.openstreetmap.org/\" },\"© OpenStreetMap contributors\",\n new TileSourcePolicy(2,\n TileSourcePolicy.FLAG_NO_BULK\n | TileSourcePolicy.FLAG_NO_PREVENTIVE\n | TileSourcePolicy.FLAG_USER_AGENT_MEANINGFUL\n | TileSourcePolicy.FLAG_USER_AGENT_NORMALIZED\n ));//*/\n mapView.setTileSource(tileSource);\n //mapView.getZoomController().setVisibility(CustomZoomButtonsController.Visibility.NEVER);\n mapView.setBuiltInZoomControls(false);\n mapView.setMultiTouchControls(true);\n\n\n // My Location Overlay\n myLocationoverlay = new CurrentLocationOverlay(getActivity(), mapView);\n mapView.getOverlays().add(myLocationoverlay);\n\n // Compass overlay\n mCompassOverlay = new CompassOverlay(getActivity(), new InternalCompassOrientationProvider(getActivity()), mapView);\n mCompassOverlay.enableCompass();\n mapView.getOverlays().add(mCompassOverlay);\n\n // map scale bar\n mScaleBarOverlay = new CurrentScaleBarOverlay(mapView,unitUtils);\n mScaleBarOverlay.setCentred(true);\n mScaleBarOverlay.setAlignBottom(true);\n mapView.getOverlays().add(this.mScaleBarOverlay);\n\n // path overlay\n originalPath = new Polyline(mapView);\n originalPath.setColor(0xFFFF0000);\n originalPath.setWidth(3f);\n mapView.getOverlays().add(originalPath);\n\n smoothyPath = new Polyline(mapView);\n smoothyPath.setColor(0x7F7F3030);\n smoothyPath.setWidth(2f);\n mapView.getOverlays().add(smoothyPath);\n\n CompassOverlay compass = new CompassOverlay(getActivity(), mapView);\n mapView.getOverlays().add(compass);\n\n IMapController mapController = mapView.getController();\n mapController.setZoom(settings.getZoomLevel());\n GeoPoint c = new GeoPoint(settings.getLastLatitude(), settings.getLastLongitude());\n mapController.setCenter(c);\n\n mapView.setMapListener(new MapListener());\n\n textTrackInfo = (TextView) rootView.findViewById(R.id.textTrackInfo);\n textTrackInfo.setText(\"\");\n textCurrentSpeedInfo = (TextView) rootView.findViewById(R.id.textCurrentSpeedInfo);\n textCurrentSpeedInfo.setText(\"\");\n\n satelliteImageView = (ImageView) rootView.findViewById(R.id.satelliteImageView);\n satelliteImageView.setVisibility(View.INVISIBLE);\n satelliteImageView.setOnClickListener(this);\n\n activityImageView = (ImageView) rootView.findViewById(R.id.activityImageView);\n\n fileNameTextView = (TextView) rootView.findViewById(R.id.fileNameTextView);\n\n buttonStart = (Button) rootView.findViewById(R.id.buttonStart);\n buttonStart.setOnClickListener(this);\n buttonStart.setVisibility(View.GONE);\n\n buttonStop = (Button) rootView.findViewById(R.id.buttonStop);\n buttonStop.setOnClickListener(this);\n buttonStop.setVisibility(View.GONE);\n\n myLocationButton = (FloatingActionButton) rootView.findViewById(R.id.myLocationButton);\n myLocationButton.setOnClickListener(this);\n //myLocationButton.setRippleColor(0x90FFFFFF);\n myLocationButton.setBackgroundTintList(ColorStateList.valueOf(0x90FFFFFF));\n\n if (savedInstanceState != null) {\n\n }\n\n presenter = MapFragmentPresenter.getInstance(getActivity());\n\n if(settings.getReturnToMyLocation())\n startFollowingMyLocation();\n else\n stopFollowingMyLocation();\n\n onSettingsChanged();\n\n return rootView;\n }",
"public void initMapFragment (){\n // Thay doi tieu de\n tabTourMapBinding.actionBar.actionBarTitle.setText(R.string.tour_map);\n // Khoi tao ban do\n SupportMapFragment mapFragment = null;\n for (int i = 0; i < getSupportFragmentManager().getFragments().size(); i++) {\n mapFragment = (SupportMapFragment) getSupportFragmentManager().getFragments().get(i).getChildFragmentManager().findFragmentById(R.id.tour_map);\n if (mapFragment != null) {\n break;\n }\n }\n// (SupportMapFragment)(((PagerAdapter)ActivityManager.getInstance().activityTourTabsBinding.viewpager.getAdapter()).getFragment(0).getActivity().getSupportFragmentManager().findFragmentById(R.id.tour_map));\n// SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.tour_map);\n mapFragment.getMapAsync(this);\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n LocationListener mLocationListener = new LocationListener() {\n // TODO: Duoc goi khi thay doi vi tri\n @Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n// ActivityManager.getInstance().makeLongToast(\"onStatusChanged\");\n }\n\n @Override\n public void onProviderEnabled(String provider) {\n// ActivityManager.getInstance().makeLongToast(\"onProviderEnabled\");\n }\n\n @Override\n public void onProviderDisabled(String provider) {\n// ActivityManager.getInstance().makeLongToast(\"onProviderDisabled\");\n }\n };\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // Cu 5s thi kiem tra su thay doi vi tri 1 lan\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 10, mLocationListener);\n }\n // Kiem tra thong tin vi tri\n GPSStatus();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_map, container,\n false);\n mMapView = (MapView) v.findViewById(R.id.mapView);\n mMapView.onCreate(savedInstanceState);\n\n mMapView.onResume();// needed to get the map to display immediately\n\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n mMapView.getMapAsync(this);\n\n lista = new AcademiaDAOMock();\n\n return v;\n }",
"@SuppressWarnings({ \"unchecked\", \"deprecation\" })\r\n\t@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.full_screen_map_fragment);\r\n\t\tgMap = ((SupportMapFragment) getSupportFragmentManager()\r\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\r\n\t\tfinal GoogleMap gmap = gMap;\r\n\t\tmapFragment = (MeMapFragment) getSupportFragmentManager()\r\n\t\t\t\t.findFragmentById(R.id.map_fragment);\r\n\t\tshowDialog(0);\r\n\r\n\t\ttry {\r\n\t\t\ttask = new AsyncTask<ArrayList<Integer>, Integer, ArrayList<LatLng>>() {\r\n\t\t\t\tprotected ArrayList<LatLng> doInBackground(\r\n\t\t\t\t\t\tArrayList<Integer>... loc) {\r\n\t\t\t\t\tArrayList<LatLng> result = new ArrayList<LatLng>();\r\n\t\t\t\t\tArrayList<Integer> coordinates = loc[0];\r\n\t\t\t\t\tclearBounds();\r\n\t\t\t\t\tfor (int i = 0; i < coordinates.size() - 1; i += 2) {\r\n\t\t\t\t\t\tint x = coordinates.get(i);\r\n\t\t\t\t\t\tint y = coordinates.get(i + 1);\r\n\t\t\t\t\t\tOSRef or = new OSRef(x, 1000000 - y);\r\n\t\t\t\t\t\tuk.me.jstott.jcoord.LatLng ll = or.toLatLng();\r\n\t\t\t\t\t\tll.toWGS84();\r\n\t\t\t\t\t\tLatLng lln = new LatLng(ll.getLat(), ll.getLng());\r\n\t\t\t\t\t\tresult.add(lln);\r\n\t\t\t\t\t\taddPointInBounds(lln);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (RouteResultsActivity.coordinatesType.containsKey(i)) {\r\n\t\t\t\t\t\t\t//this is a marker\r\n\t\t\t\t\t\t\t//TODO find station codes for departures.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tprotected void onProgressUpdate(Integer... progress) {\r\n\t\t\t\t}\r\n\r\n\t\t\t\tprotected void onPostExecute(ArrayList<LatLng> result) {\r\n\t\t\t\t\tif (result.size() < 2) {\r\n\t\t\t\t\t\twait_dialog.cancel();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint color = Color.BLUE;\r\n\t\t\t\t\tint icon = 0;\r\n\t\t\t\t\t// First the route\r\n\t\t\t\t\tPolylineOptions line = new PolylineOptions().width(9);\r\n\t\t\t\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\t\t\t\tif (RouteResultsActivity.coordinatesType.containsKey(i)) {\r\n\t\t\t\t\t\t\tif (i != 0) {\r\n\t\t\t\t\t\t\t\tgmap.addPolyline(line);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tline = new PolylineOptions().width(9);\r\n\t\t\t\t\t\t\tArrayList<Object> array = RouteResultsActivity.coordinatesType\r\n\t\t\t\t\t\t\t\t\t.get(i);\r\n\t\t\t\t\t\t\tcolor = (Integer) array.get(0);\r\n\t\t\t\t\t\t\tif (color == Color.WHITE)\r\n\t\t\t\t\t\t\t\tcolor = Color.BLACK;\r\n\t\t\t\t\t\t\tline.color(color);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tline.add(result.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (line.getPoints().size() > 1)\r\n\t\t\t\t\t\tgmap.addPolyline(line);\r\n\r\n\t\t\t\t\t// And then the pushpins\r\n\t\t\t\t\tfinal ArrayList<Marker> markers = new ArrayList<Marker>();\r\n\t\t\t\t\tfor (int i = 1; i < result.size(); i++) {\r\n\t\t\t\t\t\tif (RouteResultsActivity.coordinatesType\r\n\t\t\t\t\t\t\t\t.containsKey(i - 1)) {\r\n\t\t\t\t\t\t\tArrayList<Object> array = RouteResultsActivity.coordinatesType\r\n\t\t\t\t\t\t\t\t\t.get(i - 1);\r\n\t\t\t\t\t\t\ticon = (Integer) array.get(1);\r\n\t\t\t\t\t\t\tif (icon == R.drawable.walk)\r\n\t\t\t\t\t\t\t\ticon = R.drawable.walk_black;\r\n\r\n\t\t\t\t\t\t\tMarkerOptions opt = new MarkerOptions();\r\n\t\t\t\t\t\t\topt.position(result.get(i - 1));\r\n\t\t\t\t\t\t\tLog.d(\"Point\", result.get(i-1).toString());\r\n\t\t\t\t\t\t\topt.icon(BitmapDescriptorFactory.fromResource(icon));\r\n\t\t\t\t\t\t\topt.title(\"Change\");\r\n\t\t\t\t\t\t\topt.snippet((String) array.get(2));\r\n\t\t\t\t\t\t\tmarkers.add(gmap.addMarker(opt));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\twait_dialog.cancel();\r\n\t\t\t\t\tmapFragment.getView().post(new Runnable() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tResources r = getResources();\r\n\t\t\t\t\t\t\tfloat px = TypedValue.applyDimension(\r\n\t\t\t\t\t\t\t\t\tTypedValue.COMPLEX_UNIT_DIP, 40,\r\n\t\t\t\t\t\t\t\t\tr.getDisplayMetrics());\r\n\t\t\t\t\t\t\tgMap.animateCamera(CameraUpdateFactory\r\n\t\t\t\t\t\t\t\t\t.newLatLngBounds(getBounds(), (int) px));\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\ttask.execute(RouteResultsActivity.coordinates);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t}",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setCompassEnabled(false);\n mUiSettings.setMapToolbarEnabled(false);\n mUiSettings.setZoomControlsEnabled(false);\n mUiSettings.setScrollGesturesEnabled(false);\n mUiSettings.setTiltGesturesEnabled(false);\n mUiSettings.setRotateGesturesEnabled(false);\n\n // Add a marker in Sydney and move the camera\n final LatLng airport = new LatLng(listAirport.get(index).getLatitude(), listAirport.get(index).getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(airport));\n mMap.setMinZoomPreference(10.0f);\n mMap.setMaxZoomPreference(10.0f);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n onClick(index, MapsActivity.class);\n }\n });\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_map, container, false);\n setHasOptionsMenu(true);\n Fog.d(\"onCreate\", \"MapFragment\");\n recyclerViewMap = (RecyclerView) view.findViewById(R.id.RecyclerViewMap);\n LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());\n recyclerViewMap.setLayoutManager(mLayoutManager);\n placeTextView = ((TextView) view.findViewById(R.id.placeName));\n userimg = (ImageButton) view.findViewById(R.id.imageButton);\n nav_icon = (ImageView) view.findViewById(R.id.nav_icon);\n progressOverlay = view.findViewById(R.id.progressOverlay);\n myLocation = (TextView)view.findViewById(R.id.mylocation);\n requestedLocation = (TextView)view.findViewById(R.id.requestedlocation);\n mnavigateLl = view.findViewById(R.id.navigatell);\n mCallLl = view.findViewById(R.id.callll);\n // nc = (TextView) view.findViewById(R.id.tv_need_cash);\n nc = (RelativeLayout) view.findViewById(R.id.tv_need_cash);\n // TextView loadWallet = (TextView) view.findViewById(R.id.tv_load_wallet);\n if (savedInstanceState == null) {\n mapFragment = new CustomMapFragment();\n FragmentTransaction fragmentTransaction = getChildFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.googleMap, mapFragment);\n fragmentTransaction.commitAllowingStateLoss();\n }\n Fog.d(\"ALLOW \", pref.getString(Constants.ALLOW_WITHDRAW));\n if (pref.getString(Constants.ALLOW_WITHDRAW).equalsIgnoreCase(\"No\")) {\n nc.setVisibility(View.GONE);\n } else\n nc.setVisibility(View.VISIBLE);\n // nc.setTypeface(typeface.getOpenSansSemiBold());\n nc.setOnClickListener(this);\n // loadWallet.setOnClickListener(this);\n gpsAuthenticationPopup = (SlidingUpPanelLayout) view.findViewById(R.id.gpsSlidePanel);\n floatingActionButton = (ImageView) view.findViewById(R.id.fab);\n ImageView floatingActionButton = (ImageView) view.findViewById(R.id.fab);\n floatingActionButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n try {\n moveBackToCurrentLocation();\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }\n });\n mnavigateLl.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(mSelectedMarker != null && mSelectedMarker.getContactType() != null){\n\n openMapIntent();\n// if(mSelectedMarker.getContactType().equalsIgnoreCase(\"ATM\"))\n// openMapIntent();\n// else{\n// openMerchantProfile(mSelectedMarker);\n// }\n }\n\n }\n });\n\n mCallLl.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Utils.call(mSelectedMarker.getMobile(),getActivity());\n }\n });\n\n slidingUpPanelLayout = (SlidingUpPanelLayout) view.findViewById(R.id.slidePanel);\n /* if (!gpsTracker.isGPSEnabled()) {\n // gpsTracker.showSettingsAlert();\n gpsAuthenticationPopup.setPanelState(SlidingUpPanelLayout.PanelState.EXPANDED);\n\n } else {\n *//* gpsAuthenticationPopup.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED);*//*\n }*/\n ImageView closePopup = (ImageView) gpsAuthenticationPopup.findViewById(R.id.close_popup);\n Button activateGPS = (Button) gpsAuthenticationPopup.findViewById(R.id.activateGPSButton);\n //TextView notNow = (TextView) gpsAuthenticationPopup.findViewById(R.id.not_now);\n activateGPS.setOnClickListener(this);\n closePopup.setOnClickListener(this);\n view.findViewById(R.id.markerDetail).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(mSelectedMarker != null && mSelectedMarker.getContactType() != null){\n if(mSelectedMarker.getContactType().equalsIgnoreCase(Constants.CustomerType.MERCHANT.toString())){\n openMerchantProfile(mSelectedMarker);\n }\n else if(mSelectedMarker.getContactType().equalsIgnoreCase(Constants.CustomerType.ATM.toString())){\n openMapIntent();\n }\n }\n }\n });\n imageButton = view.findViewById(R.id.imageButtonClose);\n imageButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n slidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.COLLAPSED);\n }\n });\n if (checkPlayServices()) {\n // Building the GoogleApi client\n buildGoogleApiClient();\n }\n FunduAnalytics.getInstance(getActivity()).sendScreenName(\"Map\");\n return view;\n }",
"private void loadMap() {\n mEditSearch.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (count == 0 || s.toString().trim().length() == 0) {\n locationFound = false;\n resetSearchAheadList();\n resetDoctorsList();\n }\n\n if (!locationFound && s.length() > 2) {\n searchQuery(mEditSearch.getText().toString());\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n //gets the asynchronous map\n mMapView.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(MapboxMap mapboxMap) {\n mMapboxMap = mapboxMap;\n mMapView.setStreetMode();\n\n //set a on map click listener to hide the\n mMapboxMap.addOnMapClickListener(new MapboxMap.OnMapClickListener() {\n @Override\n public void onMapClick(@NonNull com.mapbox.mapboxsdk.geometry.LatLng point) {\n if (locationFound && mListViewDoctors.getVisibility() == View.GONE) {\n mListViewSearch.setVisibility(View.VISIBLE);\n mListViewDoctors.setVisibility(View.VISIBLE);\n } else if (locationFound) {\n mListViewSearch.setVisibility(View.GONE);\n mListViewDoctors.setVisibility(View.GONE);\n }\n }\n });\n }\n });\n\n //create and set on click listener that will move the map position to the selected address marker\n mListViewSearch.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView displayAddress = view.findViewById(R.id.text_result_address);\n TextView latitude = view.findViewById(R.id.hidden_location_lat);\n TextView longitude = view.findViewById(R.id.hidden_location_long);\n\n //hide keyboard\n hideKeyboard(mEditSearch);\n\n selectedLat = latitude.getText().toString();\n selectedLong = longitude.getText().toString();\n locationFound = true;\n\n mEditSearch.setText(displayAddress.getText().toString());\n mEditSearch.setSelection(displayAddress.getText().length());\n\n resetSearchAheadList();\n mMapboxMap.clear();\n mMapboxMap.setCameraPosition(new CameraPosition.Builder()\n .target(new com.mapbox.mapboxsdk.geometry.LatLng(Double.parseDouble(selectedLat) - 0.08, Double.parseDouble(selectedLong))) // Sets the new camera position\n .zoom(10)\n .tilt(20)\n .build());\n addMarker(mMapboxMap);\n //make api call\n distanceMatrixNetworkCall();\n }\n });\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_map);\n\t\tArcGISRuntime.setClientId(\"TZgA94VjocV8S3Uj\");\n\t\tSharedPreferences mSharedPreferences = getSharedPreferences(\n\t\t\t\t\"suntownshop\", 0);\n\t\tmIsVip = mSharedPreferences.getBoolean(\"isvip\", false);\n\t\tmShopId = mSharedPreferences.getString(\"shopid\", \"\");\n\t\tString shopName = mSharedPreferences.getString(\"shopfullname\", \"\");\n\t\tString floorNames = mSharedPreferences.getString(\"floornames\", null);\n\t\tString floorNos = mSharedPreferences.getString(\"floors\", null);\n\t\tif (floorNames == null || floorNos == null || \"\".equals(floorNos)\n\t\t\t\t|| \"\".equals(floorNames)) {\n\t\t\tToast.makeText(this, \"该超市没有地图\", Toast.LENGTH_SHORT).show();\n\t\t\tfinish();\n\t\t\treturn;\n\t\t}\n\t\tTextView tvTitle = (TextView) findViewById(R.id.tv_title);\n\t\tif (!\"\".equals(shopName)) {\n\t\t\ttvTitle.setText(shopName);\n\t\t}\n\t\tString[] floorNameArray = FormatValidation.StringToArray(floorNames,\n\t\t\t\t\";\");\n\t\tString[] floorNoArray = FormatValidation.StringToArray(floorNos, \";\");\n\t\tmap = (MapView) findViewById(R.id.map);\n\t\thsvFloor = (SynHorizontalScrollView) findViewById(R.id.hsv_floor);\n\t\trgFloor = (RadioGroup) findViewById(R.id.rg_floor);\n\t\tmRgMargin = Constants.displayWidth / 2 - MyMath.dip2px(this, 60);\n\t\trgFloor.setPadding(mRgMargin, 0, mRgMargin, 0);\n\t\trgFloor.setOnCheckedChangeListener(this);\n\t\thsvFloor.setOnTouchListener(this);\n\t\thsvFloor.setOnScrollChangedListener(this);\n\n\t\tmap.setMapBackground(0xffffff, 0xffffff, 0, 0);\n\t\tmMapViewHelper = new MapViewHelper(map);\n\n\t\tfloorList = new ArrayList<FloorInfo>();\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tint btnWidth = MyMath.dip2px(this, 40);\n\n\t\tfor (int i = 0; i < floorNameArray.length; i++) {\n\t\t\tString name = floorNameArray[i];\n\t\t\tString number = floorNoArray[i];\n\t\t\tSystem.out.println(\"楼层号:\" + number + \"楼层名:\" + name);\n\t\t\tRadioButton rb = (RadioButton) inflater.inflate(\n\t\t\t\t\tR.layout.radio_button_floor, null);\n\t\t\trb.setWidth(btnWidth);\n\t\t\trb.setHeight(btnWidth);\n\t\t\tint id = View.generateViewId();\n\t\t\trb.setId(id);\n\t\t\trb.setText(name);\n\t\t\tFloorInfo floorInfo = new FloorInfo(name, id, number);\n\t\t\t// ArcGISTiledMapServiceLayer tiledLayer = new\n\t\t\t// ArcGISTiledMapServiceLayer(\n\t\t\t// MapServerRoot +\"ST_\"+ mShopId + \"_\" + name + \"/MapServer\");\n\t\t\tArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(\n\t\t\t\t\tMapServerRoot + \"ST_\" + mShopId + \"_\" + name + \"/MapServer\");\n\t\t\tfloorInfo.setBaseLayer(dynamicLayer);\n\t\t\tfloorInfo.setRouteServerPath(MapServerRoot + \"ST_\" + mShopId + \"_\"\n\t\t\t\t\t+ name + \"_ND/NAServer/Route\");\n\t\t\tfloorInfo.setLocatorServerPath(MapServerRoot + \"ST_\" + mShopId\n\t\t\t\t\t+ \"_\" + name + \"_QUERY/GeocodeServer\");\n\t\t\tdynamicLayer.setVisible(false);\n\t\t\tmap.addLayer(dynamicLayer);\n\t\t\tfloorList.add(floorInfo);\n\t\t\trgFloor.addView(rb);\n\t\t\trb.setOnTouchListener(this);\n\t\t}\n\t\tsetCheckAt(0);\n\t\t// Set the MapView to allow the user to rotate the map when as part of a\n\t\t// pinch gesture.\n\t\tmap.setAllowRotationByPinch(true);\n\n\t\t// Enabled wrap around map.\n\t\tmap.enableWrapAround(true);\n\t\tcompass = new Compass(this, null, map);\n\n\t\tLinearLayout compassContainer = new LinearLayout(this);\n\t\tcompassContainer.setPadding(20, 20, 20, 20);\n\t\tcompassContainer.addView(compass);\n\t\tcompassContainer.setOnClickListener(new 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\n\t\t\t\tmap.setRotationAngle(0);\n\t\t\t\tcompass.setRotationAngle(0);\n\n\t\t\t}\n\t\t});\n\t\tmap.addView(compassContainer);\n\n\t\t// Add the route graphic layer (shows the full route)\n\t\trouteLayer = new GraphicsLayer();\n\t\tmap.addLayer(routeLayer);\n\t\trouteDirectionLayer = new GraphicsLayer();\n\t\tmap.addLayer(routeDirectionLayer);\n\t\t// Initialize the RouteTask\n\n\t\tmap.setOnStatusChangedListener(this);\n\t\tIntent intent = getIntent();\n\n\t\tif (intent.hasExtra(\"goodslist\")) {\n\t\t\tif (intent.hasExtra(\"location\")) {\n\t\t\t\tmMyLocation = intent.getStringExtra(\"location\");\n\t\t\t\tmMyLocationTitle = intent.getStringExtra(\"title\");\n\t\t\t\tmMyLocationFloor = intent.getStringExtra(\"floor\");\n\t\t\t}\n\t\t\tArrayList<ParcelableGoods> goodsList = intent\n\t\t\t\t\t.getParcelableArrayListExtra(\"goodslist\");\n\t\t\tgoodsMap = new HashMap<String, ParcelableGoods>();\n\t\t\tfor (ParcelableGoods goods : goodsList) {\n\t\t\t\tif (goods.getShelfId() != null && goods.getFloorName() != null\n\t\t\t\t\t\t&& !\"\".equals(goods.getShelfId())\n\t\t\t\t\t\t&& !\"\".equals(goods.getFloorName())) {\n\t\t\t\t\tString floorName = goods.getFloorName();\n\t\t\t\t\tFloorInfo floorInfo = getFloorInfoByName(floorName);\n\t\t\t\t\tif (floorInfo != null) {\n\t\t\t\t\t\tfloorInfo.addGoods(goods.getShelfId(), goods);\n\t\t\t\t\t\tif (!hasOtherFloor\n\t\t\t\t\t\t\t\t&& !mMyLocationFloor\n\t\t\t\t\t\t\t\t\t\t.equals(floorInfo.getName())) {\n\t\t\t\t\t\t\thasOtherFloor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tgoodsMap.put(goods.getShelfId(), goods);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}",
"@Override\n public void onResume() {\n super.onResume();\n mMap.onResume();\n }",
"@Override\n public void onMapLoaded() {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setMaxZoomPreference(15);\n //code added on 24/10/18 12:33 am\n try {\n boolean isSuccess = googleMap.setMapStyle(\n MapStyleOptions.loadRawResourceStyle(this, R.raw.uber_style_map)\n );\n if (!isSuccess)\n Log.e(\"ERROR\", \"Map style Load failed\");\n } catch (Resources.NotFoundException ex) {\n ex.printStackTrace();\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n fb();\n\n }",
"private void initializeMap() {\n // - Map -\n map = (MapView) this.findViewById(R.id.map);\n //map.setBuiltInZoomControls(true);\n map.setMultiTouchControls(true);\n map.setMinZoomLevel(16);\n // Tiles for the map, can be changed\n map.setTileSource(TileSourceFactory.MAPNIK);\n\n // - Map controller -\n IMapController mapController = map.getController();\n mapController.setZoom(19);\n\n // - Map overlays -\n CustomResourceProxy crp = new CustomResourceProxy(getApplicationContext());\n currentLocationOverlay = new DirectedLocationOverlay(this, crp);\n\n map.getOverlays().add(currentLocationOverlay);\n\n // - Location -\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n if(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER));\n }\n else if (locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));\n }\n else {\n currentLocationOverlay.setEnabled(false);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap){\n mMap = googleMap;\n }",
"@Override\n public void onResume() {\n super.onResume();\n MaintenanceMapView.onResume();\n }",
"@Override\n public void onMapLoaded() {\n mMapStatus = new MapStatus.Builder().zoom(9).build();\n mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(mMapStatus));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n bulidGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }\n\n mMap.setInfoWindowAdapter(this);\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n loadImageFlag = false;\n return false;\n }\n });\n }",
"private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n }",
"private void initViews(){\n map = findViewById(R.id.map);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Set the long click listener as a way to exit the map.\n mMap.setOnMapLongClickListener(this);\n\n if (mapType == MapType.MOTOR_FOUR_POINT) {\n if (listLeg.size() == 1) {\n MotorMapUtils.drawMapWithTwoPoint(mMap, listLeg);\n } else if (listLeg.size() > 1) {\n MotorMapUtils.drawMapWithFourPoint(mMap, listLeg);\n }\n } else if (mapType == MapType.BUS_TWO_POINT) {\n mMap.clear();\n BusMapUtils.drawMapWithTwoPoint(mMap, result);\n } else if (mapType == MapType.BUS_FOUR_POINT) {\n mMap.clear();\n BusMapUtils.drawMapWithFourPoint(mMap, journey);\n }\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n googleMap.getUiSettings().setZoomControlsEnabled(true);\n //Get our mapManager singleton and give it the context\n mapManager = new MapManager(getActivity(), mMap);\n /*mapManager.drawAllTrainLines();\n mapManager.setMap(mMap);*/\n\n //Set up gpsManager with context\n gpsManager = GPSManager.getInstance();\n //Get the location manager service\n locationManager = (LocationManager) getActivity().getSystemService(getActivity().LOCATION_SERVICE);\n\n //Get the permissions for the location service if needed\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED || ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n PermissionConstants.LOCATION_TrackerFragment.getValue());\n } else {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, gpsManager);\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, gpsManager);\n gpsManager.InitLocationManager(getActivity(), locationManager, mapManager);\n Log.v(\"Tracker\", \"No Permissions Required, hooked up gpsManager\");\n\n }\n mapManager.moveCameraToMe();\n new LoadMapLines(mMap, mapManager).execute();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n TripTabFragment.getInstance().setGoogleMap(googleMap);\n TripTabFragment.getInstance().setTv_trip_distance(tv_trip_distance);\n TripTabFragment.getInstance().setTv_trip_deduction(tv_trip_deduction);\n getLocations();\n if (PermissionUtil.checkLocationPermission(tripTabFragment.getMainActivity())) {\n googleMap.setMyLocationEnabled(true);\n googleMap.getUiSettings().setAllGesturesEnabled(false);\n\n //Set Zoom right when the map is showed\n try {\n LocationManager locationManager = (LocationManager) tripTabFragment.getContext().getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n Location location = locationManager.getLastKnownLocation(locationManager\n .getBestProvider(criteria, false));\n\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(new LatLng(location.getLatitude(), location.getLongitude()))\n .zoom(15)\n .build();\n googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n } catch (NullPointerException e) {\n e.printStackTrace();\n Timber.e(e, \"method=onMapReady error=Error when setting map zoom\");\n }\n }\n }",
"private void initilizeMap() {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n Context ctx = getApplicationContext();\n Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));\n //setting this before the layout is inflated is a good idea\n //it 'should' ensure that the map has a writable location for the map cache, even without permissions\n //if no tiles are displayed, you can try overriding the cache path using Configuration.getInstance().setCachePath\n //see also StorageUtils\n //note, the load method also sets the HTTP User Agent to your application's package name, abusing osm's\n //tile servers will get you banned based on this string\n\n //inflate and create the map\n\n\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n //Introduction\n super.onCreate(savedInstanceState);\n Configuration.getInstance().setUserAgentValue(\"OBP_Tuto/1.0\");\n setContentView(R.layout.activity_main);\n map = (MapView) findViewById(R.id.map);\n map.getZoomController().setVisibility(CustomZoomButtonsController.Visibility.SHOW_AND_FADEOUT);\n map.setMultiTouchControls(true);\n GeoPoint startPoint = new GeoPoint(48.13, -1.63);\n IMapController mapController = map.getController();\n mapController.setZoom(10.0);\n mapController.setCenter(startPoint);\n\n //0. Using the Marker overlay\n Marker startMarker = new Marker(map);\n startMarker.setPosition(startPoint);\n startMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM);\n startMarker.setTitle(\"Start point\");\n //startMarker.setIcon(getResources().getDrawable(R.drawable.marker_kml_point).mutate());\n //startMarker.setImage(getResources().getDrawable(R.drawable.ic_launcher));\n //startMarker.setInfoWindow(new MarkerInfoWindow(R.layout.bonuspack_bubble_black, map));\n startMarker.setDraggable(true);\n startMarker.setOnMarkerDragListener(new OnMarkerDragListenerDrawer());\n map.getOverlays().add(startMarker);\n\n NominatimPOIProvider poiProvider = new NominatimPOIProvider(\"OSMBonusPackTutoUserAgent\");\n ArrayList<POI> pois = poiProvider.getPOICloseTo(startPoint,\"cinema\" , 50, 0.1);\n FolderOverlay poiMarkers = new FolderOverlay(this);\n map.getOverlays().add(poiMarkers);\n\n Drawable poiIcon = getResources().getDrawable(R.drawable.marker_poi_default);\n for (POI poi:pois){\n Marker poiMarker = new Marker(map);\n poiMarker.setTitle(poi.mType);\n poiMarker.setSnippet(poi.mDescription);\n poiMarker.setPosition(poi.mLocation);\n poiMarker.setIcon(poiIcon);\n if (poi.mThumbnail != null){\n poiMarker.setImage(new BitmapDrawable(poi.mThumbnail));\n }\n poiMarkers.add(poiMarker);\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n myMap = googleMap;\n setMap();\n try{\n myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lastKnown.getLatitude(), lastKnown.getLongitude()), 18.0f));\n }catch (NullPointerException e){\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady()\");\n map = googleMap;\n map.setOnMapClickListener(this);\n }",
"private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (servicesOK() /*&& initMap()*/) {\n try {\n\n /*MarkerOptions options = new MarkerOptions()\n .title(getString(R.string.landon_hotel) + \", \" + city)\n .position(new LatLng(lat, lng));\n mMap.addMarker(options);*/\n //onMapReady(mMap);\n\n\n LatLng zoom = new LatLng(-2.982996, 104.732918);\n\n// mMap.addMarker(new MarkerOptions().position(zoom).title(\"Marker in Palembang\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n mMap.getUiSettings().setRotateGesturesEnabled(false);\n mMap.getUiSettings().setTiltGesturesEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n//\n mMap.setTrafficEnabled(true);\n\n Log.i(\"CEKDATA\",\"BEGINNING\");\n mMap.moveCamera(CameraUpdateFactory.newLatLng(zoom));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(14), 2000, null);\n Log.i(\"CEKDATA\",\"Finishing\");\n\n } /*catch (IOException e) {\n Toast.makeText(this, getString(R.string.error_finding_hotel), Toast.LENGTH_SHORT).show();\n }*/ catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(\"Check this->\", e.getMessage());\n }\n\n\n api.bukan_parkir(googleMap, this);\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //boton de ir a localizacion actual, no se muestra si el usuario no dio permiso de usar localizacion del dispositivo\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(false);\n }\n else\n mMap.setMyLocationEnabled(true);\n\n //controles de zoom e inclinacion de camara con dos dedos\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setTiltGesturesEnabled(true);\n //la vista se centra en el centro de Peru\n Object centroPeru = CameraUpdateFactory.newLatLngZoom(new LatLng(-9.190207, -75.015111), 4.8F);\n mMap.animateCamera((CameraUpdate)centroPeru,1000,null);\n\n googleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener()\n {\n public void onMapClick(LatLng paramAnonymousLatLng)\n {\n mMap.clear();\n MarkerOptions localMarkerOptions = new MarkerOptions().position(new LatLng(paramAnonymousLatLng.latitude, paramAnonymousLatLng.longitude)).title(\"Marcador\");\n mMap.addMarker(localMarkerOptions);\n lat = paramAnonymousLatLng.latitude;\n lng = paramAnonymousLatLng.longitude;\n }\n });\n\n\n //LLAMAS A LA BD, RECOLECTAS LOS DATOS, DENTRO DEL FOR mMap.addMarker PARA CADA UNO\n //FirebaseDatabase.getInstance();\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }",
"@Override\n public void onMapReady(GoogleMap mMap) {\n mMap.setOnMarkerClickListener(this);\n mapready = true;\n googleMap = mMap;\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n draw();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n }",
"private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_set_map_details);\n\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(true);\n }\n\n MapFragment mapFragment = (MapFragment)getSupportFragmentManager().findFragmentById(R.id.map_fragment_set_details);\n if (mapFragment == null) {\n mapFragment = MapFragment.newInstance();\n getSupportFragmentManager().beginTransaction().add(R.id.map_fragment_set_details, mapFragment).commit();\n }\n mapFragment.getMapAsync(this); // 비동기적 NaverMap 객체 획득\n\n // 실종지점 및 중심지점 획득\n Intent intent = getIntent();\n LatLng missingCoord = new LatLng(\n intent.getDoubleExtra(\"missing_lat\", 0),\n intent.getDoubleExtra(\"missing_lng\", 0)\n );\n\n centerCoord = new LatLng(\n intent.getDoubleExtra(\"center_lat\", 0),\n intent.getDoubleExtra(\"center_lng\", 0)\n );\n\n\n mapInfo = new MapInfo();\n mapInfo.setMissing_lat(missingCoord.latitude);\n mapInfo.setMissing_lng(missingCoord.longitude);\n mapInfo.setCenter_lat(centerCoord.latitude);\n mapInfo.setCenter_lng(centerCoord.longitude);\n mapInfo.setBearing(intent.getDoubleExtra(\"bearing\", 0));\n\n // 실종지점 마커 생성\n missingPoint = new Marker();\n missingPoint.setIcon(MarkerIcons.BLACK);\n missingPoint.setIconTintColor(Color.RED);\n missingPoint.setPosition(missingCoord);\n missingPoint.setCaptionText(\"실종 지점\");\n missingPoint.setCaptionColor(Color.RED);\n\n district = createRedPolygon();\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n thisMap = googleMap;\n thisMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n private float currentZoom = -1;\n @Override\n public void onCameraChange(CameraPosition camera) {\n if (camera.zoom != currentZoom){\n currentZoom = camera.zoom;\n retrieveListings(googleMap);\n }\n }\n });\n\n // Add gestures\n googleMap.getUiSettings().setZoomControlsEnabled(true);\n googleMap.getUiSettings().setScrollGesturesEnabled(true);\n googleMap.getUiSettings().setRotateGesturesEnabled(true);\n\n // Make markers clickable\n googleMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n // Triggered when user click any marker on the map\n Listing listing = (Listing) marker.getTag();\n goToDetailedListingScreen(listing);\n return false;\n }\n });\n\n // Retrieve user's current location and set it on the map\n LatLng currentLocation = LocationUtils.getCoordinates(getContext(), getActivity());\n googleMap.addMarker(new MarkerOptions().position(currentLocation).title(\"Your current location\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, 15));\n\n // Retrieve surrounding listings\n retrieveListings(googleMap);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap gMap) {\n gMap.getUiSettings().setMapToolbarEnabled(false);\n gMap.addMarker(new MarkerOptions().position(fac.getLoc()));\n gMap.moveCamera(CameraUpdateFactory.newLatLngZoom(fac.getLoc(), 15));\n map.onResume();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n// MapContainer = (LinearLayout) findViewById(R.id.testampmap);\n\n// if (USE_XML_LAYOUT) {\n// setContentView(R.layout.activity_map);\n//\n//// mMapView = (NMapView) findViewById(R.id.mapView);\n// }\n\n\n //네이버 지도 MapView를 생성해준다.\n mMapView = new NMapView(this);\n //지도에서 ZoomControll을 보여준다\n mMapView.setBuiltInZoomControls(true, null);\n //네이버 OPEN API 사이트에서 할당받은 KEY를 입력하여 준다.\n mMapView.setApiKey(API_KEY);\n //이 페이지의 레이아웃을 네이버 MapView로 설정해준다.\n// setContentView(mMapView);\n setContentView(R.layout.activity_map);\n mLinearLayout = (LinearLayout)findViewById(R.id.mapmap);\n mLinearLayout.addView(mMapView);\n //네이버 지도의 클릭이벤트를 처리 하도록한다.\n mMapView.setClickable(true);\n //맵의 상태가 변할때 이메소드를 탄다.\n mMapView.setOnMapStateChangeListener(new NMapView.OnMapStateChangeListener() {\n public void onZoomLevelChange(NMapView arg0, int arg1) {\n\n }\n\n public void onMapInitHandler(NMapView arg0, NMapError arg1) {\n\n if (arg1 == null) {\n // 표시해줄 위치\n mMapController.setMapCenter(new NGeoPoint(126.978371, 37.5666091), 11);\n } else {\n Toast.makeText(getApplicationContext(), arg1.toString(), Toast.LENGTH_SHORT).show();\n }\n }\n\n public void onMapCenterChangeFine(NMapView arg0) {\n\n }\n\n public void onMapCenterChange(NMapView arg0, NGeoPoint arg1) {\n\n }\n\n public void onAnimationStateChange(NMapView arg0, int arg1, int arg2) {\n\n }\n });\n //맵뷰의 이벤트리스너의 정의.\n mMapView.setOnMapViewTouchEventListener(new NMapView.OnMapViewTouchEventListener() {\n\n public void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\n }\n\n @Override\n public void onTouchUp(NMapView nMapView, MotionEvent motionEvent) {\n\n }\n\n public void onSingleTapUp(NMapView arg0, MotionEvent arg1) {\n\n }\n\n public void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\n }\n\n public void onLongPressCanceled(NMapView arg0) {\n\n }\n\n public void onLongPress(NMapView arg0, MotionEvent arg1) {\n\n }\n });\n mMapController = mMapView.getMapController();\n super.setMapDataProviderListener(new OnDataProviderListener() {\n\n public void onReverseGeocoderResponse(NMapPlacemark arg0, NMapError arg1) {\n\n }\n });\n }",
"private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setContentView(R.layout.map);\n\t mCtx = Map.this;\n\t \n\t \n\t /**\n\t * Setting a Map\n\t */\n\t mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n\t mMap.setMyLocationEnabled(true);\n//\t mMap.setTrafficEnabled(true);\n\t setupMapView();\n\t \n\t // Finding the photos with GPS and Init AreaWithPic\n\t InitArea();\n\t \n\t mAreaList = AreaWithPic.areaList;\n\t int idx = 0;\n\t LatLng mLoc;\n\t \n\t while(idx < mAreaList.size()) {\n\t \t\n\t \tmLoc = mAreaList.get(idx).loc;\n\t \tString memo = mAreaList.get(idx).addr;\n\t \t//memo에 사진 제목이 들어갔으면 하는데 제목은 사진을 찍을 때 제공해야 한다.\n\t \t\n\t \tmMap.addMarker(new MarkerOptions()\n\t \t\t\t\t\t.position(mLoc)\n\t \t\t\t\t\t.title(memo)\n\t \t\t\t\t\t);\n\t \tidx++;\n\t }\n\t \n\t mMap.setInfoWindowAdapter(new InfoWindowAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic View getInfoContents(Marker arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic View getInfoWindow(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tView v = getLayoutInflater().inflate(R.layout.map_info_window, null);\n\n // Getting reference to the TextView to set title\n TextView memo = (TextView) v.findViewById(R.id.memo);\n ImageView imgV = (ImageView) v.findViewById(R.id.photo);\n\n memo.setText(marker.getTitle());\n\n \n /**\n * marker는 생성되는 순서대로 m0, m1, m2... m 뒤에 붙는 숫자들은 마커의 인덱스이고 이 인덱스는 \n * areaList의 인덱스와 같으므로 마커의 인덱스를 파싱해서 areaList에 그 인덱스로 접근하면 지역정보를 얻을 수 있다.\n */\n String id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파.\n // LatLng l = marker.getPosition();\n \n String mPath = mAreaList.get(mIdx).pathOfPic.get(0); // 해당 위치에 저장된 많은 사진중 첫번째 사진주\n Bitmap bitm = decodeBitmapFromStringpath(mPath, 100, 100);\n imgV.setImageBitmap(bitm);\n// imgV.setImageURI(Uri.parse(mPath));\n // Returning the view containing InfoWindow contents\n return v;\n\t\t\t}\n\t });\n\t // TODO Auto-generated method stub\n\t \n\t mMap.setOnInfoWindowClickListener(new OnInfoWindowClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.e(\"map\", \"at InfoWindowClisck\");\n\t\t\t\t\n\t\t\t\tString id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파\n\t\t\t\tArrayList<String> _pathOfPic = mAreaList.get(mIdx).pathOfPic;\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(\"android.intent.action.CUSTOM_ALBUM\");\n\t\t\t\tintent.putStringArrayListExtra(\"pathOfPic\", _pathOfPic);\n\t\t\t\t\n\t\t\t\tmCtx.startActivity(intent);\t\n\t\t\t\t\n\t\t\t}\n\t \t\n\t });\n\t}",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapStyle(new MapStyleOptions(getResources().getString(R.string.style_json)));\r\n\r\n LocationListener locationListener = new LocationListener() {\r\n public void onLocationChanged(Location location) {\r\n LatLng us = new LatLng(location.getLatitude(), location.getLongitude());\r\n locationMarker.setPosition(us);\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(us));\r\n\r\n float[] lats = new float[4];\r\n float[] longs = new float[4];\r\n\r\n lats[0] = Math.abs((float)bounds[0]);\r\n lats[1] = Math.abs((float)bounds[2]);\r\n lats[2] = Math.abs((float)bounds[4]);\r\n lats[3] = Math.abs((float)bounds[6]);\r\n longs[0] = Math.abs((float)bounds[1]);\r\n longs[1] = Math.abs((float)bounds[3]);\r\n longs[2] = Math.abs((float)bounds[5]);\r\n longs[3] = Math.abs((float)bounds[7]);\r\n }\r\n\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n }\r\n\r\n public void onProviderEnabled(String provider) {\r\n }\r\n\r\n public void onProviderDisabled(String provider) {\r\n }\r\n };\r\n\r\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\r\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\r\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n // TODO: Consider calling\r\n return;\r\n }\r\n\r\n if(team == \"hunter\") {\r\n findViewById(R.id.caught_button).setVisibility(INVISIBLE);\r\n findViewById(R.id.break_button).setVisibility(INVISIBLE);\r\n }\r\n else findViewById(R.id.caught_button).setVisibility(View.VISIBLE);\r\n\r\n\r\n\r\n Location lastKnownLocation = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n LatLng start = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\r\n locationMarker = mMap.addMarker(new MarkerOptions().position(start).title(\"You are here\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(start, 17.0f));\r\n mMap.addPolygon(new PolygonOptions().clickable(true).strokeColor(Color.rgb(52,152,219)).fillColor(Color.argb(25,52,152,219)).add\r\n (new LatLng(bounds[0], bounds[1]),\r\n new LatLng(bounds[2], bounds[3]),\r\n new LatLng(bounds[4], bounds[5]),\r\n new LatLng(bounds[6], bounds[7])));\r\n\r\n /*while(gameRunning) {\r\n LatLng us = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\r\n locationMarker.setPosition(us);\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(us));\r\n try {\r\n Thread.sleep(5000); //1000 milliseconds is one second.\r\n } catch(InterruptedException ex) {\r\n Thread.currentThread().interrupt();\r\n }\r\n }*/\r\n\r\n }",
"private void loadAirportAndMap(String venueId) {\n final RelativeLayout rl = new RelativeLayout(mContext);\n\n AirportDatabase.OnLoadAirportAndMapListeners listeners = new AirportDatabase.OnLoadAirportAndMapListeners();\n listeners.loadedInitialViewListener = new AirportDatabase.OnLoadedInitialViewListener() {\n @Override public void onLoadedInitialView(View view) {\n ViewGroup parent = (ViewGroup) view.getParent();\n if (parent != null) parent.removeView(view);\n\n view.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\n rl.addView(view);\n setContentView(rl);\n }\n };\n listeners.loadCompletedListener = new AirportDatabase.OnLoadCompletedListener() {\n\n @Override public void onLoadCompleted(Airport _airport, Map _map, final MapView _mapView, Floor floor, Marker marker) {\n mAirport = _airport;\n mMapView = _mapView;\n // Note: Themes should be added before the MapView is ready. This will prevent the\n // undesirable and noticeable visual changes to the Presentation Layer for your application\n // when overriding the default user interface.\n setMapViewTheme(_mapView);\n\n attachFunctionalityToMapView(_mapView);\n }\n };\n listeners.loadFailedListener = new AirportDatabase.OnLoadFailedListener() {\n @Override\n public void onLoadFailed(String exceptionMessage) {}\n };\n\n listeners.loadProgressListener = new AirportDatabase.OnLoadProgressListener() {\n @Override\n public void onLoadProgress(Integer percentComplete) {}\n };\n\n mAirportDatabase.loadAirportAndMap(venueId, null, listeners);\n }",
"public void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.farmMap)).getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n setUpMap();\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n Log.v(\"contourrrr\", \"\" + contour);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n if (mandiArray.size() < 1) {\n if (mMap != null) {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n }\n\n\n ArrayAdapter<String> chooseYourFarmSpiner = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, allFarmsArray);\n chooseYourFarmSpiner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n farmSpinner.setAdapter(chooseYourFarmSpiner);\n\n farmSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if (i > 0) {\n String conto = allFarmsContour.get(i - 1);\n if (conto != null) {\n if (mMap != null) {\n mMap.clear();\n\n }\n points = new ArrayList<LatLng>();\n List<String> l_List = Arrays.asList(conto.split(\"-\"));\n Double lat1 = null;\n Double lon1 =null;\n\n /* Double lat1 = Double.valueOf(l_List.get(0));\n Double lon1 = Double.valueOf(l_List.get(l_List.size() - 1));\n points.add(new LatLng(lat1, lon1));*/\n\n for (int j = 0; j < l_List.size(); j++) {\n String currentString = l_List.get(j);\n if (currentString != null) {\n String[] separated = currentString.split(\",\");\n if (separated.length>1) {\n String la = separated[0];\n String lo = separated[1];\n\n lat1=Double.parseDouble(la);\n lon1=Double.parseDouble(lo);\n\n points.add(new LatLng(Double.valueOf(la), Double.valueOf(lo)));\n\n Log.v(\"points\",la+\",\"+lo);\n }\n }\n }\n\n if (lat1 != null) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat1, lon1), 19.0f));\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",lat1+\"\");\n ed.putString(\"lon\",lon1+\"\");\n ed.apply();\n\n } else {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(latitude), Double.valueOf(longitude)), 13.0f));\n Log.v(\"latlon2\", lat1 + \"---\" + lon1);\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",latitude+\"\");\n ed.putString(\"lon\",longitude+\"\");\n ed.apply();\n }\n if (mMap != null) {\n mMap.clear();\n setUpMap();\n }\n }\n } else {\n\n if (mMap != null) {\n mMap.clear();\n\n }\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n // Setting a custom info window adapter for the google map\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n // Use default InfoWindow frame\n @Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n // Defines the contents of the InfoWindow\n @Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }\n });\n\n\n }\n });\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getCases();\n mMap.setMyLocationEnabled(true);\n mMap.setOnMarkerClickListener(this);\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }",
"private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n setUpMap();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"@Override\n public void onFinish() {\n if (!mMapConfiguration.isStaticMap()) {\n mMapDataLoader.onMapCameraChange();\n }\n\n // After the animation, if we want a static map, we take a snapshot and display it\n // We put the flag static to true to disable all map features\n if (mMapConfiguration != null && mMap != null && mMapConfiguration.isStaticMap()) {\n\n // We need to re-trigger the map loaded callback to wait for the map to completely load after the animation\n mMap.setOnMapLoadedCallback(new OnMapLoadedCallback() {\n\n @Override\n public void onMapLoaded() {\n\n mMap.snapshot(new SnapshotReadyCallback() {\n\n @Override\n public void onSnapshotReady(Bitmap arg0) {\n // Flag static to true\n mIsMapStatic = true;\n\n // Creating an imageview with the snapshot\n ImageView imageView = new ImageView(getActivity());\n imageView.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,\n LayoutParams.WRAP_CONTENT));\n imageView.setImageBitmap(arg0);\n\n // Removing all the views (dynamic map) and adding the imageview\n assert getView() != null;\n ((ViewGroup) getView()).removeAllViews();\n ((ViewGroup) getView()).addView(imageView);\n\n mMapDataLoader.onMapCameraChange();\n }\n });\n }\n });\n\n }\n }",
"private void initMap() {\n Log.wtf(TAG, \"initMap() has been instantiated\");\n\n Log.d(TAG, \"initMap: initializing the map...\");\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n mMapView.getMapAsync(this);\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n SupportMapFragment mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));\n mapFragment.getMapAsync(this);\n mMap = mapFragment.getMap();\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n mMap2 = googleMap;\n mMap3 = googleMap;\n mMap4 = googleMap;\n mMap5 = googleMap;\n mMap6 = googleMap;\n mMap7 = googleMap;\n mMap8 = googleMap;\n\n\n configuracion =mMap.getUiSettings();\n configuracion.setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n LatLng med = new LatLng(5.5986029, -75.8189893);\n LatLng med2 = new LatLng(5.5963072,-75.8130777);\n LatLng med3 = new LatLng(5.5936377, -75.8126003);\n LatLng med4 = new LatLng(5.5749407, -75.7907993);\n LatLng med5 = new LatLng(5.5646469, -75.7912391);\n LatLng med6 = new LatLng(5.5457995, -75.7945168);\n LatLng med7 = new LatLng(5.5391573, -75.8043015);\n LatLng med8 = new LatLng(5.5305395, -75.8031642);\n\n\n final Marker medellin = mMap.addMarker(new MarkerOptions().position(med).title(getString(R.string.ventanas1)));\n final Marker medellin2 = mMap2.addMarker(new MarkerOptions().position(med2).title(getString(R.string.ventanas2)));\n final Marker medellin3 = mMap3.addMarker(new MarkerOptions().position(med3).title(getString(R.string.ventanas3)));\n final Marker medellin4 = mMap4.addMarker(new MarkerOptions().position(med4).title(getString(R.string.ventanas4)));\n final Marker medellin5 = mMap5.addMarker(new MarkerOptions().position(med5).title(getString(R.string.ventanas5)));\n final Marker medellin6 = mMap6.addMarker(new MarkerOptions().position(med6).title(getString(R.string.ventanas6)));\n final Marker medellin7 = mMap7.addMarker(new MarkerOptions().position(med7).title(getString(R.string.ventanas7)));\n final Marker medellin8 = mMap8.addMarker(new MarkerOptions().position(med8).title(getString(R.string.ventanas8)));\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(med, 12));\n mMap2.moveCamera(CameraUpdateFactory.newLatLngZoom(med2, 12));\n mMap3.moveCamera(CameraUpdateFactory.newLatLngZoom(med3, 12));\n mMap4.moveCamera(CameraUpdateFactory.newLatLngZoom(med4, 12));\n mMap5.moveCamera(CameraUpdateFactory.newLatLngZoom(med5, 12));\n mMap6.moveCamera(CameraUpdateFactory.newLatLngZoom(med6, 12));\n mMap7.moveCamera(CameraUpdateFactory.newLatLngZoom(med7, 12));\n mMap8.moveCamera(CameraUpdateFactory.newLatLngZoom(med8, 12));\n mMap.addPolyline(new PolylineOptions().geodesic(true)\n .add(new LatLng( 5.5985815 , -75.8189195 ))\n .add(new LatLng( 5.5975885 , -75.8166182 ))\n .add(new LatLng( 5.5960936 , -75.8130026 ))\n .add(new LatLng( 5.5957733 , -75.8127344 ))\n .add(new LatLng( 5.5937338 , -75.8126485 ))\n .add(new LatLng( 5.5927835 , -75.8132172 ))\n .add(new LatLng( 5.5918866 , -75.8127987 ))\n .add(new LatLng( 5.5912352 , -75.8127666 ))\n .add(new LatLng( 5.5893986 , -75.8110714 ))\n .add(new LatLng( 5.5885231 , -75.8110070 ))\n .add(new LatLng( 5.5888861 , -75.8095479 ))\n .add(new LatLng( 5.5902956 , -75.8079815 ))\n .add(new LatLng( 5.5909149 , -75.8080673 ))\n .add(new LatLng( 5.5915128 , -75.8073592 ))\n .add(new LatLng( 5.5918545 , -75.8078313 ))\n .add(new LatLng( 5.5923030 , -75.8079815 ))\n .add(new LatLng( 5.5923244 , -75.8068013 ))\n .add(new LatLng( 5.5926020 , -75.8059430 ))\n .add(new LatLng( 5.5915342 , -75.8057284 ))\n .add(new LatLng( 5.5906159 , -75.8050203 ))\n .add(new LatLng( 5.5903596 , -75.8037329 ))\n .add(new LatLng( 5.5898471 , -75.8031428 ))\n .add(new LatLng( 5.5896336 , -75.8027136 ))\n .add(new LatLng( 5.5879785 , -75.8015442 ))\n .add(new LatLng( 5.5874019 , -75.8011794 ))\n .add(new LatLng( 5.5868360 , -75.7985830 ))\n .add(new LatLng( 5.5854051 , -75.7966733 ))\n .add(new LatLng( 5.5851702 , -75.7962441 ))\n .add(new LatLng( 5.5847217 , -75.7942271 ))\n .add(new LatLng( 5.5847644 , -75.7931542 ))\n .add(new LatLng( 5.5843800 , -75.7911801 ))\n .add(new LatLng( 5.5845509 , -75.7902789 ))\n .add(new LatLng( 5.5842305 , -75.7894850 ))\n .add(new LatLng( 5.5835045 , -75.7887983 ))\n .add(new LatLng( 5.5825434 , -75.7871032 ))\n .add(new LatLng( 5.5823299 , -75.7861590 ))\n .add(new LatLng( 5.5821590 , -75.7850862 ))\n .add(new LatLng( 5.5813689 , -75.7821250 ))\n .add(new LatLng( 5.5813475 , -75.7805371 ))\n .add(new LatLng( 5.5813048 , -75.7790565 ))\n .add(new LatLng( 5.5813475 , -75.7774687 ))\n .add(new LatLng( 5.5807922 , -75.7771468 ))\n .add(new LatLng( 5.5801943 , -75.7785416 ))\n .add(new LatLng( 5.5789770 , -75.7780051 ))\n .add(new LatLng( 5.5781014 , -75.7763529 ))\n .add(new LatLng( 5.5773112 , -75.7762671 ))\n .add(new LatLng( 5.5766492 , -75.7756662 ))\n .add(new LatLng( 5.5760085 , -75.7753444 ))\n .add(new LatLng( 5.5745670 , -75.7738262 ))\n .add(new LatLng( 5.5729546 , -75.7729304 ))\n .add(new LatLng( 5.5729332 , -75.7734239 ))\n .add(new LatLng( 5.5728478 , -75.7743251 ))\n .add(new LatLng( 5.5735419 , -75.7747972 ))\n .add(new LatLng( 5.5737875 , -75.7752693 ))\n .add(new LatLng( 5.5738729 , -75.7764816 ))\n .add(new LatLng( 5.5744708 , -75.7764173 ))\n .add(new LatLng( 5.5746631 , -75.7779086 ))\n .add(new LatLng( 5.5753358 , -75.7794267 ))\n .add(new LatLng( 5.5761793 , -75.7801294 ))\n .add(new LatLng( 5.5760298 , -75.7809448 ))\n .add(new LatLng( 5.5761153 , -75.7816315 ))\n .add(new LatLng( 5.5759444 , -75.7829189 ))\n .add(new LatLng( 5.5764143 , -75.7844424 ))\n .add(new LatLng( 5.5754959 , -75.7865667 ))\n .add(new LatLng( 5.5748553 , -75.7888842 ))\n .add(new LatLng( 5.5749941 , -75.7906866 ))\n .add(new LatLng( 5.5720576 , -75.7914162 ))\n .add(new LatLng( 5.5712888 , -75.7906222 ))\n .add(new LatLng( 5.5705413 , -75.7906866 ))\n .add(new LatLng( 5.5700074 , -75.7903647 ))\n .add(new LatLng( 5.5687687 , -75.7913518 ))\n .add(new LatLng( 5.5677650 , -75.7907295 ))\n .add(new LatLng( 5.5668253 , -75.7910728 ))\n .add(new LatLng( 5.5664409 , -75.7907295 ))\n .add(new LatLng( 5.5656293 , -75.7911587 ))\n .add(new LatLng( 5.5646896 , -75.7910299 ))\n .add(new LatLng( 5.5659283 , -75.7927036 ))\n .add(new LatLng( 5.5660992 , -75.7936478 ))\n .add(new LatLng( 5.5655012 , -75.7942915 ))\n .add(new LatLng( 5.5647323 , -75.7943344 ))\n .add(new LatLng( 5.5619133 , -75.7972527 ))\n .add(new LatLng( 5.5614434 , -75.7990551 ))\n .add(new LatLng( 5.5608454 , -75.7991409 ))\n .add(new LatLng( 5.5602902 , -75.7984972 ))\n .add(new LatLng( 5.5588806 , -75.7975531 ))\n .add(new LatLng( 5.5561469 , -75.7968664 ))\n .add(new LatLng( 5.5561469 , -75.7953644 ))\n .add(new LatLng( 5.5536268 , -75.7944202 ))\n .add(new LatLng( 5.5514911 , -75.7936478 ))\n .add(new LatLng( 5.5500816 , -75.7948065 ))\n .add(new LatLng( 5.5493981 , -75.7944202 ))\n .add(new LatLng( 5.5457674 , -75.7934332 ))\n .add(new LatLng( 5.5453403 , -75.7951498 ))\n .add(new LatLng( 5.5457674 , -75.7961369 ))\n .add(new LatLng( 5.5460451 , -75.7968235 ))\n .add(new LatLng( 5.5468139 , -75.7983255 ))\n .add(new LatLng( 5.5453616 , -75.7986689 ))\n .add(new LatLng( 5.5455966 , -75.7996988 ))\n .add(new LatLng( 5.5464081 , -75.8006215 ))\n .add(new LatLng( 5.5458956 , -75.8013296 ))\n .add(new LatLng( 5.5463227 , -75.8022308 ))\n .add(new LatLng( 5.5451053 , -75.8032823 ))\n .add(new LatLng( 5.5449345 , -75.8037865 ))\n .add(new LatLng( 5.5445501 , -75.8039045 ))\n .add(new LatLng( 5.5443792 , -75.8036900 ))\n .add(new LatLng( 5.5449345 , -75.8028531 ))\n .add(new LatLng( 5.5452121 , -75.8025956 ))\n .add(new LatLng( 5.5449986 , -75.8023596 ))\n .add(new LatLng( 5.5448918 , -75.8023596 ))\n .add(new LatLng( 5.5445073 , -75.8025956 ))\n .add(new LatLng( 5.5431298 , -75.8041513 ))\n .add(new LatLng( 5.5423930 , -75.8043337 ))\n .add(new LatLng( 5.5426493 , -75.8036685 ))\n .add(new LatLng( 5.5430123 , -75.8031321 ))\n .add(new LatLng( 5.5436744 , -75.8024669 ))\n .add(new LatLng( 5.5428628 , -75.8022952 ))\n .add(new LatLng( 5.5419712 , -75.8028370 ))\n .add(new LatLng( 5.5408232 , -75.8030784 ))\n .add(new LatLng( 5.5403427 , -75.8016300 ))\n .add(new LatLng( 5.5402359 , -75.8005357 ))\n .add(new LatLng( 5.5402572 , -75.7992053 ))\n .add(new LatLng( 5.5403640 , -75.7983899 ))\n .add(new LatLng( 5.5400223 , -75.7985616 ))\n .add(new LatLng( 5.5399155 , -75.7995915 ))\n .add(new LatLng( 5.5400437 , -75.8032823 ))\n .add(new LatLng( 5.5394136 , -75.8042479 ))\n .add(new LatLng( 5.5382283 , -75.8037114 ))\n .add(new LatLng( 5.5381215 , -75.8027458 ))\n .add(new LatLng( 5.5374808 , -75.8024025 ))\n .add(new LatLng( 5.5358149 , -75.8037758 ))\n .add(new LatLng( 5.5349606 , -75.8032179 ))\n .add(new LatLng( 5.5340849 , -75.8039474 ))\n .add(new LatLng( 5.5337005 , -75.8036900 ))\n .add(new LatLng( 5.5340208 , -75.8031750 ))\n .add(new LatLng( 5.5336791 , -75.8025098 ))\n .add(new LatLng( 5.5323976 , -75.8024883 ))\n .add(new LatLng( 5.5324350 , -75.8019519 ))\n .add(new LatLng( 5.5320960 , -75.8018446 ))\n .add(new LatLng( 5.5317569 , -75.8020806 ))\n .add(new LatLng( 5.5317356 , -75.8029604 ))\n .add(new LatLng( 5.5314579 , -75.8030999 ))\n .add(new LatLng( 5.5310414 , -75.8026814 ))\n .add(new LatLng( 5.5304968 , -75.8027995 ))\n .color(Color.BLUE)\n .width(5)\n\n );\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMaxZoomPreference(16);\n loginToFirebase();\n }",
"private void initializeMap() {\n if (googleMap == null) {\n googleMap = ((MapFragment) getFragmentManager().findFragmentById(\n R.id.map)).getMap();\n\n // check if map is created successfully or not\n if (googleMap == null) {\n Toast.makeText(getApplicationContext(),\n \"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n .show();\n }\n\n // Set Enable of My Location\n //googleMap.setMyLocationEnabled(true);\n\n // Setting a ChangeListener of my location for the Google Map\n //googleMap.setOnMyLocationChangeListener(mMLCListener);\n\n // Setting a ClickListener for the Google Map\n googleMap.setOnMapClickListener(mMCListener);\n\n // Set Enable of Zoom\n googleMap.getUiSettings().setZoomGesturesEnabled(true);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.getUiSettings().setMapToolbarEnabled(false);\n googleMap.getUiSettings().setZoomControlsEnabled(false);\n googleMap.getUiSettings().setCompassEnabled(false);\n googleMap.setPadding(0, 0, 0, ImageCreator.dpToPx(92));\n\n mapController = new GoogleMapController(\n googleMap,\n DependencyInjection.provideSettingsStorageService());\n mapController.addListener(this);\n presenter.onViewReady();\n Log.d(TAG, \"onMapReady: \");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n\n if(!continuar)\n {\n if (point != null)\n {\n point.remove();\n }\n if(search != null)\n {\n search.remove();\n }\n }else {\n if (point != null)\n {\n point.remove();\n }\n if(search != null)\n {\n search.remove();\n }\n }\n\n initView();\n\n latitud = latLng.latitude;\n longitud = latLng.longitude;\n point = mMap.addMarker(new MarkerOptions().position(latLng).title(geoCoderSearchLatLng(latLng)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n if(!continuar)\n {\n init = point;\n }else\n {\n finit = point;\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n\n stopLocationUpdates();\n }\n });\n\n LatLng sydney = new LatLng(latitud, longitud);\n point = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n }",
"@SuppressLint(\"MissingPermission\")\n @Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"MAP_FRAG\", \"MapCallback\");\n\n mMap = googleMap;\n\n Log.d(\"MAP\", mMap.toString());\n\n mMap.setPadding(0, 0, 0, 300);\n\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mMap.getUiSettings().setMapToolbarEnabled(false);\n\n mMap.addMarker(new MarkerOptions().position(new LatLng(Common.latitude, Common.longitude))\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_mark_red)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Common.latitude, Common.longitude), 15.0f));\n }",
"private void setUpMap() {\n mMap.getUiSettings().setZoomControlsEnabled(false);\n \n // Setting an info window adapter allows us to change the both the\n // contents and look of the\n // info window.\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater()));\n \n // Add lots of markers to the map.\n addMarkersToMap();\n \n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mGeocoder = new Geocoder(this, Locale.getDefault());\n\n updateScreenLoc(movement[0]);\n\n loadCrimes(movement[0]);\n //Start MockLocationManager and inject first point\n turnOnLocationManager();\n updateLocation(movement[0]);\n updateRadiusCircle();\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng israelLatLng = new LatLng(31.2175427,34.6095679);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(israelLatLng));\n init();\n }",
"public void notifyMapLoaded();",
"@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n\n // get the runner's path (serialized)\n String latLng = getIntent().getStringExtra(Session.LAT_LNG_EXTRA);\n List<LatLng> path = Session.getPathLatLng(latLng);\n\n if (path.size() < 2) {\n return;\n }\n\n addMarkers(path);\n addPolyLines(path);\n\n // set the center map fab here\n mCenterMapFab.setOnClickListener(view -> positionMapAtStart(path));\n\n positionMapAtStart(path);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View RootView = inflater.inflate(R.layout.fragment_view_map, container, false);\n nav_map = (BottomNavigationView)RootView.findViewById(R.id.map_nav);\n home_frame = (FrameLayout)RootView.findViewById(R.id.view_map);\n pm25MapFragment = new PM25MapFragment();\n psiMapFragment = new PSIMapFragment();\n gymMapFragment = new GymMapFragment();\n healthierCaterersMap = new HealthierCaterersMap();\n setFragment(pm25MapFragment);\n nav_map.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n switch(item.getItemId()){\n case R.id.nav_pm25 : {\n setFragment(pm25MapFragment);\n return true;\n }\n\n case R.id.nav_psi :{\n setFragment(psiMapFragment);\n return true;\n }\n\n case R.id.nav_gym :{\n setFragment(gymMapFragment);\n return true;\n }\n\n case R.id.nav_healthier_cateriers :{\n setFragment(healthierCaterersMap);\n return true;\n }\n\n\n default: return false;\n\n }\n }\n });\n return RootView;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_view_pod, container, false);\n\n mapFragment = (SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.pod_view_map);\n if (mapFragment == null){\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n mapFragment = SupportMapFragment.newInstance();\n fragmentTransaction.replace(R.id.pod_view_map,mapFragment).commit();\n }\n mapFragment.getMapAsync(this);\n\n\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"void initMap() {\n mapView = (MapView) view.findViewById(R.id.map);\n mapView.onCreate(savedInstanceState);\n mapView.getMapAsync(this);\n mapView.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n\n }\n });\n // Gets to GoogleMap from the MapView and does initialization stuff\n //map = mapView.getMap();\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(),\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n // Needs to call MapsInitializer before doing any CameraUpdateFactory calls\n MapsInitializer.initialize(this.getActivity());\n\n if (mMap != null) {\n if (latitude != null && latitude.length() != 0\n && longitude != null && longitude.length() != 0) {\n LatLng sydney = new LatLng(Double.parseDouble(latitude), Double.parseDouble(longitude));\n //add lat long object to add marker\n mMap.clear();\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Your Location\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney, 15.5f));\n } else {\n\n }\n }if (mMap1 != null) {\n if (latitude != null && latitude.length() != 0\n && longitude != null && longitude.length() != 0) {\n LatLng sydney = new LatLng(Double.parseDouble(latitude), Double.parseDouble(longitude));\n //add lat long object to add marker\n mMap1.clear();\n mMap1.addMarker(new MarkerOptions().position(sydney).title(\"Your Location\"));\n mMap1.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney, 15.5f));\n } else {\n\n }\n }\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_place, container, false);\n \n // map=((SupportMapFragment)getFragmentManager().findFragmentById(R.id.map)).getMap();\n mapView=(MapView)rootView.findViewById(R.id.map);\n mapView.onCreate(savedInstanceState);\n mapView.onResume();\n \n\n try {\n\t\t\t\tMapsInitializer.initialize(getActivity());\n\t\t\t\tmap=mapView.getMap();\n\t\t\t\t//setup();\n\t\t\t} catch (GooglePlayServicesNotAvailableException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n \n return rootView;\n\t}"
]
| [
"0.72283334",
"0.6816318",
"0.6740635",
"0.6695964",
"0.6695964",
"0.66837466",
"0.6598239",
"0.65209275",
"0.648679",
"0.64421064",
"0.6378333",
"0.6372866",
"0.63641286",
"0.63481516",
"0.63193715",
"0.631687",
"0.63137734",
"0.63065827",
"0.6300453",
"0.6252614",
"0.6251273",
"0.62365264",
"0.623616",
"0.62227327",
"0.6218593",
"0.62056345",
"0.6196847",
"0.6193216",
"0.6185644",
"0.61840916",
"0.6180026",
"0.61667544",
"0.6162747",
"0.61589277",
"0.6154386",
"0.6149934",
"0.61435497",
"0.61379606",
"0.6110175",
"0.6108443",
"0.6100726",
"0.61007077",
"0.6100123",
"0.609015",
"0.608867",
"0.60857034",
"0.60714346",
"0.60661006",
"0.6065993",
"0.6063492",
"0.6060409",
"0.6054949",
"0.60409534",
"0.60323024",
"0.60158265",
"0.6014632",
"0.6011786",
"0.6011591",
"0.6004973",
"0.5994363",
"0.59890455",
"0.5984221",
"0.59818864",
"0.59813166",
"0.5977342",
"0.5972554",
"0.59699446",
"0.5968157",
"0.59666145",
"0.59652656",
"0.59590733",
"0.59537435",
"0.59419507",
"0.5941298",
"0.59364396",
"0.5935334",
"0.5930542",
"0.59289795",
"0.592345",
"0.5921396",
"0.58992404",
"0.58984643",
"0.589538",
"0.58850133",
"0.58815116",
"0.5881065",
"0.5879079",
"0.58758795",
"0.5875847",
"0.5875357",
"0.5872287",
"0.5871016",
"0.58707875",
"0.5865769",
"0.586361",
"0.58590394",
"0.585546",
"0.58496726",
"0.5847962",
"0.58431035"
]
| 0.78510493 | 0 |
Gets the information of the place passed from Parse server backed | private void getPlace(String _id) {
this.binding.main.setVisibility(View.GONE);
this.binding.loading.setVisibility(View.VISIBLE);
ParseQuery<Place> query = ParseQuery.getQuery(Place.class);
query.whereEqualTo(Place.KEY_OBJECT_ID, _id);
query.include(Place.KEY_CATEGORY);
query.include(Place.KEY_USER);
query.getFirstInBackground(new GetCallback<Place>() {
@Override
public void done(Place object, ParseException e) {
if(e == null) {
place = object;
bindInformation();
enterReveal();
} else {
Toast.makeText(PlaceDetailActivity.this, "Place not found", Toast.LENGTH_LONG).show();
finish();
}
}
});
// Set up elements visibility
binding.fabCall.setVisibility(View.INVISIBLE);
binding.fabLike.setVisibility(View.INVISIBLE);
binding.main.setVisibility(View.VISIBLE);
binding.loading.setVisibility(View.GONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String Get_place() \n {\n\n return place;\n }",
"Place getPlace();",
"public String getLocationInfo(String _placeInfo) {\r\n String urlString = apiUrl;\r\n obj = getConnection(urlString);\r\n try {\r\n return obj.getString(fixParams(_placeInfo));\r\n } catch (JSONException ex) {\r\n return \"JSONException: Info not found\";\r\n }\r\n }",
"public String getPlace(){\n return place;\n }",
"public String getPlace() {\n return place;\n }",
"public String getPlace() {\n return place;\n }",
"public String getPlace() {\n return place;\n }",
"public String getPlace() {\n return place;\n }",
"public String getPlace() {\n\t\treturn place;\n\t}",
"Place resolveLocation( Place place );",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void onSuccess(FetchPlaceResponse task) {\n\n\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getName());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getId());\n Log.d(TAG, \"onResult: name: \" + task.getPlace().getAddress());\n\n// getValuesFromCityID(task.getPlace().getId());\n// cityGoogleId = task.getPlace().getId();\n\n\n placeId = null;\n\n// final Place place = task.getPlace();\n\n try{\n mPlace = new PlaceInfo();\n mPlace.setName( task.getPlace().getName().toString());\n// Log.d(TAG, \"onResult: name: \" + place.getName());\n placeName = task.getPlace().getName().toString();\n mPlace.setAddress( task.getPlace().getAddress().toString());\n placeAddress = task.getPlace().getAddress().toString();\n// Log.d(TAG, \"onResult: address: \" + place.getAddress());\n mPlace.setAttributions( task.getPlace().getAttributions().toString());\n//// Log.d(TAG, \"onResult: attributions: \" + place.getAttributions());\n mPlace.setId( task.getPlace().getId());\n placeId = task.getPlace().getId();\n// Log.d(TAG, \"onResult: id:\" + place.getId());\n mPlace.setLatlng( task.getPlace().getLatLng());\n// Log.d(TAG, \"onResult: latlng: \" + place.getLatLng());\n// mPlace.setRating( task.getPlace().getRating());\n// Log.d(TAG, \"onResult: rating: \" + place.getRating());\n mPlace.setPhoneNumber( task.getPlace().getPhoneNumber().toString());\n// Log.d(TAG, \"onResult: phone number: \" + place.getPhoneNumber());\n mPlace.setWebsiteUri( task.getPlace().getWebsiteUri());\n// Log.d(TAG, \"onResult: website uri: \" + place.getWebsiteUri());\n//\n// Log.d(TAG, \"onResult: place: \" + mPlace.toString());\n }catch (NullPointerException e){\n Log.e(TAG, \"onResult: NullPointerException: \" + e.getMessage() );\n }\n\n\n mPlace.setId(task.getPlace().getId());\n moveCamera(task.getPlace().getLatLng(), DEFAULT_ZOOM, task.getPlace().getName());\n\n// places.release();\n\n\n }",
"private HashMap<String, String> getPlace(JSONObject jPlace) {\n\n HashMap<String, String> place = new HashMap<String, String>();\n\n String id = \"\";\n String reference = \"\";\n String description = \"\";\n\n try {\n\n description = jPlace.getString(\"description\");\n id = jPlace.getString(\"place_id\");\n reference = jPlace.getString(\"reference\");\n\n place.put(\"description\", description);\n place.put(\"_id\", id);\n place.put(\"reference\", reference);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return place;\n }",
"public void Print_place()\n {\n\n System.out.println(\"Place: \" + place);\n }",
"@Override\n protected ArrayList<PlaceNearby> doInBackground(String... jsonData) {\n ArrayList<PlaceNearby> places = null;\n PlaceJSONParser placeJsonParser = new PlaceJSONParser();\n\n try {\n jObject = new JSONObject(jsonData[0]);\n\n /** Getting the parsed data as a List construct **/\n places = placeJsonParser.parse(jObject);\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n }\n return places;\n }",
"void getReverInfo(int longitude,int latitude);",
"public String getLivingPlace() {\n return livingPlace;\n }",
"private void GetLocation(final String str) {\n AlertUtils.showCustomProgressDialog(LocationSearchActivityNew.this);\n String selectedPlaceKey = DataToPref.getSharedPreferanceData(LocationSearchActivityNew.this, LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY);\n\n CommonImplementation.getInstance().doGetLocation(null, \"https://maps.googleapis.com/maps/api/place/details/json?placeid=\" + selectedPlaceKey + \"&sensor=false&key=\" + getString(R.string.browser_key) + \"&language=\" + Locale.getDefault().getCountry(), new OnTaskComplete() {\n @Override\n public void onSuccess(Response data, boolean success) {\n AlertUtils.dismissDialog();\n if (data.code() == 200) {\n\n String LAT = \"\";\n String Long = \"\";\n String Location = \"\";\n String City = \"\";\n String State = \"\";\n String postal_code = \"\";\n String country = \"\";\n\n try {\n\n String response = data.body().string();\n JSONObject object = new JSONObject(response);\n\n String status = object.getString(\"status\").toString();\n\n if (object.has(\"result\")) {\n //JSONArray results = object.getJSONArray(\"results\");\n int i = 0;\n //Log.i(\"i\", i + \",\" + results.length());\n JSONObject r = object.getJSONObject(\"result\");\n JSONArray addressComponentsArray = r.getJSONArray(\"address_components\");\n do {\n\n JSONObject addressComponents = addressComponentsArray.getJSONObject(i);\n JSONArray typesArray = addressComponents.getJSONArray(\"types\");\n String types = typesArray.getString(0);\n\n if (types.equalsIgnoreCase(\"sublocality\")) {\n Location = addressComponents.getString(\"short_name\");\n Log.i(\"Locality\", Location);\n\n } else if (types.equalsIgnoreCase(\"locality\")) {\n City = addressComponents.getString(\"long_name\");\n Log.i(\"City\", City);\n\n } else if (types.equalsIgnoreCase(\"administrative_area_level_1\")) {\n State = addressComponents.getString(\"long_name\");\n Log.i(\"State\", State);\n\n } else if (types.equalsIgnoreCase(\"postal_code\")) {\n postal_code = addressComponents.getString(\"long_name\");\n Log.i(\"postal_code\", postal_code);\n } else if (types.equalsIgnoreCase(\"country\")) {\n country = addressComponents.getString(\"long_name\");\n Log.i(\"country\", country);\n }\n\n i++;\n } while (i < addressComponentsArray.length());\n\n\n JSONObject geometry = r.getJSONObject(\"geometry\");\n JSONObject location = geometry.getJSONObject(\"location\");\n\n LAT = location.getString(\"lat\");\n Long = location.getString(\"lng\");\n\n\n /* Log.i(\"JSON Geo Locatoin =>\", currentLocation);\n return currentLocation;*/\n\n String Data = LAT + \",,,\" + Long + \",,,\" + Location + \",,,\" + City + \",,,\" + State + \",,,\" +\n postal_code + \",,,\" + country;\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (data.code() == 404) {\n\n }\n }\n\n @Override\n public void onFailure() {\n AlertUtils.dismissDialog();\n }\n });\n }",
"@Override\r\n\tpublic LatLong findLatLong(String place) { // place can be a postal code string or an address string\r\n\t\t// some simple code inspired by http://stackoverflow.com/questions/7467568/parsing-json-from-url\r\n\t\tLatLong aLatLong = null;\r\n\t\ttry {\r\n\t\t\tJSONObject geoCodeJSON = new JSONObject(readUrl(\"http://maps.googleapis.com/maps/api/geocode/json?address=\" + place + \"&sensor=false\"));\r\n\t\t\tString latit = geoCodeJSON.getJSONArray(\"results\").getJSONObject(0).getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\");\r\n\t\t\tString longit = geoCodeJSON.getJSONArray(\"results\").getJSONObject(0).getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\");\r\n\t\t\taLatLong = new LatLong(Double.parseDouble(latit), Double.parseDouble(longit));\r\n\t\t\tSystem.out.println(\"latitude, longitude are\" + latitude + \" \" + longitude);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn aLatLong;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn aLatLong;\r\n\t\t}\r\n\t\treturn aLatLong;\r\n\t}",
"public Integer getQueryplace() {\n\t\treturn queryplace;\n\t}",
"private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}",
"public final native PlaceResult getPlace() /*-{\n return this.getPlace();\n }-*/;",
"private PlacesReadTask getPlace(JSONObject googlePlaceJson) {\n PlacesReadTask record=new PlacesReadTask();;\n String placeName = \"-NA-\";\n String id = \"-NA-\";\n String latitude = \"\";\n String longitude = \"\";\n String reference = \"\";\n String rating=\"\";\n\n try {\n if (!googlePlaceJson.isNull(\"name\")) {\n placeName = googlePlaceJson.getString(\"school_name\");\n }\n if (!googlePlaceJson.isNull(\"vicinity\")) {\n id = googlePlaceJson.getString(\"dbn\");\n }\n\n record.setSchool_name(placeName);\n record.setId(id);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return record;\n }",
"public interface PlaceInfo {\n\n\t\n\t/**\n\t * Return the place name\n\t * @return the place name\n\t */\n\tpublic String getName();\n\t\n\t\n\t/**\n\t * Return the place description\n\t * @return the place description\n\t */\n\tpublic String getDescription();\n\n\n\t/**\n\t * Is this place the space ship?\n\t * @return true if the place represents a space ship\n\t */\n\tpublic boolean isSpaceship();\n}",
"public Pull<Place> thisPlace();",
"String getStreet();",
"@Override\n protected List<HashMap<String, String>> doInBackground(String... jsonData) {\n\n List<HashMap<String, String>> places = null;\n PlaceJSONParser placeJsonParser = new PlaceJSONParser();\n\n try {\n jObject = new JSONObject(jsonData[0]);\n\n /** Getting the parsed data as a List construct */\n places = placeJsonParser.parse(jObject);\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n }\n return places;\n }",
"public int getPlace() {\n\t\treturn place;\n\t}",
"public static String getWaypointFromPlace(Place place) {\n return \"geo!\" + place.getLatitude() + \",\" + place.getLongitude();\n }",
"private void getUserLocation()\n {\n Log.i(\"values\",getArguments().getString(\"type\"));\n fetchStores(placeID);\n }",
"com.google.ads.googleads.v14.common.LocationInfo getLocation();",
"@Override\n protected String doInBackground(String... place) {\n String data = \"\";\n\n // Obtain browser key from https://code.google.com/apis/console\n String key = \"key=AIzaSyCFGvOeMTe7h9ukQYAzMIDBmDs52SnuPb4\";\n\n String input = \"\";\n\n try {\n input = \"input=\" + URLEncoder.encode(place[0], \"utf-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n // place type to be searched\n String types = \"types=geocode\";\n\n // Sensor enabled\n String sensor = \"sensor=false\";\n\n // Building the parameters to the web service\n String parameters = input + \"&\" + types + \"&\" + sensor + \"&\" + key;\n\n // Output format\n String output = \"json\";\n\n // Building the url to the web service\n String url = \"https://maps.googleapis.com/maps/api/place/autocomplete/\" + output + \"?\" + parameters;\n\n try {\n // Fetching the data from we service\n data = downloadUrl(url);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }",
"public static String getGeoLocation(String address) {\n URL url = null;\n HttpURLConnection conn = null;\n String textResult = \"\";\n try {\n url = new URL(GEO_URI + address + \"&key=\" + KEY);\n // open the connection\n conn = (HttpURLConnection) url.openConnection();\n // set the time out\n conn.setReadTimeout(10000);\n conn.setConnectTimeout(15000);\n // set the connection method to GET\n conn.setRequestMethod(\"GET\");\n //add http headers to set your response type to json\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n //Read the response\n Scanner inStream = new Scanner(conn.getInputStream());\n //read the input stream and store it as string\n while (inStream.hasNextLine()) {\n textResult += inStream.nextLine();\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n conn.disconnect();\n }\n\n return textResult;\n }",
"private Place extractFromJSON(JSONObject jo) {\n Place place = new Place();\n place.id = jo.optString(\"id\");\n place.name = jo.optString(\"name\");\n\n JSONObject locationObject = jo.optJSONObject(\"location\");\n if (locationObject != null) {\n place.lat = locationObject.optDouble(\"lat\");\n place.lng = locationObject.optDouble(\"lng\");\n place.distance = locationObject.optDouble(\"distance\");\n\n JSONArray addressArray = locationObject.optJSONArray(\"formattedAddress\");\n if (addressArray != null) {\n StringBuilder address = new StringBuilder();\n int arrLen = addressArray.length();\n for (int i = 0; i < arrLen; i++) {\n String value = addressArray.optString(i);\n if (i != 0) {\n address.append(\", \");\n } else {\n place.shortAddress = value;\n }\n address.append(value);\n\n }\n\n place.fullAddress = address.toString();\n }\n }\n\n JSONArray categoryArray = jo.optJSONArray(\"categories\");\n if (categoryArray != null) {\n if (categoryArray.length() > 0) {\n try {\n place.categoryName = categoryArray.optJSONObject(0).optString(\"name\");\n } catch (Exception ignore) {\n\n }\n }\n }\n\n return place;\n }",
"public static String placePostData()\r\n\t{\t\r\n\t\tString res=\"/maps/api/place/add/json\";\r\n\t\treturn res;\r\n\t}",
"Information getInfo();",
"public String getplaceName() {\n\t\treturn placeName;\n\t}",
"@Override\n protected String doInBackground(String... place) {\n String data = \"\";\n\n // Obtain browser key from https://code.google.com/apis/console\n String key = \"key=AIzaSyDxqQEvtdEtl6dDIvG7vcm6QTO45Si0FZs\";\n\n String input=\"\";\n\n try {\n input = \"input=\" + URLEncoder.encode(place[0], \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n // place type to be searched\n String types = \"types=geocode\";\n\n // Sensor enabled\n String sensor = \"sensor=false\";\n\n // Building the parameters to the web service\n String parameters = input+\"&\"+types+\"&\"+sensor+\"&\"+key;\n\n // Output format\n String output = \"json\";\n\n // Building the url to the web service\n String url = \"https://maps.googleapis.com/maps/api/place/autocomplete/\"+output+\"?\"+parameters;\n\n try{\n // Fetching the data from we service\n data = downloadUrl(url);\n }catch(Exception e){\n Log.d(\"Background Task\",e.toString());\n }\n return data;\n }",
"public String getOwnerPlace() {\r\n return ownerPlace;\r\n }",
"@Override\n protected String doInBackground(String... place) {\n String data = \"\";\n\n // Obtain browser key from https://code.google.com/apis/console\n String key = \"AIzaSyCEcipQ-PTVVp3zdCrjem5DCPJkVMPGBXY\";\n\n String input=\"\";\n\n try {\n input = \"input=\" + URLEncoder.encode(place[0], \"utf-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n // place type to be searched\n String types = \"types=geocode\";\n\n // Sensor enabled\n String sensor = \"sensor=false\";\n\n // Building the parameters to the web service\n String parameters = input+\"&\"+types+\"&\"+sensor+\"&key=\"+key;\n\n // Output format\n String output = \"json\";\n\n // Building the url to the web service\n String url = \"https://maps.googleapis.com/maps/api/place/autocomplete/\"+output+\"?\"+parameters;\n\n try{\n // Fetching the data from we service\n data = downloadUrl(url);\n }catch(Exception e){\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }",
"protected void streetLoc(LatLng latLng) {\n if (latLng == null) {\n return;\n }\n TencentSearch tencentSearch = new TencentSearch(this);\n //还可以传入其他坐标系的坐标,不过需要用coord_type()指明所用类型\n //这里设置返回周边poi列表,可以在一定程度上满足用户获取指定坐标周边poi的需求\n Geo2AddressParam geo2AddressParam = new Geo2AddressParam(latLng).getPoi(true)\n .setPoiOptions(new Geo2AddressParam.PoiOptions()\n// .setRadius(1000).setCategorys(\"面包\")\n .setPolicy(Geo2AddressParam.PoiOptions.POLICY_O2O));\n tencentSearch.geo2address(geo2AddressParam, new HttpResponseListener<BaseObject>() {\n\n @Override\n public void onSuccess(int arg0, BaseObject arg1) {\n if (arg1 == null) {\n return;\n }\n Geo2AddressResultObject obj = (Geo2AddressResultObject)arg1;\n StringBuilder sb = new StringBuilder();\n sb.append(\"逆地址解析\");\n sb.append(\"\\n地址:\" + obj.result.address);\n sb.append(\"\\npois:\"+obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n// provinceMap.put()\n province1 = provinceMap.get(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n if(province1 == null) {\n provinceMap.put(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district,obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n getStreet(obj.result.address_component.province, obj.result.address_component.city, obj.result.address_component.district);\n }\n\n// for (Poi poi : obj.result.pois) {\n// sb.append(\"\\n\\t\" + poi.title);\n// tencentMap.addMarker(new MarkerOptions()\n// .position(poi.latLng) //标注的位置\n// .title(poi.title) //标注的InfoWindow的标题\n// .snippet(poi.address) //标注的InfoWindow的内容\n// );\n// }\n// Log.e(\"test\", sb.toString());\n }\n\n @Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n Log.e(\"test\", \"error code:\" + arg0 + \", msg:\" + arg1);\n }\n });\n }",
"pb4server.QueryInfoByWorldAskReq getQueryInfoByWorldAskReq();",
"@Test\n public void getPlace() {\n Place result = mDbHelper.getPlace(Realm.getInstance(testConfig), \"1234\");\n\n // Check place\n Assert.assertNotNull(result);\n\n // Check place id\n Assert.assertEquals(\"1234\", result.getId());\n\n }",
"public ArrayList<String> getAllPlacesData() {\n\t\t\n\t\tArrayList<String> place_data = new ArrayList<String>();\n\t\t\n\t\t// String array for [place id, place name, place type, place latitude, place longitude]\n\t\tString[] parsed_place_value = new String[5];\n\t\t\t\t\n\t\t// Get SharedPref map\n\t\tMap<String,?> prefsMap = mPref.getAll();\n\t\t\n\t\t// Iterate over SharedPref map and get key, value pairs\n\t\tfor (Map.Entry<String, ?> entry : prefsMap.entrySet()) {\n\t\t\t\n\t\t\t// Ignore position data for clicked ListView item\n\t\t\tif (entry.getKey().equals(\"KEY_DATA_POSITION\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Store place id, place name, place type, place latitude, place longitude from values obtained in SharedPref map\n\t\t\tparsed_place_value = entry.getValue().toString().split(\",\");\n\n\t\t\t// Obtain place id and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString id = parsed_place_value[0];\n\t\t\tid = id.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tid = id.trim();\n\t\t\t\n\t\t\t// Obtain place name and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString name = parsed_place_value[1];\n\t\t\tname = name.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tname = name.trim();\n\t\t\t\n\t\t\t// Obtain place type and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString type = parsed_place_value[2];\n\t\t\ttype = type.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\ttype = type.trim();\n\t\t\t\n\t\t\t// Obtain place latitude and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString latitude = parsed_place_value[3];\n\t\t\tlatitude = latitude.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tlatitude = latitude.trim();\n\t\t\t\t\t\n\t\t\t// Obtain place longitude and remove all occurrences of '[' and ']' and leading/trailing whitespace\n\t\t\tString longitude = parsed_place_value[4];\n\t\t\tlongitude = longitude.replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\tlongitude = longitude.trim();\n\t\t\t\n\t\t\t// Obtain SharedPref key for place\n\t\t\tString sharedPref_key = entry.getKey();\n\t\t\t\n\t\t\t// Add place id, name, type, latitude, longitude, SharedPref key to ArrayList (separated by ## symbol)\n\t\t\tplace_data.add(id + \"##\" + name + \"##\" + type + \"##\" + latitude + \"##\" + longitude + \"##\" + sharedPref_key);\n\t\t\t\n\t\t\t\n\t\t\tLog.i(\"SHARED_PREFS_DATA\", entry.getKey() + \": \" + entry.getValue().toString());\n\t\t}\n\t\t\n\t\treturn place_data;\n\t}",
"public void printList(ETPlace place) {\n place.getName();\n\n\n }",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"String getInfo();",
"public String getOtherPlace() {\r\n return otherPlace;\r\n }",
"java.lang.String getLocation();",
"public HashMap<String, String> getInfoForNextPlace() {\n\t\tif (buildingName != null) {\n\t\t\treturn buildingInfo.get(buildingName);\n\t\t}\n\t\treturn storyInfo;\n\t}",
"public int getPlaceLocation() {\n return mPlaceLocation;\n }",
"public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }",
"@Override\n protected MarkerItem doInBackground(MarkerItem... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n MarkerItem name = locationName[0];\n try {\n // Getting a maximum of 1 Address that matches the input text\n addresses = geocoder.getFromLocationName(name.getAddress(), 1);\n if (addresses != null && addresses.size() >= 1) {\n name.setPlaceItem(addresses.get(0));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return name;\n }",
"public String getLocationName(){\n return myLoc;\n }",
"public void scanCurrentPlace()\r\n\t{\r\n\t\tSystem.out.println(this.getCurrentPlace().toString());\r\n\t\tSystem.out.println(\"The place contains these objects: \");\r\n\t\tSystem.out.println(this.getCurrentPlace().getItems().toString());\r\n\t}",
"Map<Long,String> getPlaces(String experiment_no,String laboratory_no) throws IOException;",
"private void getPlace(int idPlace2) {\n\t\tif (Tools.isNetworkEnabled(DetPlaActivity.this)) {\n\t\t\tclient = new AsyncHttpClient();\n\t\t\tclient.get(Tools.GET_DETAIL_URL + idPlace,\n\t\t\t\t\tnew JsonHttpResponseHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\t\tplace = Place.decodeJSON(response);\n\t\t\t\t\t\t\t\tplace.id = idPlace;\n\t\t\t\t\t\t\t\tupdateDetailGUI();\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Errore\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers,\n\t\t\t\t\t\t\t\t\tresponseString, throwable);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONArray errorResponse) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\t\"Errore nel recupero dei dati\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprivate void updateDetailGUI() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tlogo.setImageUrl(place.gallery.get(0));\n\t\t\t\t\t\t\tnomePosto.setText(place.nome);\n\t\t\t\t\t\t\tdescrizione.setText(place.description);\n\t\t\t\t\t\t\tnumtelefono.setText(place.telefono);\n\t\t\t\t\t\t\twebsite.setText(place.website);\n\t\t\t\t\t\t\tcitta.setText(place.cittą);\n\t\t\t\t\t\t\tSmartImageView image_detail;\n\t\t\t\t\t\t\tif (place.gallery.size() > 1) {\n\t\t\t\t\t\t\t\tLinearLayout.LayoutParams imagesLayout = new LinearLayout.LayoutParams(\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\t\t\t\t\t\t\timagesLayout.setMargins(5, 0, 5, 0);\n\t\t\t\t\t\t\t\tfor (int i = 1; i < place.gallery.size(); i++) {\n\t\t\t\t\t\t\t\t\timage_detail = new SmartImageView(\n\t\t\t\t\t\t\t\t\t\t\tDetPlaActivity.this);\n\t\t\t\t\t\t\t\t\timage_detail.setLayoutParams(imagesLayout);\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setScaleType(ScaleType.CENTER_CROP);\n\t\t\t\t\t\t\t\t\timage_detail.getLayoutParams().width = 200;\n\t\t\t\t\t\t\t\t\timage_detail.setImageUrl(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t.get(i));\n\t\t\t\t\t\t\t\t\tfinal int index_id_dialog = i;\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated\n\t\t\t\t\t\t\t\t\t\t\t\t\t// method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tDialogImage dialog = DialogImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.newInstance(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(index_id_dialog)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.show(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetFragmentManager(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTools.TAG_DIALOG_IMAGE);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tgallery.addView(image_detail);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgalleryContainer.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\tgallery.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbtnMappa.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tString url = \"http://maps.google.com/maps?\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"daddr=\" + place.lat + \",\"\n\t\t\t\t\t\t\t\t\t\t\t+ place.longit;\n\t\t\t\t\t\t\t\t\tIntent mapIntent = new Intent(\n\t\t\t\t\t\t\t\t\t\t\tIntent.ACTION_VIEW, Uri.parse(url));\n\t\t\t\t\t\t\t\t\tstartActivity(mapIntent);\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\tLog.d(\"url offerta\", Tools.OFFERS_BY_PLACE + idPlace);\n\t\t\trvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t\tLinearLayoutManager llm = new LinearLayoutManager(\n\t\t\t\t\tDetPlaActivity.this);\n\t\t\trvofferte.setLayoutManager(llm);\n\t\t\trvofferte.setSaveEnabled(false);\n\t\t\tclient.get(Tools.OFFERS_BY_PLACE + idPlace,\n\t\t\t\t\tnew JsonHttpResponseHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tJSONArray response) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tfor (int i = 0; i < response.length(); i++) {\n\t\t\t\t\t\t\t\tLog.d(\"off\", response.toString());\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tofferte.add(Offerta.decodeJSON(response\n\t\t\t\t\t\t\t\t\t\t\t.getJSONObject(i)));\n\t\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t\t// TODO 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}\n\t\t\t\t\t\t\tadapter = new OffertaAdapterRV(DetPlaActivity.this,\n\t\t\t\t\t\t\t\t\tofferte);\n\t\t\t\t\t\t\tif (adapter != null)\n\t\t\t\t\t\t\t\trvofferte.setAdapter(adapter);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers,\n\t\t\t\t\t\t\t\t\tresponseString, throwable);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONArray errorResponse) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} else\n\t\t\tToast.makeText(DetPlaActivity.this,\n\t\t\t\t\t\"Nessuna connessione disponibile!\", Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t}",
"@Override\n protected Void doInBackground(Void... voids) {\n\n\n Geocoder gc = new Geocoder(MainActivity.this);\n\n Log.d(\"florianBurel\", \"gc - isPresent : \" + (gc.isPresent() ? \"YES\" : \"NO\"));\n\n try {\n List<Address> addresses = gc.getFromLocation(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude(), 1);\n\n Log.d(\"florianBurel\", addresses.size() + \" addresses found\");\n\n //city.setName(addresses.get(0).getLocality());\n\n } catch (IOException e) {\n city.setName(\"Unknown Location\");\n }\n\n\n\n\n return null;\n }",
"NameValue getLocation(T data);",
"private void performPlaceDetailSearch(String placeId)\n {\n GenerateGoogleMapApiUrl urlGenerator = new GenerateGoogleMapApiUrl();\n StringBuilder googlePlacesUrl = urlGenerator.getGoogleMapPlacesQueryURL(placeId,GenerateGoogleMapApiUrl.PLACE_DETAIL,mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());\n Log.d(\"Google Query\",googlePlacesUrl.toString());\n final List<Place> newPlacesList = new ArrayList<Place>();\n // Creating volley request obj\n final JsonObjectRequest placeDetailReq = new JsonObjectRequest(Request.Method.GET,googlePlacesUrl.toString(),null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject result) {\n Log.d(\"JSON Error\", result.toString());\n //hidePDialog();\n // Parsing json\n //for (int i = 0; i < response.length(); i++) {\n try {\n\n JSONObject obj = result.getJSONObject(\"result\");\n Place newPlace = new Place();\n if (!obj.isNull(\"name\")) {\n newPlace.setName(obj.getString(\"name\"));\n }\n if(!obj.isNull(\"rating\"))\n {\n newPlace.setRating(Float.parseFloat(obj.getString(\"rating\")));\n }\n newPlace.setLat(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lat\"));\n newPlace.setLng(obj.getJSONObject(\"geometry\").getJSONObject(\"location\").getString(\"lng\"));\n JSONArray types = obj.getJSONArray(\"types\");\n newPlace.setType(types.get(0).toString());\n if(!obj.isNull(\"opening_hours\"))\n {\n newPlace.setOpen(obj.getJSONObject(\"opening_hours\").getBoolean(\"open_now\"));\n }\n if(!obj.isNull(\"place_id\"))\n {\n newPlace.setPlace_id(obj.getString(\"place_id\"));\n }\n if(!obj.isNull(\"price_level\"))\n {\n newPlace.setPrice_level(obj.getString(\"price_level\"));\n }\n if(!obj.isNull(\"international_phone_number\"))\n {\n newPlace.setPhone_number(obj.getString(\"international_phone_number\"));\n }\n if(!obj.isNull(\"formatted_address\"))\n {\n newPlace.setAddress(obj.getString(\"formatted_address\"));\n }\n if(!obj.isNull(\"website\"))\n {\n newPlace.setWebsite(obj.getString(\"website\"));\n }\n\n\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(newPlace.getLat()));\n placeLocation.setLongitude(Double.parseDouble(newPlace.getLng()));\n newPlace.setDistance(mCurrentLocation.distanceTo(placeLocation));\n\n\n\n newPlacesList.add(newPlace);\n\n //currentPlaceDetail = newPlace; // set currentPlaceDetail\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n //dismiss keyboard\n hideSoftKeyboard(ARExploreActivity.this);\n //dismiss autocomplete list\n edtSeach.dismissDropDown();\n plotGoogleMap(newPlacesList);\n mPlaceDetail = newPlacesList;\n generateWorld(mWorld,mPlaceDetail,viewSetting,true);//rerender\n zoomToLocationSearchResult(newPlacesList);\n\n if(currentDisplayMode==DISPLAY_PLACE_LIST)\n {\n placeListBottomSheetBehavior.setHideable(true);\n placeListBottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);\n previousDisplayMode = currentDisplayMode;\n }\n currentDisplayMode = DISPLAY_PLACE_DETAIL;\n\n\n bottomsheetbehaviorgoogle.setHideable(true);\n bottomsheetbehaviorgoogle.setState(BottomSheetBehaviorGoogleMapsLike.STATE_COLLAPSED);\n extendButton.setVisibility(View.VISIBLE);\n //region for putting the result into place details\n\n placeNameTextView.setText(newPlacesList.get(0).getName()); // set place name\n ratingBar.setRating(newPlacesList.get(0).getRating()); // set Rating\n\n if(!newPlacesList.get(0).getPrice_level().equals(\"\"))\n {\n String priceString=\"\";\n int price = Integer.parseInt(newPlacesList.get(0).getPrice_level()); // set price\n for(int i=0;i<=price;i++)\n {\n priceString = priceString+\"£\";\n }\n priceTextView.setText(priceString);\n /*priceTextView.requestLayout();\n priceTextView.invalidate();*/\n }\n else\n {\n priceTextView.setText(\"\");\n }\n\n if(!newPlacesList.get(0).getPhone_number().equals(\"\"))\n {\n\n phoneTextView.setText(newPlacesList.get(0).getPhone_number()); // set phone number\n /*phoneTextView.requestLayout();\n phoneTextView.invalidate();*/\n phone_row.setVisibility(View.VISIBLE);\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getAddress().equals(\"\"))\n {\n\n addressTextView.setText(newPlacesList.get(0).getAddress()); // set address\n /*addressTextView.requestLayout();\n addressTextView.invalidate();*/\n address_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n phone_row.setVisibility(View.GONE);\n }\n\n if(!newPlacesList.get(0).getWebsite().equals(\"\"))\n {\n websiteTextView.setText(newPlacesList.get(0).getWebsite()); // set website\n /*websiteTextView.requestLayout();\n websiteTextView.invalidate();*/\n website_row.setVisibility(View.VISIBLE);\n\n }\n else\n {\n website_row.setVisibility(View.GONE);\n }\n //endregion\n bottomSheetCOntentLayout.requestLayout();\n bottomSheetCOntentLayout.invalidate();\n\n layoutUpdater.wrapContentAgain(bottomSheetCOntentLayout,true);\n imgPlaceDetail.requestLayout();\n imgPlaceDetail.invalidate();\n placePhotosTask(newPlacesList.get(0).getPlace_id());\n //bottomSheetPlaceDetails.requestLayout();\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n //hidePDialog();\n\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(placeDetailReq);\n }",
"@SuppressLint(\"MissingPermission\")\n @AfterPermissionGranted(PERMISSION_LOCATION_ID)\n private void getCurrentLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if(location != null) {\n currentLat = location.getLatitude();\n currentLong = location.getLongitude();\n\n String placeType = \"museum\";\n\n int radius = ProfileFragment.getRadius();\n\n String url = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json\" +\n \"?location=\" + currentLat + \",\" + currentLong +\n \"&radius=\" + radius +\n \"&type=\" + placeType +\n \"&key=\" + getResources().getString(R.string.maps_api_key);\n\n new NearbyMuseumTask().execute(url);\n\n mapFragment.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n setMapUISettings();\n\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(currentLat,currentLong), 12\n ));\n }\n });\n }\n }\n });\n }",
"private Place getPlaceWithTelephoneNumber() {\n\n // finds nearby place according the slot value\n List<Place> places = PlaceFinder.findNearbyPlace(GeoCoder.getLatLng(deviceAddress), slotBankNameValue);\n\n // check the list of places for one with opening hours\n return PlaceFinder.findTelephoneNumberPlace(places, slotBankNameValue);\n }",
"String getArrivalLocation();",
"@Override\r\n\tpublic Map<String, Object> queryPosition(Position post) throws Exception {\n\t\treturn null;\r\n\t}",
"public static String getPlace(String place) {\n if (place != null\n && place.contains(\" of \")) {\n return place.substring(place.lastIndexOf(\" of \") + \" of \".length());\n }\n return place;\n }",
"@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }",
"public String getPlacecode() {\n return placecode;\n }",
"@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(\"city\",place.toString());\r\n Log.i(TAG, \"Place: \" + place.getName());\r\n city2=place.getName().toString();\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city2;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city2=h;\r\n\r\n }",
"public static String getPlaceID(String placeName) {\r\n\t\tString output = \"\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(\"https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=\"+placeName+\"&inputtype=textquery&fields=place_id&key=AIzaSyAcM2vc8-2JY9I5P7jgvt61TCYa1vo0b98\");\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n\t\t\tconn.setRequestMethod(\"GET\");\r\n\t\t\tconn.connect();\r\n\t\t\tint responsecode = conn.getResponseCode();\r\n\t\t\tif(responsecode != 200) {\r\n\t\t\t\tthrow new RuntimeException(\"HttpResponseCode: \"+responsecode);\r\n\t\t\t} else {\r\n\t\t\t\tJSONParser parse = new JSONParser();\r\n\t\t\t\tScanner scanner = new Scanner(url.openStream());\r\n\t\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\t\toutput+=scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tJSONObject jsonobject = (JSONObject)parse.parse(output);\r\n\t\t\t\tJSONArray resultArray = (JSONArray) jsonobject.get(\"candidates\");\r\n\t\t\t\tfor(int count=0; count<1;count++) {\r\n\t\t\t\t\tJSONObject jsonobject1 = (JSONObject)resultArray.get(count);\r\n\t\t\t\t\tSystem.out.println(placeName+\" Place ID: \"+jsonobject1.get(\"place_id\"));\r\n\t\t\t\t\toutput = (String) jsonobject1.get(\"place_id\");\r\n\t\t\t\t}\r\n\t\t\t\tscanner.close();\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }",
"public void getPlaceInfo(String id, final ApiPlaceInfoResult callback) {\n Call<Place> call = this.mPlaceCall.getPlaceInfo(id);\n call.enqueue(new Callback<Place>() {\n @Override\n public void onResponse(Call<Place> call, Response<Place> response) {\n int statusCode = response.code();\n if (statusCode == HTTP_200) {\n initRetrofitClient();\n Place repository = response.body();\n Log.d(TAG, repository.toString());\n callback.success(repository);\n } else {\n callback.error(statusCode, response.message());\n }\n }\n\n @Override\n public void onFailure(Call<Place> call, Throwable t) {\n Log.e(TAG, \"Error while calling the 'getPlaceInfo' method!\", t);\n callback.error(-1, t.getLocalizedMessage());\n }\n });\n }",
"public interface GooglePlacesApi {\n\n @GET(\"maps/api/place/autocomplete/json?type=(cities)&language=es\")\n Call<PredictionResult> autoComplete(@Query(\"input\") String text);\n\n @GET(\"maps/api/place/details/json\")\n Call<DetailsResult> getPlaceDetails(@Query(\"place_id\") String text);\n\n\n}",
"void getData(){\n getListPlaceBody getListPlaceBody = new getListPlaceBody(0,0,\"\");\n Retrofit retrofit = new Retrofit\n .Builder()\n .addConverterFactory(GsonConverterFactory.create())\n .baseUrl(\"http://150.95.115.192/api/\")\n .build();\n retrofit.create(WonderVNAPIService.class)\n .getListPlace(getListPlaceBody)\n .enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n try {\n Log.e(\"onResponse\", \"Response\");\n String strJson = response.body().string();\n tvContent.setText(strJson);\n Gson gson = new Gson();\n placeData =gson.fromJson(strJson, PlaceData.class);\n }catch (IOException e){\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"onFailure\", \"Failure\");\n }\n });\n\n }",
"public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }",
"public void getAndStoreLocation(String pin, String name, boolean isFirstRun) {\n\n\t\tLocation location = myLocation;\n\n\t\t// Get last know latitude and longitude as Strings\n\t\tString latitude = Double.toString(location.getLatitude());\n\t\tLog.d(TAG, latitude);\n\t\tString longditude = Double.toString(location.getLongitude());\n\t\tLog.d(TAG, longditude);\n\n\t\tif (!(isFirstRun)) {\n\t\t\t// Find the existing Parse object\n\t\t\tParseQuery query = new ParseQuery(\"Waypoints\");\n\t\t\tquery.whereEqualTo(\"pin\", pin);\n\t\t\tquery.getFirstInBackground(new GetCallback() {\n\t\t\t\tpublic void done(ParseObject object, ParseException e) {\n\t\t\t\t\tif (object == null) {\n\t\t\t\t\t\t//If the object could not be found\n\t\t\t\t\t\tLog.d(TAG, \"The request failed.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//Delete the object so it can be overwritten with new data.\n\t\t\t\t\t\tobject.deleteInBackground();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t// Upload the data to Parse\n\t\tParseObject waypoint = new ParseObject(\"Waypoints\");\n\t\twaypoint.put(\"pin\", pin);\n\t\twaypoint.put(\"Title\", name);\n\t\twaypoint.put(\"type\", \"individual\");\n\t\twaypoint.put(\"longitude\", longditude);\n\t\twaypoint.put(\"latitude\", latitude);\n\t\twaypoint.saveInBackground();\n\t}",
"PlaceDetails(JSONObject result) {\n try {\n this.id = result.getString(\"place_id\");\n this.name = result.getString(\"name\");\n this.address = result.getString(\"formatted_address\");\n this.phone = result.getString(\"formatted_phone_number\");\n this.rating = result.getDouble(\"rating\");\n String photoReference = result.getJSONArray(\"photos\")\n .getJSONObject(0)\n .getString(\"photo_reference\");\n // Format URL\n // Photo url example\n // https://maps.googleapis.com/maps/api/place/photo?parameters\n // This URL works but the returned image indicated I'm past my API quota\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"maps.googleapis.com\")\n .appendPath(\"maps\")\n .appendPath(\"api\")\n .appendPath(\"place\")\n .appendPath(\"photo\")\n .appendQueryParameter(\"key\", BuildConfig.GOOGLE_PLACES_API_KEY)\n .appendQueryParameter(\"photoreference\", photoReference)\n .appendQueryParameter(\"maxWidth\", \"600\");\n // This URL works but the returned image indicated I'm past my API quota\n this.photoUrl = builder.build().toString();\n\n } catch (Exception e) {\n Log.d(LOG_TAG, \"There was an error parsing the Song JSONObject.\");\n }\n }",
"lanyotech.cn.park.protoc.ParkingProtoc.Parking getParking();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"location\");\n params.put(\"username\", username);\n params.put(\"latitude\", latitude);\n params.put(\"longitude\", longitude);\n\n return params;\n }",
"@Override\n public void onPlaceSelected(Place place) {\n latLng = place.getLatLng();\n locationName = place.getName().toString();\n locationAddress = place.getAddress().toString();\n Log.i(TAG, \"Location:latitude: \" + place.getLatLng().latitude);\n Log.i(TAG, \"Location:Address: \" + place.getAddress());\n Log.i(TAG, \"Location:Web: \" + place.getWebsiteUri());\n Log.i(TAG, \"Location:Place: \" + place.getName());\n mMap.addMarker(new MarkerOptions().position(latLng).title(locationName).snippet(locationAddress)).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"BodyPart getGearLocation();",
"public void setPlace(String place){\n this.place = place;\n }",
"@Override\n protected String doInBackground(Location... params) {\n\n // Set up geocoder\n Geocoder geocoder = new Geocoder(context, Locale.getDefault());\n\n // Get current location from parameter list\n Location location = params[0];\n\n // Create a list to contain the result address\n List<Address> addresses = null;\n try {\n Log.w(GetAddressTask.class.toString(), \"Started getting address from server\");\n // Get a list of street addresses using the geocoder.\n addresses = geocoder.getFromLocation(location.getLatitude(),\n location.getLongitude(), 1);\n Settings.getSettings().setPickUpCoordinates(location.getLatitude(), location.getLongitude());\n Log.w(GetAddressTask.class.toString(), \"Finished getting address from server\");\n } catch (IOException e1) {\n Log.e(\"GetAddressTask\", \"IO Exception in getFromLocation\");\n e1.printStackTrace();\n } catch (IllegalArgumentException e2) {\n // Make error string\n String errorString = \"Illegal arguments \" + Double.toString(location.getLatitude()) + \" , \" +\n Double.toString(location.getLongitude()) + \" passed to address services\";\n Log.e(\"GetAddressTask\" , errorString);\n e2.printStackTrace();\n return errorString;\n } catch (NullPointerException e3){\n // Waiting for connection\n }\n\n // Check if geocode returned an address\n if (addresses != null && addresses.size() > 0 && (location.getAccuracy() < 100)) {\n // Get first address from list\n Address address = addresses.get(0);\n // Format the address.\n String addressText = String.format(\"%s, %s, %s\", address.getMaxAddressLineIndex() > 0 ?\n address.getAddressLine(0) : \"\", address.getLocality(), address.getCountryName());\n return addressText;\n } else if (location.getAccuracy() >= 100) {\n return \"Your location is not accurate enough\\nTap on the arrow to try again.\";\n } else {\n return \"No address found\\nTru using a different option\";\n }\n }",
"@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\r\n city1=place.getName().toString();\r\n Log.i(TAG,place.getAddress().toString());\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city1;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city1=h;\r\n\r\n }",
"public void getAddressOfStoreById(Store store) {\n\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n String url = ConstainServer.BaseURL + ConstainServer.LocationURL + store.getLocationId();\n String respone = \"\";\n try {\n URL url1 = new URL(url);\n respone = ReadStream.readStream(url1.openStream());\n JSONObject jsonObject = new JSONObject(respone);\n if (jsonObject.has(address)) {\n store.setAddress(jsonObject.getString(address));\n }\n } catch (Exception e) {\n Log.e(\"ELocation\", e.getMessage());\n }\n }",
"public int getPlaceDescription() {\n return mPlaceDescription;\n }",
"public String getLocation(){\n return this.location;\n }",
"public abstract String getLocation();",
"String getLocation(boolean detail);",
"@Override\r\n\t\t\tprotected List<HashMap<String, String>> doInBackground(\r\n\t\t\t\t\tString... jsonData) {\r\n\r\n\t\t\t\tList<HashMap<String, String>> places = null;\r\n\t\t\t\tGeocodeJSONParser parser = new GeocodeJSONParser();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tjObject = new JSONObject(jsonData[0]);\r\n\r\n\t\t\t\t\t/** Getting the parsed data as a an ArrayList */\r\n\t\t\t\t\tplaces = parser.parse(jObject);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tLog.d(\"Exception\", e.toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn places;\r\n\t\t\t}",
"public int getPlaceName() {\n return mPlaceName;\n }",
"private Place getFromPlace(Element passageElement, ArrayList<Place> places) {\n Place start = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n start = places.get(i);\n }\n }\n return start;\n }"
]
| [
"0.7019934",
"0.676309",
"0.65637285",
"0.6459465",
"0.63896286",
"0.63896286",
"0.63896286",
"0.63896286",
"0.624346",
"0.60419595",
"0.6034591",
"0.6000975",
"0.599372",
"0.598114",
"0.5978718",
"0.5953069",
"0.5882976",
"0.58719563",
"0.5846062",
"0.58310694",
"0.58092904",
"0.580014",
"0.5782767",
"0.5770223",
"0.5760598",
"0.5745007",
"0.57421213",
"0.57130975",
"0.5707758",
"0.5673881",
"0.5663943",
"0.5635156",
"0.5634303",
"0.5624685",
"0.5613624",
"0.56007737",
"0.55680794",
"0.55575633",
"0.5546025",
"0.5536181",
"0.5532929",
"0.55317175",
"0.5524436",
"0.5517455",
"0.55166334",
"0.55166334",
"0.55166334",
"0.55137813",
"0.55050766",
"0.54991513",
"0.5477875",
"0.5476157",
"0.5475382",
"0.5473196",
"0.54630256",
"0.5458994",
"0.54398483",
"0.54365295",
"0.54266435",
"0.54214865",
"0.54063314",
"0.53952485",
"0.53923017",
"0.53895324",
"0.5388974",
"0.53884643",
"0.53839964",
"0.5376593",
"0.5369899",
"0.5366947",
"0.53667456",
"0.5360817",
"0.53508335",
"0.53506917",
"0.53428143",
"0.53412616",
"0.53388363",
"0.53331316",
"0.5331861",
"0.5328284",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5327405",
"0.5326326",
"0.53220785",
"0.53195405",
"0.5315268",
"0.5313343",
"0.5312455",
"0.5304129",
"0.5290652",
"0.5284226",
"0.52816826",
"0.52793914",
"0.52692413"
]
| 0.5899692 | 16 |
Binds the information of the place with the corresponding part of the layout | private void bindInformation() {
// Fill information
this.binding.tvName.setText(this.place.getName());
this.binding.tvDescription.setText(this.place.getDescription());
this.binding.chipLikes.setText(String.format("%d likes", this.place.getLikeCount()));
this.binding.tvAddress.setText(this.place.getAddress());
this.binding.tvCategory.setText(this.place.getCategory().getString("name"));
this.binding.rbPrice.setRating(this.place.getPrice());
// Add marker to map
LatLng placePosition = new LatLng(this.place.getLocation().getLatitude(), this.place.getLocation().getLongitude());
this.map.addMarker(new MarkerOptions()
.position(placePosition)
.title(this.place.getName()));
// Move camera to marker
CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(placePosition, 17);
this.map.animateCamera(cameraUpdate);
// Load image
Glide.with(PlaceDetailActivity.this)
.load(this.place.getImage().getUrl())
.placeholder(R.drawable.placeholder)
.error(R.drawable.error)
.centerCrop()
.into(this.binding.ivImage);
// If author is same as logged user then display edit actions
if(this.place.getUser().getObjectId().equals(ParseUser.getCurrentUser().getObjectId())) {
this.binding.rlAuthor.setVisibility(View.GONE);
this.binding.rlEdit.setVisibility(View.VISIBLE);
} else {
this.binding.rlAuthor.setVisibility(View.VISIBLE);
this.binding.rlEdit.setVisibility(View.GONE);
this.binding.rlAuthor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(PlaceDetailActivity.this, ProfileActivity.class);
intent.putExtra("user", place.getUser().getObjectId());
startActivity(intent);
}
});
}
// Set author's information
String authorProfileImage, authorName, authorUsername;
try {
authorProfileImage = this.place.getUser().getParseFile(User.KEY_PROFILE_PICTURE).getUrl();
} catch (NullPointerException e) {
authorProfileImage = "";
Log.e(TAG, "Author doesn't have image");
}
try {
authorName = this.place.getUser().get(User.KEY_NAME).toString();
} catch (NullPointerException e) {
authorName = "[NO NAME]";
Log.e(TAG, "Author doesn't have image");
}
try {
authorUsername = String.format("@%s", this.place.getUser().get("username").toString());
} catch (NullPointerException e) {
authorUsername = "[NO NAME USERNAME]";
Log.e(TAG, "Author doesn't have image");
}
this.binding.tvAuthorName.setText(authorName);
this.binding.tvAuthorUsername.setText(authorUsername);
Glide.with(PlaceDetailActivity.this)
.load(authorProfileImage)
.placeholder(R.drawable.avatar)
.error(R.drawable.avatar)
.circleCrop()
.into(this.binding.ivAuthorImage);
// Set edit actions
if(this.place.getPublic()) {
this.binding.btnPublic.setText(R.string.make_private);
} else {
this.binding.btnPublic.setText(R.string.make_public);
}
this.binding.btnPublic.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
changePlacePrivacy();
}
});
// Set delete listener
this.binding.btnDelete.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
deletePlace();
}
});
// Set call fab action listener
this.binding.fabCall.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.green)));
this.binding.fabCall.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String uri = "tel:" + place.getPhone();
if(uri.length() < 5) {
Toast.makeText(PlaceDetailActivity.this, "This place doesn't have a phone", Toast.LENGTH_SHORT).show();
return;
}
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse(uri));
startActivity(intent);
}
});
// Set fab like colors
ParseQuery<ParseObject> query = ParseQuery.getQuery("Like");
query.whereEqualTo("user", ParseUser.getCurrentUser());
query.whereEqualTo("place", this.place);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> objects, ParseException e) {
if (e == null) {
place.liked = objects.size() == 1;
// Set follow button text
if (place.liked) {
binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));
binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));
} else {
binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));
binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));
}
} else {
Log.e(TAG, "Problem knowing if place is liked", e);
}
}
});
// Set like actions listener
this.binding.fabLike.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(place.liked) {
binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));
binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));
unlike();
} else {
binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));
binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));
like();
}
place.liked = !place.liked;
}
});
// Promote a place
this.binding.btnPromote.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
binding.rlPromote.setVisibility(View.VISIBLE);
}
});
// Promotion cancelled
this.binding.btnPromoteCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
binding.rlPromote.setVisibility(View.GONE);
}
});
// Promote now
this.binding.btnPromoteNow.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
binding.rlPromote.setVisibility(View.GONE);
binding.btnPromote.setVisibility(View.GONE);
binding.loadingPromote.setVisibility(View.VISIBLE);
// Create a new instance of AsyncHttpClient
AsyncHttpClient client = new AsyncHttpClient();
RequestHeaders headers = new RequestHeaders();
headers.put("x-api-key", apiKey);
RequestParams params = new RequestParams();
params.put("place", place.getObjectId());
params.put("user", ParseUser.getCurrentUser().getObjectId());
client.get(SERVER_URL + "promote", headers, params, new JsonHttpResponseHandler() {
@Override
public void onSuccess(int i, Headers headers, JSON json) {
onToastMessage("Place promoted successfully!", false);
}
@Override
public void onFailure(int i, Headers headers, String s, Throwable throwable) {
onToastMessage("Error while promoting place", true);
}
});
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n MyPlace place = mDataset.get(position);\n\n holder.bind(activity,place,itemClicked,position);\n //https://www.google.com/maps/place/?q=place_id:\n }",
"@Override\n public void onBindViewHolder(PlaceAdapter.ViewHolder holder, int position) {\n // Get current place.\n Place currentPlace = mPlacesData.get(position);\n\n // Populate the textviews with data.\n holder.bindTo(currentPlace);\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }",
"public void fillInnerParts() {\n if (this.staff.getCurrentView().isPresent()) {\n Staff currentStaff = this.staff.getCurrentView().get();\n Index index = this.staff.getIndex();\n staffBasicInfoDisplay = new StaffBasicInfoDisplay(currentStaff, index);\n basicInfoPlaceholder.getChildren().add(staffBasicInfoDisplay.getRoot());\n\n commentListPanel = new CommentListPanel(staff.getCommentList());\n commentListPanelPlaceholder.getChildren().add(commentListPanel.getRoot());\n\n leaveInfoDisplay = new LeaveInfoDisplay(staff.getLeaveList(), currentStaff.getLeaveTaken());\n leaveInfoPlaceholder.getChildren().add(leaveInfoDisplay.getRoot());\n }\n }",
"protected abstract void putDataInViewControls(Cursor cursor);",
"private void placeContentsInPanel() {\n\t\tGridBagConstraints constraints = new GridBagConstraints();\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 0; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.insets = new Insets(10,0,0,0);\n\t\tconstraints.weighty = 0.0;\n\t\tconstraints.weightx = 1.0;\n\t\tthis.add(jpYourMusic,constraints);\n\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 2; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jpPreLists,constraints);\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 3; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jlYourLists,constraints);\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 4; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jbCreateLists,constraints);\n\t\t\n\t\t\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 5; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 0.0;\n\t\tthis.add(jpIntroduceNameList,constraints);\n\t\t\n\t\tconstraints.anchor = GridBagConstraints.NORTH;\n\t\tconstraints.gridx = 0; \n\t\tconstraints.gridy = 6; \n\t\tconstraints.gridwidth = 1; \n\t\tconstraints.gridheight = 1; \n\t\tconstraints.weighty = 1.0;\n\t\tthis.add(myTable,constraints);\n\t}",
"public void setPlace(View view){\n setPlace = (RelativeLayout)findViewById(R.id.setPlaceRelativeLayout);\n setPlace.setVisibility(View.VISIBLE);\n\n orientation = 0; // resets all params before new placement\n angleF = 0;\n rotateRight = 0;\n rotateLeft = 0;\n placeX = 0;\n placeY = 0;\n\n }",
"public void layoutForSimView()\n {\n preferredSize = new Dimension(982, 476);\n ((ViewableComponent)withName(\"bridge3\")).setPreferredLocation(new Point(359, 193));\n ((ViewableComponent)withName(\"station1\")).setPreferredLocation(new Point(156, 93));\n ((ViewableComponent)withName(\"bridge2\")).setPreferredLocation(new Point(83, 256));\n ((ViewableComponent)withName(\"bridge1\")).setPreferredLocation(new Point(88, 182));\n ((ViewableComponent)withName(\"station3\")).setPreferredLocation(new Point(367, 269));\n ((ViewableComponent)withName(\"TObs\")).setPreferredLocation(new Point(153, 4));\n ((ViewableComponent)withName(\"station2\")).setPreferredLocation(new Point(148, 362));\n }",
"public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView Ename = (TextView) view.findViewById(R.id.Ename);\n TextView Designation = (TextView) view.findViewById(R.id.Designation);\n TextView Salary = (TextView) view.findViewById(R.id.Salary);\n // Extract properties from cursor\n String ename = cursor.getString(cursor.getColumnIndexOrThrow(\"ename\"));\n String designation = cursor.getString(cursor.getColumnIndexOrThrow(\"designation\"));\n int salary = cursor.getInt(cursor.getColumnIndexOrThrow(\"salary\"));\n\n ImageView imgView =(ImageView)view.findViewById(R.id.ImageView01);\n\n\n imgView.setImageResource(R.drawable.ic_launcher);\n\n\n\n\n\n // Populate fields with extracted properties\n Ename.setText(ename);\n Designation.setText(designation);\n Salary.setText(String.valueOf(salary));\n }",
"protected void setupView(Context context, final ViewGroup parent) {\n\n\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflater.inflate(R.layout.map_popup_layout, parent);\n\t\timage = (ImageView) v.findViewById(R.id.statusImgOnMAP);\n\t\tBitmap weatherImg = UtilityFunctions.StringToBitMap(\"\");\n\t\tif(weatherImg!=null)\n\t\t\timage.setImageBitmap(weatherImg);\n\t\theader = (TextView) v.findViewById(R.id.locationHeaderOnMap);\n\t\ttitle1 = (TextView) v.findViewById(R.id.descripOnMap);\n\t\ttitle2 = (TextView) v.findViewById(R.id.dateOnMap);\n\t\ttitle3 = (TextView) v.findViewById(R.id.minTempOnMapValue);\n\t\ttitle4 = (TextView) v.findViewById(R.id.maxTempOnMapValue);\n\n\t}",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView txtTitle = (TextView) view.findViewById(R.id.schoolTitle);\n TextView txtSchoolNo = (TextView) view.findViewById(R.id.schoolNo);\n TextView txtMajor = (TextView) view.findViewById(R.id.schoolMajor);\n TextView txtStartDate = (TextView) view.findViewById(R.id.schoolStartDate);\n TextView txtEndDate = (TextView) view.findViewById(R.id.schoolEndDate);\n TextView txtLocation = (TextView) view.findViewById(R.id.schoolLocation);\n TextView txtStatus = (TextView) view.findViewById(R.id.schoolStatus);\n\n // Extract properties from cursor\n String mTitle = cursor.getString(cursor.getColumnIndexOrThrow(\"school_title\"));\n String mSchoolNo = cursor.getString(cursor.getColumnIndexOrThrow(\"school_cardno\"));\n String mMajor = cursor.getString(cursor.getColumnIndexOrThrow(\"school_major\"));\n String mStartDate = cursor.getString(cursor.getColumnIndexOrThrow(\"start_date\"));\n String mEndDate = cursor.getString(cursor.getColumnIndexOrThrow(\"end_date\"));\n String mLocation = cursor.getString(cursor.getColumnIndexOrThrow(\"school_location\"));\n String mStatus = cursor.getString(cursor.getColumnIndexOrThrow(\"status\"));\n // Populate fields with extracted properties\n txtTitle.setText(mTitle);\n txtSchoolNo.setText(mSchoolNo);\n txtMajor.setText(mMajor);\n txtStartDate.setText(mStartDate);\n txtEndDate.setText(mEndDate);\n txtLocation.setText(mLocation);\n txtStatus.setText(mStatus);\n }",
"protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}",
"private void populateView(){\n\n //Display image without blocking, and cache it\n ImageView imageView = (ImageView) findViewById(R.id.activity_location_image);\n Picasso.with(this)\n .load(location.getImageURL()).fit().centerCrop().into(imageView);\n\n //Display description\n TextView description = (TextView) findViewById(R.id.activity_location_description);\n description.setText(location.getDescription());\n\n //Display hours\n TextView hours = (TextView) findViewById(R.id.activity_location_hours);\n hours.setText(location.getStringOpenHours());\n\n //Display google maps, map IF address can be found\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.activity_location_map);\n if (canFindLocationAddress()){\n\n //Set width and height of map\n mapFragment.getView().getLayoutParams().height = getMapHeight();\n mapFragment.getView().offsetLeftAndRight(50);\n mapFragment.getMapAsync(this);\n }\n\n //Hide the map otherwise\n else{\n mapFragment.getView().setVisibility(View.INVISIBLE);\n }\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n //Find fields to populate in inflated template\n TextView sportClubFirstName = (TextView)view.findViewById(R.id.firstNameTextView);\n TextView sportClubLastName = (TextView)view.findViewById(R.id.lastNameTextView);\n TextView sportClubSport = (TextView)view.findViewById(R.id.sportTextView);\n //Extract properties from cursor\n String firstName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_FIRST_NAME));\n String lastName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_LAST_NAME));\n String sportName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_SPORT));\n //Populate fields with extracted properties\n sportClubFirstName.setText(firstName);\n sportClubLastName.setText(lastName);\n sportClubSport.setText(sportName);\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView textViewListName = view.findViewById(R.id.textView_list_name);\n TextView textViewListNumber = view.findViewById(R.id.textView_list_Number);\n TextView textViewListDescription = view.findViewById(R.id.textView_sub_name);\n\n // Extract properties from cursor\n int getID = cursor.getInt(cursor.getColumnIndexOrThrow(\"food_calories\"));\n String getName = cursor.getString(cursor.getColumnIndexOrThrow(\"food_name\"));\n String getDescription = cursor.getString(cursor.getColumnIndexOrThrow(\"food_description\"));\n\n // Populate fields with extracted properties\n textViewListName.setText(getName);\n textViewListNumber.setText(String.valueOf(getID));\n textViewListDescription.setText(String.valueOf(getDescription));\n }",
"public void place(Position position) { this.position = position; }",
"private void designCompleteSeatMapUi() {\n\n //load NetworkImageView\n loadNetworkImages();\n\n labelsLocalize();\n //passenger design\n designViewForSelectedPassengerList(seatMapData.getPassengerArray());\n\n //cabin design\n designColumnBySeatMarker(seatMapData.getSeatMarkarr(), layout_columnSeatMark);\n\n designSeatByColumn(seatMapData.getSeatdetailarr());\n\n lyt_seat.setVisibility(View.VISIBLE);\n\n setLeftVerticalRow(seatMapData.getSeatdetailarr(), lytLeftVerticalRow, parentViewForRecycler, relative_seatmap_parent);\n\n\n }",
"public void setLocationAndSize()\n {\n\t welcome.setBounds(150,50,200,30);\n\t amountLabel.setBounds(50,100,150,30);\n\t amountText.setBounds(200,100,150,30);\n\t depositButton.setBounds(150,150,100,30);\n \n \n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n //Find the fields to populate in inflated template\n TextView tvProductName = (TextView) view.findViewById(R.id.item_shopping_productname);\n TextView tvProductPrice = (TextView) view.findViewById(R.id.item_shopping_price);\n TextView tvProductStock = (TextView) view.findViewById(R.id.item_shopping_stock);\n TextView tvProductDescription = (TextView) view.findViewById(R.id.item_shopping_description);\n\n //Extract properties from Cursor\n String productName = cursor.getString(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_NAME));\n int productPrice = cursor.getInt(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_PRICE));\n int productStock = cursor.getInt(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_IN_STOCK));\n String productDescription = cursor.getString(cursor.getColumnIndexOrThrow(ShoppingContract.ShoppingEntry.COLUMN_DESCRIPTION));\n\n //Adding not written description in UI\n if(TextUtils.isEmpty(productDescription)){\n productDescription=context.getString(R.string.no_description_provided);\n }\n //Populated field with extracted properties\n tvProductName.setText(productName);\n tvProductPrice.setText(String.valueOf(productPrice));\n tvProductStock.setText(String.valueOf(productStock));\n tvProductDescription.setText(productDescription);\n\n }",
"@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }",
"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 }",
"@Override\n public View getInfoContents(Marker arg0) {\n\n // Getting view from the layout file info_window_layout\n View v = getLayoutInflater().inflate(R.layout.window_layout, null);\n\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.beacon_title1);\n\n // Getting reference to the TextView to set longitude\n ImageView img = (ImageView) v.findViewById(R.id.goat);\n\n // Setting the latitude\n tvLat.setText(arg0.getTitle());\n // Returning the view containing InfoWindow contents\n return v;\n\n }",
"void buildLayout(){\n\t\tsetText(\"Score: \" + GameModel.instance().getPoints());\n\t\tsetX(10);\n\t\tsetY(10);\n\t\tsetFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n\t\t\n\t}",
"public void PlaceHolders(){\n TextHolder holderUsuario = new TextHolder(\"Ingrese un usuario\", txtUsuario);\n TextHolder holderCorreo = new TextHolder(\"Ingrese su correo\",txtCorreo); \n }",
"void configureChildView(int childPosition, ViewHolder viewHolder) {}",
"static void setItemsAndContainers (){\n\t \t/**Add containers to places*/\n\t \tLocation.places[0].addContainer(Container.depths);\n\t \tLocation.places[1].addContainer(Container.secondaryInv);\n\t \tLocation.places[4].addContainer(Container.SRCloset);\n\t \tLocation.places[6].addContainer(Container.couch1);\n\t\t Location.places[6].addContainer(Container.couch2);\n\t\t Location.places[6].addContainer(Container.couch3);\n\t\t Location.places[6].addContainer(Container.couch4);\n\t\t Location.places[13].addContainer(Container.closetBathroom);\n Location.places[15].addContainer(Container.K1Couch);\n Location.places[16].addContainer(Container.fridge);\n Location.places[23].addContainer(Container.autoAisle);\n Location.places[24].addContainer(Container.aisle15B);\n Location.places[26].addContainer(Container.bb);\n\t\t \n\t\t /**Add items to places*/\n\t\t Location.places[0].addItem(Item.grabber);\n\t\t Location.places[1].addItem(Item.parcans);\n\t\t Location.places[3].addItem(Item.bookbag);\n\t\t Location.places[4].addItem(Item.ladder);\n\t\t Location.places[7].addItem(Item.drill);\n\t\t Location.places[7].addItem(Item.screws);\n\t\t Location.places[7].addItem(Item.pipe);\n\t\t Location.places[7].addItem(Item.twobyfour);\n\t\t Location.places[8].addItem(Item.rope);\n\t\t Location.places[11].addItem(Item.car);\n\t\t Location.places[12].addItem(Item.twentyDollars);\n\t\t Location.places[16].addItem(Item.tupperware);\n\t\t Location.places[18].addItem(Item.bottle);\n Location.places[19].addItem(Item.plunger);\n Location.places[20].addItem(Item.map);\n Location.places[21].addItem(Item.magnet);\n Location.places[23].addItem(Item.avocados);\n Location.places[25].addItem(Item.noodles);\n\t\t Location.places[26].addItem(Item.Unibrow); \n\t\t \n\t\t /**test purposes*/\n\t\t Location.places[10].addItem(Item.otherWrench);\n//\t\t Location.places[0].addItem(Item.repellent);\n//\t\t Location.places[7].addItem(Item.repellent);\n// Location.places[7].addItem(Item.wrench);\n Location.places[7].addItem(Item.keys);\n\t\t \n\t\t /**Adds items in containers*/\n\t\t Container.setItemsInContainers();\n\t\t }",
"private void prepare()\n {\n\n MapButton mapButton = new MapButton(which);\n addObject(mapButton,58,57);\n Note note = new Note();\n addObject(note,1200,400);\n\n DropDownSuspects dropDownSuspects = new DropDownSuspects();\n addObject(dropDownSuspects,150,150);\n\n DropDownClues dropDownClues = new DropDownClues();\n addObject(dropDownClues,330,150);\n\n TestimonyFrame testimonyFrame = new TestimonyFrame();\n addObject(testimonyFrame,506,548);\n }",
"private void inflateTextLayout(View row, BeadInfo beadInfo) {\n\t\tTextView colorCodeTV = (TextView) row.findViewById(R.id.colorNumber);\n\t\tif (colorCodeTV != null){\n\t\t\tString colorCode = beadInfo.getColorCode();\n\t\t\tif (colorCode != null){\n\t\t\t\tcolorCodeTV.setText(colorCode);\n\t\t\t}\n\t\t}\n\t\tLocation loc = beadInfo.getLocation(); \n\t\tif (loc != null){\n\t\t\tString wing = loc.getWing();\n\t\t\tString locRow = String.valueOf(loc.getRow());\n\t\t\tString locCol = String.valueOf(loc.getCol());\n\t\t\tString quantity = String.valueOf(beadInfo.getQuantity());\n\n\t\t\tTextView wingTV = (TextView) row.findViewById(R.id.beadLocationWing);\n\t\t\tif (wingTV != null){\n\t\t\t\twingTV.setText(wing);\n\t\t\t}\n\t\t\tTextView locRowTV = (TextView) row.findViewById(R.id.beadLocationRow);\n\t\t\tif (locRowTV != null){\n\t\t\t\tlocRowTV.setText(locRow);\n\t\t\t}\n\t\t\tTextView locColTV = (TextView) row.findViewById(R.id.beadLocationColumn);\n\t\t\tif (locColTV != null){\n\t\t\t\tlocColTV.setText(locCol);\n\t\t\t}\n\t\t\tTextView quantityTV = (TextView) row.findViewById(R.id.beadQuantity);\n\t\t\tif (quantityTV != null){\n\t\t\t\tquantityTV.setText(quantity);\n\t\t\t}\n\n\n\n\t\t}\n\n\t\t\n\t}",
"private void updateStationViews() {\n // set name, image, metadata and url\n updateStationNameView(mThisStation);\n updateStationImageView(mThisStation);\n updateStationMetadataView(mThisStation);\n mStationDataSheetStreamUrl.setText(mThisStation.getStreamUri().toString());\n }",
"private void fillLayout(View view) {\n findViews(view);\n\n //collect our bundle and populate our layout\n Bundle bundle = getArguments();\n\n Long id = bundle.getLong(\"id\", 0);\n String companyName = bundle.getString(\"companyName\");\n String modelName = bundle.getString(\"modelName\");\n double tankVolume = bundle.getDouble(\"tankVolume\", 0);\n String gearbox = bundle.getString(\"gearbox\");\n int seats = bundle.getInt(\"seats\", 0);\n String pictureURL = bundle.getString(\"pictureURL\");\n\n //set elements\n new DownLoadImageTask(modelDetailImageView, id, view.getContext()).execute(pictureURL);\n modelDetailIdTextView.setText(Long.toString(id));\n modelDetailCompanyNameTextView.setText(companyName);\n modelDetailModelNameTextView.setText(modelName);\n modelDetailTankVolumeTextView.setText(Double.toString(tankVolume));\n modelDetailGearboxTextView.setText(gearbox);\n modelDetailSeatsTextView.setText(Integer.toString(seats));\n\n getActivity().setTitle(\"Model #\" + id);\n }",
"private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }",
"public void setUnderlay(PlacementUnderlay underlay);",
"@Override\n\tpublic void placementcell() {\n\t\t\n\t}",
"private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }",
"@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n\n horizon = (getHeight() - 100) / density;\n\n // set city coordinates\n float loc[] = new float[3];\n loc[0] = getWidth() / (density * 4);\n loc[1] = getWidth() / (density * 2);\n loc[2] = (getWidth() * 3) / (density * 4);\n\n for (int i = 0; i < cityCount; ++i) {\n cityLocations[i] = new PointF(loc[i], horizon);\n }\n }",
"private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}",
"private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}",
"private void populateUI(Sandwich sandwich) {\n\n mDetailBinding.alsoKnownTv.setText(sandwich.getAlsoKnownAsString());\n mDetailBinding.descriptionTv.setText(sandwich.getDescription());\n mDetailBinding.ingredientsTv.setText(sandwich.getIngredientString());\n mDetailBinding.originTv.setText(sandwich.getPlaceOfOrigin());\n\n Picasso.with(this)\n .load(sandwich.getImage())\n .into(mDetailBinding.imageIv);\n\n setTitle(sandwich.getMainName());\n\n }",
"private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}",
"private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}",
"public DisplayPlaceWorker(CellView position) {\n super(\"display place worker\");\n this.position = position;\n }",
"public MapHolder(LayoutInflater inflater, ViewGroup parent) {\n super(inflater.inflate(R.layout.area_cell, parent, false));\n itemView.setOnClickListener(this);\n //sets the recycler views highet at runtime, divide that by the number of cells that can fit\n int size = parent.getMeasuredHeight() / GameData.ROW + 1;\n ViewGroup.LayoutParams lp = itemView.getLayoutParams();\n lp.width = size;\n lp.height = size;\n image1 = (ImageView)itemView.findViewById(R.id.imagetopleft);\n\n\n }",
"public void layoutSetting(PlayerHolder mHolder){\r\n // update the layout width\r\n mHolder.number.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.name.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.twomade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.twotried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.threemade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.threetried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.ftmade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.fttried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.defrebound.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.offrebound.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.assist.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.block.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.steal.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.turnover.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.foul.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.point.getLayoutParams().width = MultiDevInit.cellW;\r\n // update the layout height\r\n mHolder.number.getLayoutParams().height = MultiDevInit.recordRowH;\r\n }",
"private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }",
"protected abstract void bindingView();",
"static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}",
"public void bindView(final int position) {\n final String output = fullNameArrayList.get(position);\n tvLocations.setText(output);\n\n tvLocations.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final ProgressDialog progressdialog = new ProgressDialog(mActivity);\n progressdialog.setMessage(\"Please Wait....\");\n progressdialog.show();\n\n EditText etStreet = (EditText) LocationFilterFragment.mView.findViewById(R.id.etStreetFilter);\n etStreet.setText(output);\n SharedPreferences sharedPreferences = mActivity.getSharedPreferences(LOCATION_SP, Context.MODE_PRIVATE);\n final SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.clear();\n Call<POJOResults> call = retrofit.getPlaceDetailsInfo(placeIdArrayList.get(position), mActivity.getResources().getString(R.string.google_maps_key));\n call.enqueue(new Callback<POJOResults>() {\n @Override\n public void onResponse(Call<POJOResults> call, Response<POJOResults> response) {\n //close keyboard\n KeyboardUtil.hideKeyboard(mActivity);\n POJOResult result = response.body().getResult();\n SharedPreferences sharedPreferences = mActivity.getSharedPreferences(LOCATION_SP, Context.MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.clear();\n\n for (int i = 0; i < result.getAddressComponents().size(); i++) {\n\n if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"route\"))\n edit.putString(STREET_NAME, result.getAddressComponents().get(i).getLongName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"locality\"))\n edit.putString(CITY_NAME, result.getAddressComponents().get(i).getLongName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"administrative_area_level_1\"))\n edit.putString(STATE_NAME, result.getAddressComponents().get(i).getShortName());\n\n else if (result.getAddressComponents().get(i).getTypes().get(0).equals(\"country\"))\n edit.putString(COUNTRY_NAME, result.getAddressComponents().get(i).getLongName());\n }\n edit.putString(LNG,result.getGeometry().getLocation().getLng().toString());\n edit.putString(LAT,result.getGeometry().getLocation().getLat().toString());\n edit.apply();\n progressdialog.dismiss();\n ((AppCompatActivity) mActivity).getSupportFragmentManager().popBackStack(\"layoutStreet\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n\n @Override\n public void onFailure(Call<POJOResults> call, Throwable t) {\n Toast.makeText(mActivity, \"INTERNET CONNECTION NEEDED\", Toast.LENGTH_LONG).show();\n }\n });\n\n\n }\n });\n }",
"private void setupGuideLayout() {\n bottomSheetGuideTitle.setText(getGuideTitle());\n bottomSheetText.setText(getGuideAbstract());\n bottomSheetSchematic.setImageResource(getGuideSchematics());\n bottomSheetDesc.setText(getGuideDescription());\n // if sensor doesn't image in it's guide and hence returns 0 for getGuideSchematics(), hide the visibility of bottomSheetSchematic\n if (getGuideSchematics() != 0) {\n bottomSheetSchematic.setImageResource(getGuideSchematics());\n } else {\n bottomSheetSchematic.setVisibility(View.GONE);\n }\n // If a sensor has extra content than provided in the standard layout, create a new layout\n // and attach the layout id with getGuideExtraContent()\n if (getGuideExtraContent() != 0) {\n LayoutInflater I = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);\n assert I != null;\n View childLayout = I.inflate(getGuideExtraContent(), null);\n bottomSheetAdditionalContent.addView(childLayout);\n }\n }",
"private void mapViews(View root) {\n etInputValue = root.findViewById(R.id.tiet_fb_input_value);\n etOutputValue = root.findViewById(R.id.tiet_fb_output_value);\n btSaveBaking = root.findViewById(R.id.bt_save_baking);\n\n tvInputPanType = root.findViewById(R.id.tv_bakingfragment_input_pantype);\n tvOutputPanType = root.findViewById(R.id.tv_bakingfragment_output_pantype);\n tvInputDim1Name = root.findViewById(R.id.tv_bakingfragment_input_dim1_name);\n tvOutputDim1Name = root.findViewById(R.id.tv_bakingfragment_output_dim1_name);\n tvInputDim2Name = root.findViewById(R.id.tv_bakingfragment_input_dim2_name);\n tvOutputDim2Name = root.findViewById(R.id.tv_bakingfragment_output_dim2_name);\n tvInputDim1Value = root.findViewById(R.id.tv_bakingfragment_input_dim1_value);\n tvOutputDim1Value = root.findViewById(R.id.tv_bakingfragment_output_dim1_value);\n tvInputDim2Value = root.findViewById(R.id.tv_bakingfragment_input_dim2_value);\n tvOutputDim2Value = root.findViewById(R.id.tv_bakingfragment_output_dim2_value);\n tvInputDim1Unit = root.findViewById(R.id.tv_bakingfragment_input_dim1_units);\n tvOutputDim1Unit = root.findViewById(R.id.tv_bakingfragment_output_dim1_units);\n tvInputDim2Unit = root.findViewById(R.id.tv_bakingfragment_input_dim2_units);\n tvOutputDim2Unit = root.findViewById(R.id.tv_bakingfragment_output_dim2_units);\n ivInputPanIcon = root.findViewById(R.id.iv_input_pan_icon);\n ivOutputPanIcon = root.findViewById(R.id.iv_output_pan_icon);\n btLaunchInputBottomSheet = root.findViewById(R.id.bt_input_pan_edit);\n btLaunchOutputBottomSheet = root.findViewById(R.id.bt_output_pan_edit);\n btCopyBaking = root.findViewById(R.id.bt_copy_baking);\n btPasteBaking = root.findViewById(R.id.bt_paste_baking);\n }",
"void placePowerStation() {\n this.board.get(powerRow).get(powerCol).placePowerStation();\n }",
"private void updateDetailGUI() {\n\t\t\t\t\t\t\tlogo.setImageUrl(place.gallery.get(0));\n\t\t\t\t\t\t\tnomePosto.setText(place.nome);\n\t\t\t\t\t\t\tdescrizione.setText(place.description);\n\t\t\t\t\t\t\tnumtelefono.setText(place.telefono);\n\t\t\t\t\t\t\twebsite.setText(place.website);\n\t\t\t\t\t\t\tcitta.setText(place.cittą);\n\t\t\t\t\t\t\tSmartImageView image_detail;\n\t\t\t\t\t\t\tif (place.gallery.size() > 1) {\n\t\t\t\t\t\t\t\tLinearLayout.LayoutParams imagesLayout = new LinearLayout.LayoutParams(\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\t\t\t\t\t\t\timagesLayout.setMargins(5, 0, 5, 0);\n\t\t\t\t\t\t\t\tfor (int i = 1; i < place.gallery.size(); i++) {\n\t\t\t\t\t\t\t\t\timage_detail = new SmartImageView(\n\t\t\t\t\t\t\t\t\t\t\tDetPlaActivity.this);\n\t\t\t\t\t\t\t\t\timage_detail.setLayoutParams(imagesLayout);\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setScaleType(ScaleType.CENTER_CROP);\n\t\t\t\t\t\t\t\t\timage_detail.getLayoutParams().width = 200;\n\t\t\t\t\t\t\t\t\timage_detail.setImageUrl(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t.get(i));\n\t\t\t\t\t\t\t\t\tfinal int index_id_dialog = i;\n\t\t\t\t\t\t\t\t\timage_detail\n\t\t\t\t\t\t\t\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated\n\t\t\t\t\t\t\t\t\t\t\t\t\t// method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tDialogImage dialog = DialogImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.newInstance(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(index_id_dialog)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.show(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetFragmentManager(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTools.TAG_DIALOG_IMAGE);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tgallery.addView(image_detail);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgalleryContainer.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\tgallery.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbtnMappa.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tString url = \"http://maps.google.com/maps?\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"daddr=\" + place.lat + \",\"\n\t\t\t\t\t\t\t\t\t\t\t+ place.longit;\n\t\t\t\t\t\t\t\t\tIntent mapIntent = new Intent(\n\t\t\t\t\t\t\t\t\t\t\tIntent.ACTION_VIEW, Uri.parse(url));\n\t\t\t\t\t\t\t\t\tstartActivity(mapIntent);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}",
"private void createDisplayEditOverlay() {\n\t}",
"private void populateViews() {\n TextView songName = findViewById(R.id.songName);\n songName.setText(songs.getSongName());\n TextView albumName = findViewById(R.id.albumPlayerAlbumName);\n albumName.setText(songs.getAlbumName());\n TextView artistName = findViewById(R.id.albumPlayerArtistName);\n artistName.setText(songs.getArtistName());\n ImageView albumCover = findViewById(R.id.albumPlayerImage);\n albumCover.setImageResource(songs.getId());\n\n }",
"private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }",
"private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }",
"private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }",
"private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }",
"private void bindView() {\n mToolbar = (Toolbar) findViewById(R.id.tb_main);\n mMainLayout = (CoordinatorLayout) findViewById(R.id.crdl_main);\n mProgressDialog = (AVLoadingIndicatorView) findViewById(R.id.avi_progress_dialog);\n mPersonsView = (RecyclerView) findViewById(R.id.rv_persons);\n mPersonsView.setLayoutManager(new LinearLayoutManager(context));\n }",
"private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }",
"Builder addContentLocation(Place value);",
"private void setUpReference() {\n txt_source = (TextView) findViewById(R.id.txt_source);\n txt_author = (TextView) findViewById(R.id.txt_author);\n txt_title = (TextView) findViewById(R.id.txt_title);\n txt_content = (TextView) findViewById(R.id.txt_content);\n txt_data_author = (TextView) findViewById(R.id.txt_data_author);\n txt_data_title = (TextView) findViewById(R.id.txt_data_title);\n txt_data_content = (TextView) findViewById(R.id.txt_data_content);\n imageView = (ImageView) findViewById(R.id.detsBandImage);\n\n Util.setFont(txt_source, this, 0);\n Util.setFont(txt_content, this, 0);\n Util.setFont(txt_title, this, 0);\n Util.setFont(txt_author, this, 0);\n Util.setFont(txt_data_author, this, 0);\n Util.setFont(txt_data_title, this, 0);\n Util.setFont(txt_data_content, this, 0);\n\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }",
"void bindPaper(Paper paper, int position) {\n mPaper = paper;\n mPapersPosition = position;\n\n mSubscriptionHolder.invalidate();\n mSubscriptionHolder.removeAllViews();\n int idarr[] = {R.id.author1, R.id.author2, R.id.author3};\n int i;\n\n for (i = 0; i < mPaper.getAuthors().size() && i < 3; i++) {\n if (mPapersAuthors.findViewById(idarr[i]) != null) {\n ((TextView) mPapersAuthors.findViewById(idarr[i]))\n .setText(mPaper.getAuthors().get(i));\n }\n }\n while (i < 3) {\n mPapersAuthors.removeView(\n (mPapersAuthors).findViewById(idarr[i]));\n i++;\n }\n\n mPaperTitle.setText(paper.getTitle());\n mPaperTitle.setTag(mPaper.getFileName());\n LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n ArrayList<Qualifier> qualifiers = mPaper.getQualifiers();\n if (qualifiers.size() > 0) {\n for (Qualifier qualifier : qualifiers) {\n LinearLayout circleHolder = (LinearLayout)\n inflater.inflate(R.layout.circle_image, null);\n\n ((CircleImageView) circleHolder.findViewById(R.id.circle_qualifier))\n .setImageDrawable(new ColorDrawable(qualifier.getColor()));\n mSubscriptionHolder.addView(circleHolder);\n }\n }\n }",
"@Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }",
"Board createLayout();",
"@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView matchPlayer1Id = (TextView) view.findViewById(R.id.match_player_1);\n TextView matchPlayer2Id = (TextView) view.findViewById(R.id.match_player_2);\n TextView matchDate = (TextView) view.findViewById(R.id.match_date);\n ImageView imagePlayer1 = (ImageView) view.findViewById(R.id.catalog_player1_image);\n ImageView imagePlayer2 = (ImageView) view.findViewById(R.id.catalog_player2_image);\n ImageView menu = (ImageView) view.findViewById(R.id.match_catalog_item_menu_more);\n\n // Extract properties from cursor\n final int matchID = cursor.getInt(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry._ID));\n final String player1 = cursor.getString(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_PLAYER_1_NAME));\n final String player2 = cursor.getString(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_PLAYER_2_NAME));\n final String array = cursor.getString(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_MATCH_ARRAY_LIST));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_MATCH_DATE));\n final byte[] byteImagePlayer1 = cursor.getBlob(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_PLAYER_1_PICTURE));\n final byte[] byteImagePlayer2 = cursor.getBlob(cursor.getColumnIndexOrThrow(PlayerContract.MatchEntry.COLUMN_PLAYER_2_PICTURE));\n if (byteImagePlayer1 != null) {\n Bitmap bitmapPlayer1 = BitmapFactory.decodeByteArray(byteImagePlayer1, 0, byteImagePlayer1.length);\n imagePlayer1.setImageBitmap(bitmapPlayer1);\n } else {\n imagePlayer1.setImageBitmap(null);\n }\n if (byteImagePlayer2 != null) {\n Bitmap bitmapPlayer2 = BitmapFactory.decodeByteArray(byteImagePlayer2, 0, byteImagePlayer2.length);\n imagePlayer2.setImageBitmap(bitmapPlayer2);\n } else {\n imagePlayer2.setImageBitmap(null);\n }\n\n // Populate fields with extracted properties\n matchPlayer1Id.setText(player1);\n matchPlayer2Id.setText(player2);\n matchDate.setText(date);\n\n menu.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(final View view) {\n switch (view.getId()) {\n case R.id.match_catalog_item_menu_more:\n\n PopupMenu popup = new PopupMenu(view.getContext(), view);\n popup.getMenuInflater().inflate(R.menu.menu_matches_load,\n popup.getMenu());\n popup.show();\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n\n switch (item.getItemId()) {\n case R.id.action_match_load:\n Gson gson = new Gson();\n Type type = new TypeToken<List<UndoRedo>>() {\n }.getType();\n NavigationScoreKeeperActivity.savedState = gson.fromJson(array, type);\n NavigationScoreKeeperActivity.CURRENT_LOAD_MATCH_STATE = true;\n PlayerEditorActivity.NAME_PLAYER1 = player1;\n PlayerEditorActivity.NAME_PLAYER2 = player2;\n if (byteImagePlayer1!=null){\n PlayerEditorActivity.BITMAP_PLAYER1 = BitmapFactory.decodeByteArray(byteImagePlayer1, 0, byteImagePlayer1.length);\n }else{\n PlayerEditorActivity.BITMAP_PLAYER1 = null;\n }\n if (byteImagePlayer2 !=null){\n PlayerEditorActivity.BITMAP_PLAYER2 = BitmapFactory.decodeByteArray(byteImagePlayer2, 0, byteImagePlayer2.length);\n }else {\n PlayerEditorActivity.BITMAP_PLAYER2 = null;\n }\n\n NavigationScoreKeeperActivity.mCurrentMatchUri = ContentUris.withAppendedId(PlayerContract.MatchEntry.CONTENT_URI, matchID);\n ((Activity)context).finish();\n break;\n\n case R.id.action_match_delete:\n Uri currentMatchUri = ContentUris.withAppendedId(PlayerContract.MatchEntry.CONTENT_URI, matchID);\n // Only perform the delete if this is an existing match.\n if (currentMatchUri != null) {\n // Call the ContentResolver to delete the match at the given content URI.\n int deletedMatch = context.getContentResolver().delete(currentMatchUri, null, null);\n if (deletedMatch != 0) {\n Toast.makeText(context, R.string.editor_delete_match_successful, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, R.string.editor_delete_match_failed, Toast.LENGTH_SHORT).show();\n }\n }\n break;\n default:\n break;\n }\n\n return true;\n }\n });\n\n break;\n\n default:\n break;\n }\n }\n });\n\n }",
"private void bindView() {\n\n\t\tfindViewById(R.id.issue_feedback_container).addOnLayoutChangeListener(\n\t\t\t\tnew OnLayoutChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLayoutChange(View v, int left, int top,\n\t\t\t\t\t\t\tint right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tint addItem = bottom - oldBottom;\n\t\t\t\t\t\tif (addItem > 0 && oldBottom > 0) {\n\t\t\t\t\t\t\tScrollView scrollView = (ScrollView) findViewById(R.id.container);\n\t\t\t\t\t\t\tLog.i(TAG, \"deltaHeight=\" + addItem + \";bottom=\"\n\t\t\t\t\t\t\t\t\t+ bottom + \";oldBottom=\" + oldBottom);\n\t\t\t\t\t\t\tscrollView.scrollBy(0, addItem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tissueDescView = (UserInputItemView) findViewById(R.id.issue_desc);\n\t\tissueTopic = (EditItemView) findViewById(R.id.issue_topic);\n\t\taddFile = (AddItemView) findViewById(R.id.issue_add_file);\n\t\tsolverMan = (ChooseItemView) findViewById(R.id.issue_choose_deliver);\n\t\tsolverMan.setContent(\"选择解决人\");\n\t\taddPerson = (AddItemView) findViewById(R.id.issue_add_person);\n\t\taddPerson.setVisibility(View.GONE);\n\t\tsolverMan.setChooseItemClickListener(new 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\tgetDeliveryList(true, solverMan);\n\t\t\t}\n\t\t});\n\n\t\taddFile.setOnCreateItemViewListener(addfileListenr);\n\t\taddPerson.setOnCreateItemViewListener(addfoucsPersonCreateListenr);\n\n\t}",
"private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }",
"private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}",
"@Override\n public View getInfoContents(Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(place.getAddress());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(place.getLatLng().latitude + \",\" + place.getLatLng().longitude);\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", place.getAddress());\n intent.putExtra(\"place_selection\", place_selection_flag);\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }",
"public void setSoundBoardLayout() {\n\n soundBoardList = new SoundBoardListType();\n soundBoardList = db.getAllSoundboards();\n soundBoardNames = new ArrayList();\n\n for (int i = 0; i < soundBoardList.getSoundBoardList().size(); i++) {\n soundBoardNames.add(soundBoardList.getSoundBoardList().get(i).getSoundBoardName());\n }\n\n soundBoardNames.add(\"+\");\n setContentView(R.layout.main_grid);\n GridView gridView = (GridView) findViewById(R.id.soundboardgrid);\n\n soundBoardListAdapter = new ArrayAdapter<String>(this, R.layout.main_sbrowtext, soundBoardNames);\n gridView.setAdapter(soundBoardListAdapter);\n gridView.setOnItemClickListener(openSoundBoardListener);\n gridView.setOnItemLongClickListener(editSoundBoardListener);\n gridView.setBackgroundColor(Color.BLACK);\n gridView.setStretchMode(GridView.STRETCH_COLUMN_WIDTH);\n gridView.getSelector().setAlpha(100);\n\n }",
"private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }",
"private void setARObjectImageWithStaticViews(BeyondarObject beyondarObject, int position, String path) {\n Place place = mPlaceListMain.get(position);\n // First let's get the view, inflate it and change some stuff\n View view = getLayoutInflater().inflate(R.layout.arview_object, null);\n TextView placeNameText = (TextView) view.findViewById(R.id.place_name);\n TextView distanceText = (TextView) view.findViewById(R.id.distance);\n TextView typeText = (TextView) view.findViewById(R.id.type);\n RatingBar ratingBar = (RatingBar) view.findViewById(R.id.ratingBar);\n LinearLayout arObjectLayout = (LinearLayout) view.findViewById(R.id.ar_object_layout);\n arObjectLayout.setAlpha(0.4f);\n\n Location placeLocation = new Location(\"\");\n placeLocation.setLatitude(Double.parseDouble(place.getLat()));\n placeLocation.setLongitude(Double.parseDouble(place.getLng()));\n place.setDistance(mCurrentLocation.distanceTo(placeLocation));\n distanceText.setText(Integer.toString((int) (place.getDistance())) + \" m\");\n /*int test = (int) beyondarObject.getDistanceFromUser();\n distanceText.setText(Integer.toString(test) + \" m\");*/\n\n placeNameText.setText(place.getName());\n placeNameText.setMaxLines(1);\n int maxLength = 10;\n InputFilter[] fArray = new InputFilter[1];\n fArray[0] = new InputFilter.LengthFilter(maxLength);\n placeNameText.setFilters(fArray);\n placeNameText.setEllipsize(TextUtils.TruncateAt.END);\n placeNameText.setSingleLine(true);\n\n\n typeText.setText(place.getType());\n ratingBar.setRating(4.0f);\n try {\n // Now that we have it we need to store this view in the\n // storage in order to allow the framework to load it when\n // it will be need it\n String imageName = TMP_IMAGE_PREFIX + beyondarObject.getName() + \".png\";\n ImageUtils.storeView(view, path, imageName);\n Log.d(\"Set AR object\", \"name \" + beyondarObject.getName());\n // If there are no errors we can tell the object to use the\n // view that we just stored\n beyondarObject.setImageUri(path + imageName);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void estimateLocations( DockLayoutComposition composition ){\n estimateLocations( composition, composition.getLayout().getLocation() );\n }",
"private void getDescriptionRelatedComponents() {\n\t\thelpFrame = ((LinearLayout) findViewById(R.id.helpframe));\n\t\tdescriptionFrame = ((LinearLayout) findViewById(R.id.descriptionframe));\n\t\t// noteFrame = ((LinearLayout) findViewById(R.id.notesFrame));\n\n\t\t// description related linear layouts\n\t\tlinearLayoutDescriptionArea = ((RelativeLayout) findViewById(R.id.descriptionlinearlayout));\n\t\tlinearLayoutDescriptionAreaImages = ((LinearLayout) findViewById(R.id.descriptionImageView));\n\n\t\t// question related linear layouts\n\t\tlinearLayoutQuestionArea = ((RelativeLayout) findViewById(R.id.questionslinearlayout));\n\t\tlinearLayoutQuestionAreaImages = ((LinearLayout) findViewById(R.id.questionImageView));\n\n\t\tdescriptionTextView = (TextView) findViewById(R.id.description_text);\n\t\thelpTextView = (TextView) findViewById(R.id.help_text);\n\t\t// notesTaken = (EditText) findViewById(R.id.noteEditText);\n\n\t\tdescriptionTextView.setMovementMethod(new ScrollingMovementMethod());\n\t\thelpTextView.setMovementMethod(new ScrollingMovementMethod());\n\n\t\t// get the buttons\n\t\tshowDetails = ((Button) findViewById(R.id.showdescription));\n\t\tshowDetailsIv = (ImageView) findViewById(R.id.showdescription_iv);\n\n\t\tshowHelp = ((Button) findViewById(R.id.showhelp));\n\t\tshowHelpIv = (ImageView) findViewById(R.id.showhelp_iv);\n\t\t// showNotes = ((Button) findViewById(R.id.takenotes));\n\t\t// saveNotes = ((Button) findViewById(R.id.saveNotes));\n\t\t// cancelNotes = ((Button) findViewById(R.id.cancelNotes));\n\n\t\t// get the image view\n\t\tfirstImageVievDescription = ((ImageView) findViewById(R.id.imageTab));\n\t\tsecondImageVievDescription = ((ImageView) findViewById(R.id.imageVoiceRecognition));\n\t\tthirdImageVievDescription = ((ImageView) findViewById(R.id.imageVoiceInput));\n\n\t\t// get the spinner\n\t\tdescriptionQuestionSpinner = (Spinner) findViewById(R.id.selectdescriptionquestion);\n\n\t\t// add button click listeners\n\t\t// help button\n\t\tshowHelp.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdescriptionFrame.setVisibility(View.GONE);\n\t\t\t\t// noteFrame.setVisibility(View.GONE);\n\t\t\t\thelpFrame.setVisibility(View.VISIBLE);\n\t\t\t\tshowHelpIv.setSelected(true);\n\t\t\t\tshowDetailsIv.setSelected(false);\n\t\t\t\t// showNotes.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\t// description button\n\t\tshowDetails.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thelpFrame.setVisibility(View.GONE);\n\t\t\t\t// noteFrame.setVisibility(View.GONE);\n\t\t\t\tdescriptionFrame.setVisibility(View.VISIBLE);\n\t\t\t\tshowDetailsIv.setSelected(true);\n\t\t\t\tshowHelpIv.setSelected(false);\n\t\t\t\t// showNotes.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\t// // take notes button\n\t\t// showNotes.setOnClickListener(new OnClickListener() {\n\t\t// @Override\n\t\t// public void onClick(View v) {\n\t\t// helpFrame.setVisibility(View.GONE);\n\t\t// descriptionFrame.setVisibility(View.GONE);\n\t\t// noteFrame.setVisibility(View.VISIBLE);\n\t\t// showNotes.setSelected(true);\n\t\t// showDetails.setSelected(false);\n\t\t// showHelp.setSelected(false);\n\t\t// }\n\t\t// });\n\n\t\t// // save notes\n\t\t// saveNotes.setOnClickListener(new OnClickListener() {\n\t\t// @Override\n\t\t// public void onClick(View v) {\n\t\t// UtilityMethods.saveNotes(AnalysisActivity.this, FOLDER_NAME,\n\t\t// NOTES_FILE_INTERNAL_STORAGE, notesTaken.getText()\n\t\t// .toString());\n\t\t// notesReadFromFileStorage = notesTaken.getText().toString();\n\t\t// }\n\t\t// });\n\t\t//\n\t\t// // clear notes\n\t\t// cancelNotes.setOnClickListener(new OnClickListener() {\n\t\t// @Override\n\t\t// public void onClick(View v) {\n\t\t// // restore the previous notes\n\t\t// notesTaken.setText(notesReadFromFileStorage);\n\t\t// }\n\t\t// });\n\n\t\t// selection listener for spinner\n\t\tdescriptionQuestionSpinner\n\t\t\t\t.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\tString selectedItem = descriptionQuestionSpinner\n\t\t\t\t\t\t\t\t.getSelectedItem().toString();\n\t\t\t\t\t\tcontrolVisibilityAndAssignParameters(selectedItem);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\tif (locale.getLanguage().equalsIgnoreCase(\n\t\t\t\tgetString(R.string.germalanguagelocale))) {\n\t\t\t// load the description for description fragment\n\t\t\tdescriptionFileData = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tDESCRIPTION_FILE_NAME_DE, FOLDER_NAME, this);\n\n\t\t\t// load the help file data\n\t\t\thelpFileData = UtilityMethods.loadDataFromFile(HELP_FILE_NAME_DE,\n\t\t\t\t\tFOLDER_NAME, this);\n\t\t} else {\n\n\t\t\t// load the description for description fragment\n\t\t\tdescriptionFileData = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tDESCRIPTION_FILE_NAME, FOLDER_NAME, this);\n\n\t\t\t// load the help file data\n\t\t\thelpFileData = UtilityMethods.loadDataFromFile(HELP_FILE_NAME,\n\t\t\t\t\tFOLDER_NAME, this);\n\n\t\t}\n\n\t\t// // notes read from the file storage\n\t\t// notesReadFromFileStorage =\n\t\t// UtilityMethods.readNotesFromInternalStorage(\n\t\t// this, FOLDER_NAME, NOTES_FILE_INTERNAL_STORAGE);\n\n\t\t// set the text data\n\t\thelpTextView.setText(helpFileData);\n\t\tdescriptionTextView.setText(descriptionFileData);\n\t\t// notesTaken.setText(notesReadFromFileStorage);\n\n\t\t// initially help view is visible\n\t\thelpFrame.setVisibility(View.VISIBLE);\n\t\tshowHelpIv.setSelected(true);\n\n\t}",
"protected abstract void iniciarLayout();",
"private void prepareInfo() {\n if (plane != null) {\n String planeType = plane.getType();\n ArrayList<String> airports = new ArrayList<>();\n\n if (planeType.equalsIgnoreCase(\"Passenger Plane\")) {\n World.getPublicAirports().forEach(publicAirport ->\n airports.add(publicAirport.getName())\n );\n } else if (planeType.equalsIgnoreCase(\"Military Plane\")) {\n World.getMilitaryAirports().forEach(militaryAirport ->\n airports.add(militaryAirport.getName())\n );\n }\n\n startAirport.setItems(FXCollections.observableArrayList(airports));\n endAirport.setItems(FXCollections.observableArrayList(airports));\n startAirport.getSelectionModel().select(plane.getStartBuilding().getName());\n endAirport.getSelectionModel().select(plane.getEndBuilding().getName());\n\n title.setText(\"PLANE INFO\");\n name.setText(plane.getName());\n speed.setText(String.valueOf(plane.getSpeed()));\n fuelLevel.setText(String.valueOf(plane.getFuelLevel()));\n type.setText(plane.getType());\n\n if (plane.isEmergencyLanding()) {\n landButton.setText(\"Take off\");\n } else {\n landButton.setText(\"Emergency land\");\n }\n\n if (plane.getType().equalsIgnoreCase(\"Military Plane\")) {\n MilitaryPlane plane = (MilitaryPlane) this.plane;\n weapon.setText(plane.getWeaponType().weaponType());\n passengers.setVisible(false);\n passengers.setMaxHeight(0);\n } else {\n PassengerPlane plane = (PassengerPlane) this.plane;\n passengers.setItems(FXCollections.observableArrayList(plane.getPassengerContainer().getPassengers()));\n }\n }\n }",
"public Container doMakeContents() {\n\n positionAtClickCbx = new JCheckBox(\"Position at click\", false);\n positionLabel = new JLabel(\" \", JLabel.LEFT);\n\n // make entry boxes for range ring center location; \n // preload with current position.\n boolean set = false;\n if (Double.isNaN(lat)) {\n lat = rangeRings.getCenterLatitude();\n } else {\n set = true;\n }\n if (Double.isNaN(lon)) {\n lon = rangeRings.getCenterLongitude();\n } else {\n set = true;\n }\n if (set) {\n try {\n rangeRings.setCenterPoint(lat, lon);\n rescaleLabels();\n } catch (Exception exc) {\n logException(\"setting center point\", exc);\n }\n }\n\n latField = new JTextField(getDisplayConventions().formatLatLon(lat),\n 7);\n latField.addActionListener(this);\n latField.setActionCommand(CMD_CENTER_LAT);\n\n lonField = new JTextField(getDisplayConventions().formatLatLon(lon),\n 7);\n lonField.addActionListener(this);\n lonField.setActionCommand(CMD_CENTER_LON);\n\n\n double[] stretchy = {\n 0, 0.0, 1.0, 1.0, 1.0, 0.0, 1.0\n };\n distanceUnitLabels = new ArrayList<JLabel>();\n String distUnitText = \" (\"+getDisplayUnit()+\") \";\n for (int i = 0; i < 3; i++) {\n distanceUnitLabels.add(new JLabel(distUnitText));\n }\n \n // Create the link button for Color and Line Width\n linkColorAndLineWidthButton =\n GuiUtils.getToggleImageButton(\"/auxdata/ui/icons/link_break.png\",\n \"/auxdata/ui/icons/link.png\", 0, 0,\n true);\n linkColorAndLineWidthButton.setContentAreaFilled(false);\n // Initialize link state as true (linked)\n linkColorAndLineWidthButton.setSelected(true);\n linkColorAndLineWidthButton.setToolTipText(\n \"If linked, Color and Line Width changes apply to Range Rings, Radials, and Labels.\");\n \n rrColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_RR_COLOR, rrColor);\n rrColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel rrColPanel = new JPanel(new FlowLayout());\n rrColPanel.add(rrColorSwatch);\n\n radColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_RAD_COLOR, radColor);\n radColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel radColPanel = new JPanel(new FlowLayout());\n radColPanel.add(radColorSwatch);\n\n lblColorSwatch = (ColorSwatchComponent) makeColorBox(CMD_LBL_COLOR, lblColor);\n lblColorSwatch.setPreferredSize(Constants.DEFAULT_COLOR_PICKER_SIZE);\n JPanel lblColPanel = new JPanel(new FlowLayout());\n lblColPanel.add(lblColorSwatch);\n \n rrComboBox = makeLineWidthBox(CMD_RR_WIDTH, rrWidth);\n radComboBox = makeLineWidthBox(CMD_RAD_WIDTH, radWidth);\n lblComboBox = makeLineWidthBox(CMD_LBL_WIDTH, lblWidth);\n \n Component[] comps = new Component[] {\n \n // Header\n GuiUtils.filler(), \n GuiUtils.cLabel(\"Visible\"),\n GuiUtils.cLabel(\" Spacing \"), \n GuiUtils.cLabel(\" Unit \"),\n GuiUtils.cLabel(\" Color \"), \n GuiUtils.filler(),\n GuiUtils.cLabel(\" Line Width \"), \n \n // Row 1\n GuiUtils.rLabel(\"Range Rings: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_RR_VIS, rrVisible)),\n makeSpacingBox(rrSpacingList, CMD_RR_SPACING, rrSpacing),\n distanceUnitLabels.get(0), \n rrColPanel,\n GuiUtils.filler(), rrComboBox,\n \n // Row 2\n GuiUtils.rLabel(\"Radials: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_RAD_VIS, radVisible)),\n makeSpacingBox(radSpacingList, CMD_RAD_SPACING, radSpacing),\n new JLabel(\" (deg) \"), \n radColPanel,\n GuiUtils.filler(), radComboBox,\n \n // Row 3\n GuiUtils.rLabel(\"Labels: \"),\n GuiUtils.hbox(new JLabel(\" \"),\n makeCbx(\"\", CMD_LBL_VIS, lblVisible)),\n makeSpacingBox(lblSpacingList, CMD_LBL_SPACING, lblSpacing),\n distanceUnitLabels.get(1), \n lblColPanel,\n GuiUtils.filler(), lblComboBox,\n \n // Final row\n GuiUtils.rLabel(\" \"), new JLabel(\"Max. Radius: \"),\n makeSpacingBox(rrMaxRadiusList, CMD_RR_RADIUS, rrMaxRadius),\n distanceUnitLabels.get(2), GuiUtils.filler(),\n linkColorAndLineWidthButton\n };\n\n GuiUtils.tmpInsets = new Insets(5, 5, 5, 5);\n JPanel topInner = GuiUtils.doLayout(comps, 7, stretchy, GuiUtils.WT_N);\n JPanel topOuter = new JPanel(new FlowLayout(FlowLayout.LEADING));\n topOuter.add(topInner);\n \n List bottomComps = new ArrayList();\n\n stationCbx = new JComboBox();\n stationCbx.setFont(Font.decode(\"monospaced\"));\n\n setStations();\n stationCbx.setSelectedIndex(stationIdx);\n stationCbx.addActionListener(this);\n stationCbx.setActionCommand(CMD_STATIONNAMES);\n bottomComps.add(GuiUtils.rLabel(\"Location: \"));\n bottomComps.add(GuiUtils.left(GuiUtils.wrap(stationCbx)));\n\n bottomComps.add(GuiUtils.rLabel(\"Center:\"));\n bottomComps.add(\n GuiUtils.left(\n GuiUtils.hflow(\n Misc.newList(\n new JLabel(\" Latitude: \"), latField,\n new JLabel(\" Longitude: \"), lonField))));\n bottomComps.add(GuiUtils.rLabel(\" \"));\n bottomComps.add(GuiUtils.left(positionAtClickCbx));\n\n bottomComps.add(GuiUtils.rLabel(\"Vertical Position:\"));\n bottomComps.add(GuiUtils.hgrid(doMakeZPositionSlider(),\n GuiUtils.filler()));\n\n GuiUtils.tmpInsets = new Insets(5, 5, 5, 5);\n JPanel bottom = GuiUtils.doLayout(bottomComps, 2, GuiUtils.WT_NY,\n GuiUtils.WT_N);\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.add(\"Location\", GuiUtils.top(GuiUtils.inset(bottom, 5)));\n tabbedPane.add(\"Settings\", GuiUtils.top(GuiUtils.inset(topOuter, 5)));\n return tabbedPane;\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 final Establishment est = Establishment.getEstablishmentByUrl(mDataset.get(position));\n final SpannableStringBuilder builder = new SpannableStringBuilder();\n\n builder.append(est.name);\n builder.append(\"\\n\");\n int point = builder.length();\n builder.setSpan(new TextAppearanceSpan(mContext,\n R.style.ListPrimaryTextAppearance), 0, point, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n builder.setSpan(new EllipsizeLineSpan(), 0, point, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n\n builder.append(est.location.address);\n builder.setSpan(new TextAppearanceSpan(mContext,\n R.style.ListSecondaryTextAppearance), point, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n builder.setSpan(new EllipsizeLineSpan(), point, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n holder.mTextView.setText(builder);\n }",
"private void createLocationFragmentAndInflate() {\n Criteria criteria = new Criteria();\n\n //sending criteria to service\n provider = locationManager.getBestProvider(criteria, true);\n\n }",
"public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }",
"private void setLocations(){\n\t\tbuttonArea.setSize(FRAME_WIDTH, 50);\n\t\tbuttonArea.setLocation(0, 0);\n\t\tboardOne.setSize(600,600);\n\t\tboardOne.setLocation(0,buttonArea.getHeight());\n\t\tboardTwo.setSize(600,600);\n\t\tboardTwo.setLocation(boardOne.getWidth() + 10,buttonArea.getHeight());\n\t\tboardOne.setIcon(background);\n\t\tboardTwo.setIcon(background);\n\t\tnewGame.setSize(100,20);\n\t\tnewGame.setLocation(5,5);\n\t\tcp1shipLabel.setSize(200,15);\n\t\tcp1shipLabel.setLocation((boardOne.getWidth() / 2) - (cp1shipLabel.getWidth() / 2),buttonArea.getHeight() - cp1shipLabel.getHeight() - 5);\n\t\tcp1shipLabel.setVisible(false);\n\t\tcp2shipLabel.setSize(200,15);\n\t\tcp2shipLabel.setLocation(boardTwo.getX() + (boardTwo.getWidth() / 2) - (cp2shipLabel.getWidth() / 2),buttonArea.getHeight() - cp2shipLabel.getHeight() - 5);\n\t\tcp2shipLabel.setVisible(false);\n\t}",
"public void setPlace(org.sagebionetworks.web.client.place.Layer place) {\r\n \t\tthis.place = place;\r\n \t\tthis.layerId = place.getLayerId();\t\t\r\n \t\tthis.showDownload = place.getDownload();\r\n \t\tview.setPresenter(this);\r\n \t\trefresh();\r\n \t}",
"public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }",
"private void layout() {\n \n // Disable redrawing\n toolbar.setRedraw(false);\n\n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n labelAttribute.setText(labelAttribute.getText());\n labelTransformations.setText(labelTransformations.getText());\n labelApplied.setText(labelApplied.getText());\n labelSelected.setText(labelSelected.getText());\n labelAttribute.pack();\n labelTransformations.pack();\n labelApplied.pack();\n labelSelected.pack();\n \n // Adjust size of items and composite\n Rectangle bounds = toolbar.getBounds();\n int remaining = toolbar.getBounds().width;\n for (final ToolItem item : toolitems) {\n remaining -= item.getBounds().width;\n }\n remaining -= OFFSET;\n infoComposite.setSize(remaining, bounds.height);\n infoItem.setWidth(remaining);\n int locationY = (infoComposite.getBounds().height - labelSelected.getBounds().height)/2;\n\n // Layout label\n int locationX = remaining - labelApplied.getSize().x;\n labelApplied.setLocation(locationX, locationY);\n if (locationX < 0) labelApplied.setVisible(false);\n else labelApplied.setVisible(true);\n \n // Layout label\n locationX -= labelSelected.getSize().x + OFFSET;\n labelSelected.setLocation(locationX, locationY);\n if (locationX < 0) labelSelected.setVisible(false);\n else labelSelected.setVisible(true);\n\n // Layout label\n locationX -= labelTransformations.getSize().x + OFFSET;\n labelTransformations.setLocation(locationX, locationY);\n if (locationX < 0) labelTransformations.setVisible(false);\n else labelTransformations.setVisible(true);\n \n\n // Layout label\n locationX -= labelAttribute.getSize().x + OFFSET;\n labelAttribute.setLocation(locationX, locationY);\n if (locationX < 0) labelAttribute.setVisible(false);\n else labelAttribute.setVisible(true);\n \n // Redraw\n toolbar.setRedraw(true);\n toolbar.redraw();\n \n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n infoComposite.pack(true);\n }",
"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 setupView()\n\t{\n\t\tnameET = (EditText)findViewById(R.id.newPlaceName);\n\t\taddressET = (EditText)findViewById(R.id.placeAddress);\n\t\tcityET = (EditText)findViewById(R.id.cityET);\n\t\t\n\t\tView b = findViewById(R.id.placeBtnCancel);\n\t\tb.setOnTouchListener(TOUCH);\n\t\tb.setOnClickListener(this);\n\n\t\tView b2 = findViewById(R.id.btnAcceptPlace);\n\t\tb2.setOnTouchListener(TOUCH);\n\t\tb2.setOnClickListener(new View.OnClickListener() {\n\t\t @Override\n\t\t public void onClick(View v) {\n\t\t \tplacename = nameET.getText().toString();\n\t\t \tplaceaddress = addressET.getText().toString();\n\t\t \tplacecity = cityET.getText().toString();\n\t\t \tif(placename.equals(\"\") || placeaddress.equals(\"\") || placecity.equals(\"\")){\n\t\t \t\tToast.makeText(context, \"Fill in all fields!\", Toast.LENGTH_SHORT).show();\n\t\t \t\tfinish();\n\t\t \t\treturn;\n\t\t \t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tList<Address> list = gc.getFromLocationName(placeaddress + placecity, 1);\n\t\t\t\t\tif(list.size() == 0){\n\t\t\t \t\tToast.makeText(context, \"Place does not exist!\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\tfinish();\n\t\t\t \t\treturn;\n\t\t\t \t}\n\t\t\t\t\tAddress add = list.get(0);\n\t\t\t\t\tDouble lat = add.getLatitude();\n\t\t\t\t\tDouble lng = add.getLongitude();\n\t\t\t\t\tPlace p = new Place(placename, placeaddress, placecity, ID, String.valueOf(lat), String.valueOf(lng));\n\t\t\t\t\tcurrentMember.addPlace(p);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew UpdatePlaceTask(lat, lng).execute().get();\n\t\t\t\t\t\tInputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\timm.hideSoftInputFromWindow(cityET.getWindowToken(),0);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t\t});\n\t}",
"private void geometry()\r\n\t\t{\r\n\t\t//default : spinners are at min and max value, so that the user\r\n\t\t//know what range he can work through at first glance\r\n\t\tspinMin = createRangedSpinner(min, min, max);\r\n\t\tspinMax = createRangedSpinner(max, min, max);\r\n\r\n\t\t//prepare internal grid layout\r\n\t\tgridLayout = new GridLayout(2, 2);\r\n\t\tthis.setLayout(gridLayout);\r\n\r\n\t\t//add components to grid pannel\r\n\t\tthis.add(new JCenter(new JLabel(descMinspinner)));\r\n\t\tthis.add(new JCenter(spinMin));\r\n\t\tthis.add(new JCenter(new JLabel(descMaxspinner)));\r\n\t\tthis.add(new JCenter(spinMax));\r\n\r\n\t\t}",
"private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }",
"public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"@Override\n public void onClick(double x, double y, Poi poi) {\n\n String name;\n if (poi != null) {\n name = poi.getTitles().get(0).getText();\n } else {\n name = \"선택위치\";\n }\n\n Vector3 position = new Vector3(x, y, 0);\n\n Location location = new Location(position, currentFloor, name);\n String floorName = floorInfoList\n .stream()\n .filter(floorInfo -> floorInfo.getLevel() == currentFloor)\n .map(floorInfo -> floorInfo.getName().get(0).getText())\n .findFirst()\n .orElse(\"\");\n\n LocationInfo locationInfo = new LocationInfo(location, floorName);\n layoutPoiInfo.bind(locationInfo);\n if (layoutNavigationInfo.isShown()) {\n layoutNavigationInfo.hide();\n }\n }",
"private static void drawTableCompenents() {\n\t\ttopColumn = new JLabel(\"location\");\r\n\t\ttopColumn.setLocation(200, 0);\r\n\t\tExtension.instance.add(topColumn);\r\n\t}",
"void fillInnerParts() {\n // TODO: change the method to get each category panel\n adminPanel = new CategoryPanel(logic.getUiTaskList().getAdminList(), \"Admin\");\n categoryPanelPlaceholder.getChildren().add(adminPanel.getRoot());\n topicPanel = new CategoryPanel(logic.getUiTaskList().getTopicList(), \"Topic\");\n categoryPanelPlaceholder.getChildren().add(topicPanel.getRoot());\n ipPanel = new CategoryPanel(logic.getUiTaskList().getIpList(), \"Ip\");\n categoryPanelPlaceholder.getChildren().add(ipPanel.getRoot());\n tpPanel = new CategoryPanel(logic.getUiTaskList().getTpList(), \"Tp\");\n categoryPanelPlaceholder.getChildren().add(tpPanel.getRoot());\n refreshTitle();\n\n int currentWeekNumber = AppUtil.getCurrentWeekNumber().getWeekValueInt();\n Double num = (double) currentWeekNumber / (double) 13;\n progressBar.setProgress(num);\n\n weekDisplay = new WeekDisplay(currentWeekNumber);\n\n weekDisplayPlaceholder.getChildren().add(weekDisplay.getRoot());\n\n feedbackBox = new FeedbackBox();\n feedbackBoxPlaceholder.getChildren().add(feedbackBox.getRoot());\n CommandBox commandBox = new CommandBox(this::executeCommand); // bottom of Ace CS2103/T\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n\n FloatingActionButton floatingButton = (FloatingActionButton) view.findViewById(R.id.deleteItemButton);\n floatingButton.setOnClickListener(this);\n\n //define name\n String name = cursor.getString(cursor.getColumnIndex(from[0]));\n TextView titleName = (TextView) view.findViewById(to[0]);\n titleName.setText(name);\n\n ID = cursor.getString(cursor.getColumnIndex(from[1]));\n TextView Idview = (TextView) view.findViewById(to[1]);\n Idview.setText(ID);\n }",
"private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}",
"IOverlayStyle location(int leftX, int rightX, int topY, int bottomY);"
]
| [
"0.61617094",
"0.6120384",
"0.6061554",
"0.5957414",
"0.59299314",
"0.58376616",
"0.5825546",
"0.5820981",
"0.5774574",
"0.57653016",
"0.57525414",
"0.57434744",
"0.5714683",
"0.57100743",
"0.5679916",
"0.5679614",
"0.5664161",
"0.565707",
"0.56386304",
"0.56096494",
"0.5600188",
"0.5573959",
"0.5549007",
"0.5524047",
"0.55237794",
"0.55149513",
"0.5509727",
"0.54734975",
"0.54697317",
"0.54582375",
"0.54309523",
"0.54304934",
"0.5424101",
"0.5409725",
"0.5409698",
"0.53999275",
"0.5385981",
"0.538585",
"0.53772646",
"0.53772265",
"0.5374067",
"0.536624",
"0.5363382",
"0.5352527",
"0.53496534",
"0.53361773",
"0.53313637",
"0.531815",
"0.5316306",
"0.53132343",
"0.5312378",
"0.53059924",
"0.53053916",
"0.5301548",
"0.52912307",
"0.52884334",
"0.5287851",
"0.52749354",
"0.52741885",
"0.5269126",
"0.52687883",
"0.52680755",
"0.52665347",
"0.5255556",
"0.5245598",
"0.52424073",
"0.52412295",
"0.52368426",
"0.52345186",
"0.5230209",
"0.5220305",
"0.5220303",
"0.521481",
"0.5211778",
"0.52103996",
"0.5209428",
"0.5201956",
"0.51951754",
"0.51944494",
"0.519062",
"0.5187995",
"0.51869553",
"0.5185543",
"0.51822096",
"0.51799536",
"0.5179797",
"0.5178904",
"0.51785535",
"0.51745677",
"0.5170533",
"0.51684916",
"0.516492",
"0.51635426",
"0.5161948",
"0.5161669",
"0.5161528",
"0.51596457",
"0.51590085",
"0.5151645",
"0.5150623"
]
| 0.6424184 | 0 |
Changes the privacy of the place (public private) | private void changePlacePrivacy() {
this.place.setPublic(!this.place.getPublic());
this.place.saveInBackground();
if(this.place.getPublic()) {
this.binding.btnPublic.setText(R.string.make_private);
} else {
this.binding.btnPublic.setText(R.string.make_public);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }",
"public void setPrivacy(String privacy) throws ParseException;",
"public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }",
"@Override\n public void savePrivy(@NonNull Privy privy) {\n }",
"public void setPrivacy(@Nullable final AlbumPrivacy privacy) {\n mPrivacy = privacy;\n }",
"public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }",
"public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }",
"public void setPrivate(boolean b) {\n isPrivate = b;\n }",
"@Override\n public boolean isPrivate() {\n return true;\n }",
"public void setIsPublic(boolean isPublic)\n {\n this.isPublic = isPublic;\n }",
"void setVisibility(ASTAccessSpecNode accessSpec)\n {\n if (accessSpec.isPublic())\n this.visibility = Visibility.PUBLIC;\n else if (accessSpec.isPrivate())\n this.visibility = Visibility.PRIVATE;\n }",
"public void setPrivate( boolean newValue ) {\n privateMode = newValue;\n }",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"void setAccessible(boolean accessible);",
"@Override\n public void setVisibility(long visibility) {\n throw new UnsupportedOperationException();\n }",
"public void setPrivado(Boolean privado) {\n this.privado = privado;\n }",
"@Override\n public void pub() {\n // can only be public\n }",
"public void setPrivateSpaceRestricted(Boolean privateSpaceRestricted) {\n this.privateSpaceRestricted = privateSpaceRestricted;\n }",
"public void setIsPublic( boolean isPublic )\n\t{\n\t\tthis.isPublic\t= isPublic;\n\t}",
"public void setIsPublic(Boolean isPublic) {\n\t\tthis.isPublic = isPublic;\n\t}",
"public void makeReadOnly();",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"@Override\n public void setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess,\n Role role) {\n ((Preference) (newAccess)).setVisibleAtRole(role);\n }",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void privacy(View view)\n {\n startActivity(new Intent(getApplicationContext(),PrivacyPolicy.class));\n finish();\n }",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"public boolean isPrivate() {\n return false;\n }",
"boolean isPrivate();",
"public String getPrivacy();",
"@Override\n\t/**\n\t * sets the visibility modifiers for the specific class\n\t * \n\t * @param s \n\t */\n\tpublic void setVisability(String s) {\n\t\tvisability = s;\n\n\t}",
"private void fineLocationPermissionGranted() {\n UtilityService.addGeofences(this);\n UtilityService.requestLocation(this);\n }",
"private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }",
"public void makePublic(String route) throws IOException {\n if (!hasRoute(route)) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n ServiceDef service = registry.get(route);\n if (service == null) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n if (service.isPrivate()) {\n // set it to public\n service.setPrivate(false);\n log.info(\"Converted {} to PUBLIC\", route);\n advertiseRoute(route);\n }\n }",
"public void updateDisclosure() {\n if (this.mDevicePolicyManager != null) {\n if (this.mDozing || !DevicePolicyManagerCompat.isDeviceManaged(this.mDevicePolicyManager)) {\n this.mDisclosure.setVisibility(8);\n } else {\n CharSequence organizationName = DevicePolicyManagerCompat.getDeviceOwnerOrganizationName(this.mDevicePolicyManager);\n if (organizationName != null) {\n this.mDisclosure.switchIndication((CharSequence) this.mResources.getString(R.string.do_disclosure_with_name, new Object[]{organizationName}));\n } else {\n this.mDisclosure.switchIndication((int) R.string.do_disclosure_generic);\n }\n this.mDisclosure.setVisibility(0);\n }\n }\n }",
"public void setPlace(org.sagebionetworks.web.client.place.Layer place) {\r\n \t\tthis.place = place;\r\n \t\tthis.layerId = place.getLayerId();\t\t\r\n \t\tthis.showDownload = place.getDownload();\r\n \t\tview.setPresenter(this);\r\n \t\trefresh();\r\n \t}",
"public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}",
"private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}",
"@Override\r\n\tpublic void personalLoanInterest() {\n\t\t\r\n\t}",
"@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }",
"public void makeCurrentUser() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n\n // Show the \"You\" TextView\n mYouTv.setVisibility(View.VISIBLE);\n }",
"public void setAccesibleToSpecialNeeds(boolean _accesibleToSpecialNeeds)\r\n\t{\r\n\t\tthis._accessibleToSpecialNeeds=_accessibleToSpecialNeeds;\r\n\t}",
"public void changeOwner(String o){\n owner = o;\r\n }",
"public void moverAPacman(Direccion direccion) {\n // TODO implement here\n }",
"public void checkPublic() {\n }",
"public void makeItPublic(int exam_ID){\n StringBuffer sql1=new StringBuffer();\n sql1.append(\"UPDATE Exam \");\n sql1.append(\"SET isPublic=1\");\n sql1.append(\" where Exam_ID='\");\n sql1.append(exam_ID+\"';\");\n StringBuffer sql2=new StringBuffer();\n sql2.append(\"UPDATE Exam \");\n sql2.append(\"SET isPublic=0\");\n sql2.append(\" where isPublic=1;\");\n\n \n SQLHelper sQLHelper = new SQLHelper();\n sQLHelper.sqlConnect();\n \n sQLHelper.runUpdate(sql2.toString());\n sQLHelper.runUpdate(sql1.toString());\n \n }",
"String privacyPolicy();",
"public void ownershipChange(int type) {\n\tif (type == CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED) {\n\t //PortRequestedDialog prd = new PortRequestedDialog(parent);\n\t System.out.println(\"UNABLE TO CONNECT!! PORT IS ACCESSED BY OTHER USER\");\n ezlink.info(\"ownershipChange() : UNABLE TO CONNECT!! PORT IS ACCESSED BY OTHER USER \" );\n\t}\n }",
"@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}",
"@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"public PersonInfo privateSpaceRestricted(final Boolean privateSpaceRestricted) {\n this.privateSpaceRestricted = privateSpaceRestricted;\n return this;\n }",
"@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"protected void pokazOblicz() {\n if (czyImie && czyNazwisko && czyLiczby)\n oblicz.setVisibility(Button.VISIBLE);\n\n else\n oblicz.setVisibility(Button.INVISIBLE);\n }",
"public static aVisibility setVisibility()\n {\n read_if_needed_();\n \n return _set_visibility;\n }",
"@Override\n public void onClick(View v) {\n if (chkPrivate != null) {\n chkPublic.setChecked(false);\n }\n chkPrivate.setChecked(true);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(OwnerMapActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"public void setPlace(View view){\n setPlace = (RelativeLayout)findViewById(R.id.setPlaceRelativeLayout);\n setPlace.setVisibility(View.VISIBLE);\n\n orientation = 0; // resets all params before new placement\n angleF = 0;\n rotateRight = 0;\n rotateLeft = 0;\n placeX = 0;\n placeY = 0;\n\n }",
"void markForSecOp(Doctor from) throws InvalidDoctorException {\n\t\tif (!canHaveAsDoctor(from))\n\t\t\tthrow new InvalidDoctorException(\"Invalid Doctor given to request for second opinion!\");\n\t\tthis.secOpFlag = true;\n\t\tthis.approved = false;\n\t\tthis.secopDoc = from;\n\t}",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"public boolean setVisible(boolean visible) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}",
"public void setAccessibleName(String name) {\n // Not supported\n }",
"public void changeHasInvisibility()\r\n\t{\r\n\t\thasInvisibility = !hasInvisibility;\r\n\t}",
"private void changePermissionsInUI(int position) {\n if (permissions.get(position).equals(\"Viewer\")) {\n permissions.set(position, \"Editor\");\n items.set(position, users.get(position) + \": Editor\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to an Editor\", Toast.LENGTH_SHORT).show();\n } else if (permissions.get(position).equals(\"Editor\")) {\n permissions.set(position, \"Viewer\");\n items.set(position, users.get(position) + \": Viewer\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to a Viewer\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}",
"public void warenkorbLeeren(Person p) throws AccessRestrictedException{\r\n\t\tif(istKunde(p)){\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb leeren\\\"\");\r\n\t\t}\r\n\t}",
"public IPermissionOwner saveOwner(IPermissionOwner owner);",
"public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }",
"public void setAccessibleDescription(String name) {\n // Not supported\n }",
"public static void set_SetVisibility(aVisibility v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSetVisibilityCmd,\n \t\t (byte) v.value());\n UmlCom.check();\n \n _set_visibility = v;\n }",
"public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;",
"public void setPlace(String place){\n this.place = place;\n }",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"public void setVisibleToUser(boolean visibleToUser) {\n/* 845 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void setOwner(String owner);",
"public void setReadOnly(boolean isReadOnly);",
"@Override\n public void onClick(View v) {\n if (chkPublic != null) {\n chkPrivate.setChecked(false);\n }\n chkPublic.setChecked(true);\n }",
"@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}",
"public void setReadOnly(boolean isReadOnly) {\n this.isReadOnly = isReadOnly;\n deckPanel.showWidget(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(Userhome.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COURSE_LOCATION);\n }",
"boolean isPublic()\n {\n return this.visibility.equals(Visibility.PUBLIC);\n //|| this.visibility.equals(Visibility.INHERIT_FROM_SCOPE) && getTokenRef().findToken().getEnclosingScope().isDefaultVisibilityPrivate() == false;\n }",
"final void setNeverAccessible(boolean never)\r\n {\r\n never_accessible = never;\r\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}",
"private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n map.setMyLocationEnabled(false);\n map.getUiSettings().setMyLocationButtonEnabled(false);\n lastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"public void setStorageplace(int newStorageplace) {\n\tstorageplace = newStorageplace;\n}",
"public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }",
"public boolean isPrivate() {\n return isPrivate;\n }",
"public void playerPlaceProtection(Location loc, Player player) {\n List list = (List) plugin.map.get(player.getName());\n list.add(new Areas(loc));\n plugin.map.put(player.getName(), list);\n }",
"private void changeDownloadPermission(boolean canDownload){\n if (getMainItem() instanceof BoxFile) {\n executeRequest(mFileApi.getCreateSharedLinkRequest(getMainItem().getId()).setCanDownload(canDownload));\n }\n else if (getMainItem() instanceof BoxFolder) {\n executeRequest(mFolderApi.getCreateSharedLinkRequest(getMainItem().getId()).setCanDownload(canDownload));\n }\n else if (getMainItem() instanceof BoxBookmark) {\n Toast.makeText(this, \"Bookmarks do not have a permission that can be changed.\", Toast.LENGTH_LONG).show();\n }\n }",
"public abstract void expose(Card c);",
"public void modify() {\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AdminMap.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void changeOwnership(Profile profileAddingPhoto, Destination destination) {\n if (destination.getPublic() && !profileAddingPhoto.equals(destination.getOwner())) {\n destinationRepository.transferToAdmin(destination);\n }\n }",
"public boolean isPrivateCloneOf(Text thePublicService) {\n return false;\n }",
"private void authorize() {\r\n\r\n\t}",
"public void setPermission(Permission newPermission) {\n\t\tthis.permission = newPermission;\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AddressBook_add.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.362 -0500\", hash_original_method = \"7C8E9A670D06C8AE48DAFFA12CDF6628\", hash_generated_method = \"A7B8E145FAF4202F5F2BD51F427460A3\")\n \n void setPriority(int newPriority){\n \taddTaint(newPriority);\n }",
"public void setMine()\n {\n mine = true;\n }",
"private void updateLocationUi() {\n if (mMap == null) {\n return;\n }\n try {\n if (mPermissionCheck.locationPermissionGranted()) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"@Override\n public void onClick(View v) {\n requestPermissions((SireController) view.getContext(),false);\n }"
]
| [
"0.62213945",
"0.60909516",
"0.60501325",
"0.5819222",
"0.58057004",
"0.5779058",
"0.57623583",
"0.57208836",
"0.5700623",
"0.5683551",
"0.56786364",
"0.5677487",
"0.5596068",
"0.55924714",
"0.5570284",
"0.5502265",
"0.5458168",
"0.5453166",
"0.5436861",
"0.5432351",
"0.54008573",
"0.53966624",
"0.5393858",
"0.53844565",
"0.5366324",
"0.53645205",
"0.533479",
"0.5332329",
"0.5297952",
"0.52590525",
"0.52555984",
"0.5231194",
"0.52219045",
"0.52188456",
"0.5206134",
"0.52030414",
"0.5193297",
"0.51821196",
"0.5164724",
"0.5158578",
"0.5149571",
"0.514476",
"0.5125559",
"0.5122469",
"0.5114605",
"0.51099354",
"0.5099957",
"0.509615",
"0.5086788",
"0.50787973",
"0.50758183",
"0.507043",
"0.50648296",
"0.50615",
"0.505875",
"0.5052008",
"0.5051527",
"0.5041788",
"0.5041788",
"0.50410944",
"0.50367457",
"0.50356656",
"0.5034479",
"0.50282776",
"0.50052303",
"0.50049114",
"0.5001873",
"0.49924183",
"0.4988994",
"0.49862605",
"0.49839386",
"0.49588242",
"0.49508122",
"0.49479288",
"0.49394384",
"0.4935255",
"0.49275112",
"0.49264458",
"0.49260393",
"0.49205616",
"0.49144325",
"0.49126875",
"0.49065155",
"0.4892037",
"0.48907766",
"0.48883435",
"0.4887131",
"0.48837286",
"0.48798853",
"0.48786375",
"0.48758602",
"0.4874808",
"0.48747635",
"0.48663378",
"0.48532152",
"0.4848297",
"0.48473555",
"0.4846513",
"0.48433885",
"0.48398682"
]
| 0.8120803 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
String urlServer = AppConfig.CLIENT_URL
+"../"+ "test.php";
//String urlServer = AppConfig.BASE_URL + "editteacherprofilemobs";
// List<RequestParams> params1 = new ArrayList<RequestParams>(11);
RequestParams params1 = new RequestParams();
if (path == null) {
String image_Name[] = uPhotopath.split("_");
int len = image_Name.length;
String image_Name1 = new String();
for (int z = 1; z < len - 1; z++)
image_Name1 += image_Name[z] + "_";
image_Name1 += image_Name[len - 1];
params1.put("image", image_Name1);
/*
* Toast.makeText(getBaseContext(), image_Name1 ,
* Toast.LENGTH_LONG).show();
*/
} else {
params1.put("image", path);
/*
* Toast.makeText(getBaseContext(), "set"+path,
* Toast.LENGTH_LONG).show();
*/
}
//params1.put("Username", Username);
//params1.put("textFieldFirstName", tFname.getText().toString().trim());
//params1.put("textFieldLastName", tLname.getText().toString().trim());
params1.put("address", tAddress.getText().toString()
.trim());
params1.put("password", tPassword.getText().toString().trim());
params1.put("mobile", tMobile.getText().toString().trim());
params1.put("email", tEmail.getText().toString().trim());
params1.put("education", tQualification.getText()
.toString().trim());
params1.put("hobbies", tHobbies.getText().toString().trim());
params1.put("id", User_id);
params1.put("droot", "editteacherprofilemobs");
params1.put("schoolfolder", SchoolFolder);
params1.put("imagepath", realpath);
if (filename.getText().toString().trim()
.equals("No file chosen")
|| filename.getText().toString().trim().equals("")) {
}else {
try {
params1.put("uploadedfile", new File(realpath));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
// here write your parameter name and its value
/*try {
if (realpath == null) {
//params1.put("imagepath", new File(realpath));
} else {
params1.put("imagepath", new File(realpath));
//params1.put("imagepath", new File(uPhotopath));
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*/
AsyncHttpClient client = new AsyncHttpClient();
client.post(urlServer, params1, new AsyncHttpResponseHandler() {
@Override
public void onSuccess(String arg0) {
super.onSuccess(arg0);
Log.e("from response", arg0);
if (pDialog.isShowing())
pDialog.dismiss();
Toast.makeText(getBaseContext(), "Update Successfully", Toast.LENGTH_LONG).show();
}
@Override
public void onStart() {
// TODO Auto-generated method stub
super.onStart();
pDialog = new ProgressDialog(ProfileDetails.this);
pDialog.setMessage("Please wait...");
pDialog.setCancelable(false);
pDialog.show();
}
});
// subjectListDailog.setVisibility(View.GONE);
} | {
"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 onStart() {
super.onStart();
pDialog = new ProgressDialog(ProfileDetails.this);
pDialog.setMessage("Please wait...");
pDialog.setCancelable(false);
pDialog.show();
} | {
"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 Tag used to cancel the request | private void getTeacherDetails() {
String tag_string_req = "req_login";
pDialog.setMessage("Please wait ...");
showDialog();
StringRequest strReq = new StringRequest(Request.Method.GET,
AppConfig.BASE_URL + "viewprofilemembers/" + User_id,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d(TAG, "Login Response: " + response.toString());
hideDialog();
try {
JSONObject json = new JSONObject(response);
JSONObject resp = json.getJSONObject("response");
JSONArray studentdetails = resp
.getJSONArray("users");
for (int i = 0; i < studentdetails.length(); i++) {
JSONObject c = studentdetails.getJSONObject(i);
tFirstame = c.getString("firstname");
tLastname = c.getString("lastname");
taddress = c.getString("address");
// tphone = c1.getString("phone1");
tmobile = c.getString("mobile");
temail = c.getString("email");
tusername = c.getString("username");
tpassword = c.getString("password");
tqualification = c.getString("education");
thobbies = c.getString("hobbies");
uPhotopath = c.getString("photo");
//tname.setText(tFirstame + " " + tLastname);
tFname.setText(tFirstame);
//tLname.setHint(tLastname);
tAddress.setText(taddress);
// tPhone.setHint(tphone);
tMobile.setText(tmobile);
tEmail.setText(temail);
tUsername.setText(tusername);
tPassword.setText(tpassword);
tQualification.setText(tqualification);
tHobbies.setText(thobbies);
if (uPhotopath != null) {
new DownloadImageTask(iv)
.execute(AppConfig.CLIENT_URL
+ "../uploads/"
+ uPhotopath);
} else {
Toast.makeText(getApplicationContext(),
"Sorry there is no Image",
Toast.LENGTH_SHORT).show();
}
// iv.setImageURI(uPhotopath);
}
/*
* else if (i == 1) { JSONArray studentnoArray = c
* .getJSONArray("teaching_sub");
*
* for (int k = 0; k < studentnoArray.length(); k++)
* { JSONObject c2 = studentnoArray
* .getJSONObject(k); String assign_class = c2
* .getString("ClassName"); String subject = c2
* .getString("SubjectName"); tteaching_sub =
* assign_class + "-" + subject;
* teachingSub.add(tteaching_sub); } }
*/
} catch (JSONException e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.e(TAG, "Data Error: " + error.getMessage());
Toast.makeText(getApplicationContext(),
error.getMessage(), Toast.LENGTH_LONG).show();
hideDialog();
}
});
// Adding request to request queue
AppController.getInstance().addToRequestQueue(strReq, tag_string_req);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"public void cancel() {\n request.disconnect();\n }",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n }",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"@Override\n public void cancel() {\n\n }",
"public void cancelGetResponse() {\n impl.cancelGetResponse();\n }",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }",
"@Override\n public void cancel() {\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"@Override\n\tpublic void httpCancel() {\n\t\texpressQueryCancel();\n\t}",
"public synchronized void cancel() {\n }",
"public void cancel()\n\t{\n\t}",
"public void cancel() {\n\t}",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"void cancel() {\n if (mCurrentRequest != null) {\n mCurrentRequest.cancel();\n mCurrentRequest = null;\n }\n mPendingEntries.clear();\n }",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"@Override\n\t\tpublic void onCancel() {\n \n \t}",
"@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }",
"@Override\n public void onCancel() {\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"public void cancel(){\n cancelled = true;\n }",
"@Override\n protected void onCancel() {\n }",
"@Override\n public void onCancel() {\n }",
"@Override\n public void onCancel() {\n\n }",
"public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }",
"public void cancel();",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"public void onCancel() {\n\t\t\t\t\t}",
"@Override\n public void onCancel() {\n\n }",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }",
"public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public void cancel() {\n final boolean isCancelable = this.apiRequestAsync != null;\n if (isCancelable) {\n this.apiRequestAsync.cancel(true);\n }\n }",
"public void onCancel();",
"public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }",
"abstract protected ActionForward processCancel( UserRequest request )\n throws IOException, ServletException;",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"protected abstract void onCancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"@Override\r\n public void onCancel(String callerTag) {\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"public boolean cancel(String requestId);",
"void onCancel();",
"@Override\n\tpublic void cancelQuery() {\n\t}",
"@RequestMapping(value = \"/cancel\", method = RequestMethod.GET)\n public String cancel()\n {\n return \"cancel\";\n }",
"public boolean cancel();",
"private void cancel() {\n\t\tfinish();\n\t}",
"public void cancel(Object tag) {\n Dispatcher dispatcher = mClient.dispatcher();\n for (Call call : dispatcher.queuedCalls()) {\n if (tag.equals(call.request().tag())) {\n call.cancel();\n }\n }\n for (Call call : dispatcher.runningCalls()) {\n if (tag.equals(call.request().tag())) {\n call.cancel();\n }\n }\n }",
"@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public void cancel( String reason );",
"public void onCancel() {\n }",
"public void cancel() {\n requestQueue.cancelAll(CURRENT_SHOPLIST_TAG);\n }",
"public void requestcanceled() {\n\n requestcancelcheck = true;\n\n String diatitle = \"Request cancelled.\";\n String msg = \"Request cancelled by Rider.\";\n\n marker.setEnabled(false);\n // mGoogleMap.clear();\n fullbutton.setVisibility(View.GONE);\n usercheck = false;\n touch.setVisibility(View.GONE);\n marker.setVisibility(View.INVISIBLE);\n checkonclick = false;\n timercheck = true;\n whilecheck = true;\n accheck = true;\n receivecheck = true;\n\n acc1 = acc;\n\n registerReceiver(mHandleMessageReceiver, new IntentFilter(Config.DISPLAY_MESSAGE_ACTION));\n dialogshow(diatitle, msg);\n\n }",
"@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"public void cancel() {\n btCancel().push();\n }",
"public void cancel() {\n if (call != null) {\n call.cancel();\n }\n\n // TODO: We need a LOCK here because we can try\n // to cancel at the same time the request is getting\n // answered on the OkHTTP thread. We could get rid of\n // this LOCK by using Runnable when we move Android\n // implementation of mbgl::RunLoop to Looper.\n LOCK.lock();\n nativePtr = 0;\n LOCK.unlock();\n }",
"void cancel(long inId);",
"@Override\n public void cancelAllForTag(Object tag) {\n getRequestQueue().cancelAll(tag);\n }",
"@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}",
"protected abstract void handleCancel();",
"public void onCancel() {\n\n }",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"public abstract boolean cancel();",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\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 }",
"public void cancelInvitionUser() {\n\n }"
]
| [
"0.79327357",
"0.79228735",
"0.78359246",
"0.78359246",
"0.78359246",
"0.78285104",
"0.7818214",
"0.7802591",
"0.7796857",
"0.7792864",
"0.7778909",
"0.7769053",
"0.775633",
"0.775633",
"0.775633",
"0.7752685",
"0.7722824",
"0.7713301",
"0.75773007",
"0.75740564",
"0.7523861",
"0.7485892",
"0.74463654",
"0.74399996",
"0.74025285",
"0.738462",
"0.73582965",
"0.73567915",
"0.73496723",
"0.73384213",
"0.73384213",
"0.73384213",
"0.73384213",
"0.73384213",
"0.73384213",
"0.73234534",
"0.7277359",
"0.7277359",
"0.7268252",
"0.72668713",
"0.72642183",
"0.72530746",
"0.72412205",
"0.72320986",
"0.7227278",
"0.7211839",
"0.7211839",
"0.71889484",
"0.71452075",
"0.7144646",
"0.7143918",
"0.713922",
"0.71268106",
"0.71263224",
"0.7107786",
"0.70992535",
"0.70869225",
"0.70809877",
"0.7075976",
"0.7070769",
"0.7045622",
"0.7018523",
"0.7018523",
"0.7018523",
"0.7018523",
"0.7018523",
"0.6993195",
"0.6963302",
"0.6963302",
"0.6963302",
"0.6945823",
"0.693693",
"0.69320136",
"0.69237506",
"0.6921339",
"0.69110763",
"0.6900816",
"0.6892286",
"0.68673307",
"0.68661785",
"0.6862182",
"0.6846849",
"0.68389106",
"0.6833055",
"0.6821423",
"0.6817858",
"0.6784138",
"0.6782763",
"0.6749682",
"0.6735961",
"0.67303956",
"0.67249227",
"0.6700298",
"0.66925097",
"0.66829574",
"0.66813785",
"0.6673779",
"0.6673779",
"0.6658681",
"0.665619",
"0.6627365"
]
| 0.0 | -1 |
TODO Autogenerated method stub /Intent intent = new Intent(); intent.setType("image /"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult( Intent.createChooser(intent, "Select Picture"), 1); | @Override
public void onClick(View v) { Intent galleryIntent = new Intent(Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
// Start the Intent
startActivityForResult(
Intent.createChooser(galleryIntent, "Select Picture"), REQUEST_CODE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }",
"public void choosePicture() {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\"); //inserting all images inside this Image folder\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 1);\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent,\"Choose an app to select a image\"), 1);\n }",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }",
"private void galleryIntent()\r\n {\r\nIntent gallery=new Intent();\r\ngallery.setType(\"image/*\");\r\ngallery.setAction(Intent.ACTION_GET_CONTENT);\r\n\r\nstartActivityForResult(Intent.createChooser(gallery,\"Select Picture \"),PICK_IMAGE );\r\n }",
"void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickIntent.setType(\"image/*\");\n Intent chooserIntent = Intent.createChooser(intent, \"Select Image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});\n startActivityForResult(chooserIntent,PICK_IMAGE_REQUEST);\n }",
"private void galleryIntent() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);//\n startActivityForResult(Intent.createChooser(intent, \"Select Photo\"), SELECT_PHOTO);\n }",
"private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }",
"public void showImageChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"image/*\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void selectImageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.select_picture)),\n REQUEST_IMAGE_OPEN);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n // image k selection k liey requesting code jo hai upar vo 1234 hai ye dena hota hai\n startActivityForResult(Intent.createChooser(intent, \"Select Image\"), REQUEST_CODE);\n }",
"public void onClick(View arg0) {\n Intent intent = new Intent();\r\n intent.setType(\"image/*\");\r\n intent.setAction(Intent.ACTION_GET_CONTENT);\r\n startActivityForResult(Intent.createChooser(intent,\r\n \"Select Picture\"), SELECT_PICTURE);\r\n }",
"@Override\n public void imageFromGallery() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select picture\"), PICK_IMAGE);\n }",
"public void cargarimagen(){\n Intent intent= new Intent(Intent.ACTION_GET_CONTENT, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent.createChooser(intent,\"Seleccione la imagen\"),69);\n }",
"private void getImage() {\n\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //intent.setType(\"text/xls\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n try {\n startActivityForResult(\n Intent.createChooser(intent, \"Complete action using\"),\n MY_INTENT_CLICK);\n }catch (Exception e) {\n e.getMessage();\n }\n }",
"private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i , RESULT_LOAD_IMAGE);\n\n\n }",
"public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }",
"@Override\n public void onClick(View view) {\n Intent implicitIntent = new Intent(Intent.ACTION_GET_CONTENT);\n\n // Define the file type\n implicitIntent.setType(\"image/*\");\n\n // start this intent\n startActivityForResult(implicitIntent,REQUEST_CODE);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent();\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n }",
"public void gallery(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE_GALLERY);\n\n\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_PHOTO);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"Select File\"), 1);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }",
"public void getPhoto() {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //for startActivityForResult, the second parameter, requestCode is used to identify this particular intent\n startActivityForResult(intent, 1);\n }",
"private void pickImageIntent(){\n\n Intent intent=new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(intent.EXTRA_ALLOW_MULTIPLE,true);\n intent.setAction(Intent.ACTION_OPEN_DOCUMENT);\n startActivityForResult(Intent.createChooser(intent,\"Select Images\"),PICK_IMAGES_CODE);\n\n\n\n }",
"private void galleryIntent() {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n ((MessageActivity) context).startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n\n }",
"public void call1()\n\t{\n\t\tIntent intent = new Intent();\n\t\tintent.setType(\"image/*\");\n\t\tintent.setAction(Intent.ACTION_GET_CONTENT);\n\t\tstartActivityForResult(Intent.createChooser(intent,\n\t\t\t\t\"Select Picture\"), SELECT_PICTURE);\n\n\n\t}",
"private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, SELECTED_PICTURE);\n }",
"public void opengallery() {\n Intent gallery = new Intent();\n gallery.setType(\"image/*\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(getIntent().createChooser(gallery, \"Choose image\"), PICK_IMAGE);\n\n }",
"public void openImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void showImageChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Profile Image\"), CHOOSE_IMAGE);\n }",
"public void selectImage(View view){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent,PICK_IMAGE);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n //Where do we want to find the data\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n //Get the name of the directory\n String pictureDirectoryPath = pictureDirectory.getPath();\n //Get a URI representation of the Path because this is what android needs to deal with\n Uri data = Uri.parse(pictureDirectoryPath);\n //Set the data (where we want to look for this media) and the type (what media do we want to look for).Get all image types\n photoPickerIntent.setDataAndType(data, \"image/*\");\n //We invoke the image gallery and receive something from it\n if (photoPickerIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(photoPickerIntent, IMAGE_GALLERY_REQUEST);\n }\n\n }",
"public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void select_image() {\n\n final CharSequence[] items = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(step4.this);\n builder.setTitle(\"Add Image\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface DialogInterface, int i) {\n if (items[i].equals(\"Camera\")) {\n\n Intent camera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n if (ActivityCompat.checkSelfPermission(step4.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Please grant permission to access Camera\", Toast.LENGTH_LONG).show();\n ActivityCompat.requestPermissions(step4.this, new String[]{Manifest.permission.CAMERA}, 1);\n startActivityForResult(camera,REQUEST_CAMERA);\n\n } else {\n startActivityForResult(camera,REQUEST_CAMERA);\n\n }\n\n\n\n } else if (items[i].equals(\"Gallery\")) {\n\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n gallery.setType(\"image/*\");\n startActivityForResult(gallery, select_file);\n\n\n } else if (items[i].equals(\"Cancel\")) {\n\n DialogInterface.dismiss();\n\n\n }\n }\n\n\n });\n builder.show();\n }",
"private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"private void selectImage(){\n final CharSequence[] options = { \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"public void openGallery(){\n Intent intentImg=new Intent(Intent.ACTION_GET_CONTENT);\n intentImg.setType(\"image/*\");\n startActivityForResult(intentImg,200);\n }",
"private void openFileChooser() {\n Intent imageIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n imageIntent.setType(\"image/*\");\n startActivityForResult(imageIntent, GALLERY_REQUEST);\n }",
"private void pickFromGallery() {\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n\n intent.setType(\"image/*\");\n\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\",\"image/jpg\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }",
"@Override\n public void onClick(View v) {\n Intent camIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n camIntent.setType(\"image/*\");\n startActivityForResult(camIntent,CAMERA_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n //here we are setting the type of intent which\n //we will pass to the another screen\n intent.setType(\"image/*\");//For specific type add image/jpeg\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 50);\n }",
"private void selectImage() {\n final CharSequence[] items = {\"Take Photo\", \"Choose from Library\",\n \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Timetable.this);\n builder.setTitle(\"Add Photo!\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (items[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n } else if (items[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n SELECT_FILE);\n } else if (items[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"private void showGalleryChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public void openIntentGetContent(){\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\n //have to use this instead of startActivity if you want to store the image in imageView\n //cause if you use this method, only then, can you use the method onActivityResult (defined below this method)\n //otherwise the execution won't go there\n startActivityForResult(intent, WRITE_REQUEST_CODE);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, TAKE_PICTURE);\n dialog.dismiss();\n }",
"@Override\n public void onClick(View view) {\n Intent gallery_intent=new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery_intent,RESULT_LOAD_IMAGE);//Paasing intentobject and an integer value\n\n }",
"private void pickImageFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n startActivityForResult(intent, IMAGE_PICK_CODE);\n\n }",
"@OnClick(R.id.add_photo_layout)\n public void onClickAddPhoto() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, getString(R.string.choose_image_from)), 8);\n }",
"private void invokeGetPhoto() {\n // invoke the image gallery using an implicit intent.\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n // Show only images, no videos or anything else\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n // Always show the chooser (if there are multiple options available)\n startActivityForResult(Intent.createChooser(photoPickerIntent, \"Choose a picture\"), REQUEST_IMAGE_CAPTURE);\n }",
"public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestcode);\n\n }",
"public Intent select() {\n final Activity activity = (Activity)getContext();\n try {\n\n final List<Intent> cameraIntents = new ArrayList<>();\n final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n final PackageManager packageManager = activity.getPackageManager();\n final List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n final String packageName = res.activityInfo.packageName;\n final Intent intent = new Intent(captureIntent);\n intent.setPackage(packageName);\n cameraIntents.add(intent);\n }\n Intent galleryIntent;\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {\n galleryIntent = new Intent();\n galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n } else {\n galleryIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n galleryIntent.addCategory(Intent.CATEGORY_OPENABLE);\n }\n galleryIntent.setType(\"image/*\");\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n }\n\n final Intent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n chooserIntent.putExtra(\n Intent.EXTRA_INITIAL_INTENTS,\n cameraIntents.toArray(new Parcelable[]{}));\n\n return chooserIntent;\n } catch (Exception e) {\n Toast.makeText(\n getContext(),\n getResources().getString(R.string.unknown_error),\n Toast.LENGTH_SHORT\n ).show();\n Log.e(getResources().getString(R.string.app_name), \"exception\", e);\n }\n return null;\n }",
"public void changePhoto(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public Intent getPickImageChooserIntent() {\n File f = new File(android.os.Environment.getExternalStorageDirectory(), \"temp.jpg\");\n Uri outputFileUri = Uri.fromFile(f);\n List<Intent> allIntents = new ArrayList<>();\n PackageManager packageManager = mContext.getPackageManager();\n\n // collect all camera intents\n Intent captureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for (ResolveInfo res : listCam) {\n Intent intent = new Intent(captureIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n if (outputFileUri != null) {\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n }\n allIntents.add(intent);\n }\n\n // collect all gallery intents\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n galleryIntent.setType(\"image/*\");\n List<ResolveInfo> listGallery = packageManager.queryIntentActivities(galleryIntent, 0);\n for (ResolveInfo res : listGallery) {\n Intent intent = new Intent(galleryIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(res.activityInfo.packageName);\n allIntents.add(intent);\n }\n\n // the main intent is the last in the list (fucking android) so pickup the useless one\n Intent mainIntent = allIntents.get(allIntents.size() - 1);\n for (Intent intent : allIntents) {\n if (intent.getComponent().getClassName().equals(\"com.android.documentsui.DocumentsActivity\")) {\n mainIntent = intent;\n break;\n }\n }\n allIntents.remove(mainIntent);\n\n // Create a chooser from the main intent\n Intent chooserIntent = Intent.createChooser(mainIntent, \"Select source\");\n\n // Add all other intents\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, allIntents.toArray(new Parcelable[allIntents.size()]));\n\n return chooserIntent;\n }",
"private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"public void escolherImagem(int requestCode) {\n\n Intent i = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, requestCode);\n\n }",
"private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,1);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n // the one is the number attached to the intent\n //it capture the number and goes with the result\n startActivityForResult(intent,1);\n }",
"private void performFileSearch() {\n Intent intent = new Intent();\n intent.setType(\"*/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n\n }",
"private void takePhoto() {\n Intent cameraIntent = new Intent(Intent.ACTION_PICK);\n cameraIntent.setType(\"image/*\");\n //startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);\n startActivityForResult(cameraIntent, GALLERY_PIC_REQUEST);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}",
"private void pickFromGallery() {\n Intent intent = new Intent(Intent.ACTION_PICK);\r\n // Sets the type as image/*. This ensures only components of type image are selected\r\n intent.setType(\"image/*\");\r\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\r\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\r\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\r\n // Launching the Intent\r\n startActivityForResult(intent, 0);\r\n }",
"private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }",
"private void pickFromGallery(){\n Intent intent=new Intent(Intent.ACTION_PICK);\n // Sets the type as image/*. This ensures only components of type image are selected\n intent.setType(\"image/*\");\n //We pass an extra array with the accepted mime types. This will ensure only components with these MIME types as targeted.\n String[] mimeTypes = {\"image/jpeg\", \"image/png\"};\n intent.putExtra(Intent.EXTRA_MIME_TYPES,mimeTypes);\n // Launching the Intent\n startActivityForResult(intent,GALLERY_REQUEST_CODE);\n }",
"@Override\n public void startDeviceImageIntent() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, PICK_FROM_GALLERY_REQUEST_CODE);\n }",
"public void uploadPic(View view) {\n Intent si=new Intent();\n si.setType(\"image/*\");\n si.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(si,1);\n\n\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t//打开图片\n\t\tif(resultCode == RESULT_OK && requestCode == IMAGE_OPEN) {\n\t\t\tUri uri = data.getData();\n\t\t\t//查询选择图片\n\t\t\tif(!TextUtils.isEmpty(uri.getAuthority())) {\n\t\t\t\tCursor cursor = getContentResolver().query(uri, new String[]{MediaStore.Images.Media.DATA}, null, null, null);\n\n\t\t\t\tif(null == cursor){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//光标移动至开头 获取图片路径;\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tpathImage = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));\n\t\t\t}\n\n\t\t}//end if\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n FilePathUri = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), FilePathUri);\n cowImage.setImageBitmap(bitmap);\n galleryChoose.setText(\"Image Selected\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if (requestCode == 123) {\n File imgFile = new File(pictureImagePath);\n if(imgFile.exists()){\n FilePathUri = Uri.parse(pictureImagePath);\n FilePathUri = photoURI;\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n //ImageView myImage = (ImageView) findViewById(R.id.imageviewTest);\n cowImage.setImageBitmap(myBitmap);\n\n }\n }\n else{\n System.out.println(\"error\" );\n }\n }",
"private void profilePicImageChooser() {\n Intent pickIntent = new Intent();\n pickIntent.setType(\"image/*\");\n pickIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n Intent takePhotoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n String pickTitle = \"Select or take a new Picture\";\n Intent chooserIntent = Intent.createChooser(pickIntent, pickTitle);\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[]{takePhotoIntent});\n startActivityForResult(chooserIntent, HPIApp.Prefs.CODE_IMAGE_SELECT);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }",
"public void uploadImg(View view){\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_PICTURE);\n }",
"public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"public static Intent getIntent(){\n Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n\tpickIntent.setType(\"image/*\");\n\tpickIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n\tpickIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\t\n\treturn pickIntent;\n }",
"public void OpenGallery(){\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery, PICK_IMAGE);\n }",
"public void changePic(View v){\n //Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n //startActivityForResult(gallery,PICK_IMAGE);\n new AlertDialog.Builder(ProfileModify.this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Choose\")\n .setItems(Choose, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(which == 0) {\n Intent iGallery = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(iGallery,PICK_GALLERY);\n }\n else {\n Intent iCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(iCamera.resolveActivity(getPackageManager()) != null){\n startActivityForResult(iCamera,REQUEST_IMAGE_CAPTURE);\n }\n }\n }\n }).create().show();\n }",
"private void showFileChooser() {\n // Intent intent = new Intent();\n\n /* intent.setType(\"application/pdf\");\n intent.setType(\"docx*//*\");*/\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n String [] mimeTypes = {\"application/pdf/docx\"};\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n\n\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public void onClick(View v) {\n intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, SELECTED_IMAGE);\n }",
"private void dispatchLoadPhotoIntent() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Choose Picture\"), REQUEST_LOAD_PHOTO);\n }",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\tif (requestCode == SELECT_PICTURE) {\n\t\t\t\tUri selectedImageUri = data.getData();\n\n\t\t\t\t//OI FILE Manager\n\t\t\t\tfilemanagerstring = selectedImageUri.getPath();\n\n\t\t\t\t//MEDIA GALLERY\n\t\t\t\tselectedImagePath = getPath(selectedImageUri);\n\t\t\t\timg2.setImageURI(selectedImageUri);\n\n\n\t\t\t\t//img.setImageURI(selectedImageUri);\n\n\t\t\t\timagePath.getBytes();\n\n\t\t\t\timagePath=(imagePath.toString());\n\t\t\t\tSystem.out.println(\"MY PATH: \"+imagePath);\n\t\t\t\tBitmap bm = BitmapFactory.decodeFile(imagePath);\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case SELECTED_PICTURE:\n if (resultCode == RESULT_OK) {\n uri = data.getData();\n\n\n Log.e(\"Image path is \", \"\" + uri);\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection,\n null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String filePath = cursor.getString(columnIndex);\n String path = filePath;\n img = path;\n\n cursor.close();\n\n\n Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\n Drawable d = new BitmapDrawable(yourSelectedImage);\n\n newImage.setImageDrawable(d);\n Toast.makeText(getApplicationContext(), filePath,\n Toast.LENGTH_SHORT).show();\n\n\n\n }\n break;\n\n default:\n break;\n }\n }",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_OPEN_DOCUMENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n\n\n\n /*String stringFilePath = Environment.getExternalStorageDirectory().getPath()+\"/Download/\"+editText.getText().toString()+\".jpeg\";\n Bitmap bitmap = BitmapFactory.decodeFile(stringFilePath);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 0, byteArrayOutputStream);\n byte[] bytesImage = byteArrayOutputStream.toByteArray();\n db.addTicket(stringFilePath, bytesImage);*/\n\n }"
]
| [
"0.91591865",
"0.89463675",
"0.8894937",
"0.87899405",
"0.8780709",
"0.8728964",
"0.8614303",
"0.8536726",
"0.8515184",
"0.84979266",
"0.8487938",
"0.8470512",
"0.8459877",
"0.84515595",
"0.84515595",
"0.84068483",
"0.8374116",
"0.8372667",
"0.83320653",
"0.8276997",
"0.8252777",
"0.8247031",
"0.8239385",
"0.8235429",
"0.8206621",
"0.8182147",
"0.8166663",
"0.8164835",
"0.81640744",
"0.8161696",
"0.811551",
"0.81130385",
"0.80969745",
"0.8088007",
"0.8060571",
"0.8059762",
"0.80282086",
"0.80258864",
"0.8014633",
"0.7998204",
"0.79976904",
"0.79661965",
"0.7961387",
"0.79591924",
"0.79562575",
"0.79562575",
"0.79459924",
"0.79300356",
"0.7919213",
"0.79164845",
"0.7908978",
"0.7904827",
"0.7902202",
"0.78967744",
"0.7893543",
"0.78885573",
"0.78876454",
"0.78857994",
"0.78767484",
"0.786455",
"0.78563833",
"0.78468907",
"0.7835127",
"0.78156316",
"0.7790896",
"0.77848184",
"0.7751511",
"0.7734022",
"0.7733276",
"0.7724163",
"0.76777387",
"0.7665203",
"0.76627016",
"0.76518905",
"0.76371676",
"0.7630266",
"0.7628235",
"0.7620116",
"0.7605814",
"0.760382",
"0.7586764",
"0.7586764",
"0.75838584",
"0.75786704",
"0.75740904",
"0.7553618",
"0.7546479",
"0.7542021",
"0.7536938",
"0.75301474",
"0.7522422",
"0.7517085",
"0.75167924",
"0.7515784",
"0.7490602",
"0.7484939",
"0.74512035",
"0.7446082",
"0.74407345",
"0.74387497"
]
| 0.78518283 | 61 |
TODO Autogenerated method stub | @Override
protected void onPreExecute() {
super.onPreExecute();
pDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(StringVezba[] args) {
System.out.println("0 Celzijusa je farenhajte: " + StatickiKonvertorTemperature.konvertujCUF(0));
System.out.println("41 Farenhajt je celzijusa: " + StatickiKonvertorTemperature.konvertujFUC(41));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Constructor for the class | public InteractionTarget(Element _element, int _type) {
element = _element;
type = _type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public CyanSus() {\n\n }",
"public PSRelation()\n {\n }",
"public _355() {\n\n }",
"public Pitonyak_09_02() {\r\n }",
"private Instantiation(){}",
"public Chick() {\n\t}",
"public CSSTidier() {\n\t}",
"public Chauffeur() {\r\n\t}",
"public Trening() {\n }",
"public Pasien() {\r\n }",
"public Clade() {}",
"public Coche() {\n super();\n }",
"public Curso() {\r\n }",
"public Cohete() {\n\n\t}",
"public Orbiter() {\n }",
"public Lanceur() {\n\t}",
"public Phl() {\n }",
"public Tbdtokhaihq3() {\n super();\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"private TMCourse() {\n\t}",
"public Parameters() {\n\t}",
"public SlanjePoruke() {\n }",
"public Libro() {\r\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Classe() {\r\n }",
"public Anschrift() {\r\n }",
"public RngObject() {\n\t\t\n\t}",
"public Cgg_jur_anticipo(){}",
"public Achterbahn() {\n }",
"public Carrera(){\n }",
"public Excellon ()\n {}",
"public Odontologo() {\n }",
"public Rol() {}",
"public AntrianPasien() {\r\n\r\n }",
"public Aanbieder() {\r\n\t\t}",
"public Tigre() {\r\n }",
"public Demo() {\n\t\t\n\t}",
"public TTau() {}",
"public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }",
"public Mitarbeit() {\r\n }",
"public JSFOla() {\n }",
"public SgaexpedbultoImpl()\n {\n }",
"public Data() {\n \n }",
"public ExamMB() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public CMN() {\n\t}",
"public Data() {\n }",
"public Data() {\n }",
"public Self__1() {\n }",
"public Soil()\n\t{\n\n\t}",
"public Catelog() {\n super();\n }",
"public ClassTemplate() {\n\t}",
"public DetArqueoRunt () {\r\n\r\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public Alojamiento() {\r\n\t}",
"public Magazzino() {\r\n }",
"public mapper3c() { super(); }",
"private Rekenhulp()\n\t{\n\t}",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"public EnsembleLettre() {\n\t\t\n\t}",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public Corso() {\n\n }",
"public AirAndPollen() {\n\n\t}",
"public Goodsinfo() {\n super();\n }",
"public TRIP_Sensor () {\n super();\n }",
"public Parser()\n {\n //nothing to do\n }",
"defaultConstructor(){}",
"public BaseParameters(){\r\n\t}",
"public Node(){\n\n\t\t}",
"public Sequence(){\n\n }",
"public Livro() {\n\n\t}",
"public Genret() {\r\n }",
"public Tbdcongvan36() {\n super();\n }",
"public OVChipkaart() {\n\n }",
"public SubjectClass() {\n }",
"public OOP_207(){\n\n }",
"public prueba()\r\n {\r\n }",
"public Mannschaft() {\n }",
"public Generic(){\n\t\tthis(null);\n\t}",
"public Job() {\n\t\t\t\n\t\t}",
"public Spec__1() {\n }",
"private void __sep__Constructors__() {}",
"public Person() {\n\t\t\n\t}",
"private Node() {\n\n }",
"public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }",
"private SingleObject()\r\n {\r\n }",
"public Reader(){\n\n\t}",
"public Vector() {\n construct();\n }",
"public p7p2() {\n }",
"public Purp() {\n }",
"public SensorData() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public Book() {\n\t\t// Default constructor\n\t}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"protected abstract void construct();",
"public Method() {\n }"
]
| [
"0.8684979",
"0.83157516",
"0.7531155",
"0.7512286",
"0.7384737",
"0.7306363",
"0.72895694",
"0.7229921",
"0.71888965",
"0.7186963",
"0.7162534",
"0.7162355",
"0.71531713",
"0.71493727",
"0.7139213",
"0.7135244",
"0.71339834",
"0.713029",
"0.7116769",
"0.70741767",
"0.7068038",
"0.7064627",
"0.7062354",
"0.7041635",
"0.7032659",
"0.7031539",
"0.7030777",
"0.70302254",
"0.7022327",
"0.70215595",
"0.701955",
"0.6994314",
"0.69809735",
"0.69806695",
"0.6974879",
"0.69717616",
"0.6970909",
"0.69486946",
"0.69478464",
"0.694114",
"0.69252354",
"0.6924994",
"0.6922312",
"0.6918868",
"0.6914053",
"0.6913977",
"0.69050616",
"0.6901542",
"0.6897775",
"0.6897775",
"0.68958783",
"0.6889305",
"0.6880084",
"0.6880048",
"0.6877041",
"0.68758947",
"0.6867426",
"0.68544316",
"0.6854238",
"0.6853966",
"0.6851312",
"0.6848937",
"0.6843857",
"0.6835066",
"0.68315345",
"0.6830516",
"0.6829574",
"0.6829318",
"0.6826634",
"0.6822311",
"0.6820237",
"0.6812722",
"0.6809345",
"0.6796277",
"0.67931354",
"0.6791245",
"0.67871946",
"0.6786159",
"0.67824185",
"0.6782101",
"0.67767507",
"0.6745189",
"0.6744247",
"0.6742648",
"0.674236",
"0.67390996",
"0.67369276",
"0.6736918",
"0.67355454",
"0.6729124",
"0.6726614",
"0.6726211",
"0.672284",
"0.6717419",
"0.6714842",
"0.67134756",
"0.67127943",
"0.67103124",
"0.6708382",
"0.6704104",
"0.6701749"
]
| 0.0 | -1 |
Returns the Element that contains the target | final public Element getElement() {
return element;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}",
"public ReferenceType getTargetElement();",
"@Override\n\tpublic boolean contains(T targetElement) {\n\t\t\n\t\treturn findAgain(targetElement, root);\n\t}",
"private Target getMatchingTarget(Element targetElement)\n {\n String targetName = targetElement.getAttribute(\"name\").getValue();\n\n for (Target target : targets)\n {\n String label = target.getName();\n\n if (label.equals(targetName))\n {\n return target;\n }\n }\n\n return null;\n }",
"@Override\r\n public E find(E target) {\r\n return findHelper(root,target,0);\r\n }",
"public E find(E target) {\r\n\t\treturn find(root, target);\r\n\t}",
"Object getTarget();",
"Object getTarget();",
"public Node getTarget() {\n return target;\n }",
"private Macrodef getMatchingMacrodef(Element targetElement)\n {\n String targetName = targetElement.getAttribute(\"name\").getValue();\n\n for (Macrodef macrodef : localMacrodefs)\n {\n String label = macrodef.getName();\n\n if (label.equals(targetName))\n {\n return macrodef;\n }\n }\n\n return null;\n }",
"public static Element getTargetElement(\n final Element element,\n final Vector2fc vector,\n final Element initialTarget,\n final boolean searchOnlyClickable) {\n Element retarget = initialTarget;\n if (visible(element) && element.intersection().intersects(element, vector)) {\n if (!searchOnlyClickable || clickable(element)) {\n retarget = element;\n }\n List<Element> childElements = element.children();\n\n childElements.sort(Comparator.comparing(comparator));\n for (Element child : childElements) {\n retarget = getTargetElement(child, vector, retarget);\n }\n }\n return retarget;\n }",
"@Override\r\n public boolean contains(E target) {\r\n if(find(target) != null) return true;\r\n return false;\r\n }",
"public Node target() {\n return target;\n }",
"public T find (T target);",
"public WebElement apply(WebDriver fdriver) \n\t\t\t{\n\t\t\t\n\t\t\t\tSystem.out.println(\"Checking for the element!!\");\n\t\t\t\tWebElement element = fdriver.findElement(By.id(\"targetid\"));\n\t\t\t\tif(element != null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Target element found\");\n\t\t\t\t}\n\t\t\t\treturn element;\n\t\t\t}",
"Element getElement();",
"String getTarget();",
"String getTarget();",
"public Target getTarget() {\n return target;\n }",
"private TargetElement getAsTarget(String name) {\n TargetElement element = mock(TargetElement.class);\n when(element.getName()).thenReturn(name);\n return element;\n }",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Object getTarget()\n {\n return __m_Target;\n }",
"Elem getPointedElem();",
"public Contig getTarget() { return target; }",
"public Target getTarget() {\n\n return target;\n }",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"public List<ActionTargetElement> getActionTargetElements()\n {\n if (actionTargetElements == null)\n {\n return null;\n }\n\n if (actionTargetElements.isEmpty())\n {\n return null;\n }\n\n return actionTargetElements;\n }",
"Object getTargetexists();",
"@Override\r\n public Element findElement()\r\n {\n return null;\r\n }",
"@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}",
"Object element();",
"Object element();",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"@NotNull\n Resource getTargetContent();",
"public Spatial getTarget() {\r\n return target;\r\n }",
"public Entity getmTarget() {\n return mTarget;\n }",
"Elem getQualifiedElem();",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"public String getTarget() {\n return this.target;\n }",
"public int searchElement (E targetElement){\n\r\n Node curr = head;\r\n int count = 0;\r\n\r\n while (curr != null){\r\n if(curr.getItem() == targetElement){\r\n count++;\r\n }\r\n curr = curr.getNext();\r\n }\r\n\r\n return count;\r\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"Element getElement(Position pos);",
"public com.commercetools.api.models.common.Reference getTarget() {\n return this.target;\n }",
"public int findCoordElement(CoordInterval target, boolean bounded) {\n switch (orgGridAxis.getSpacing()) {\n case regularInterval:\n // can use midpoint\n return findCoordElementRegular(target.midpoint(), bounded);\n case contiguousInterval:\n // can use midpoint\n return findCoordElementContiguous(target.midpoint(), bounded);\n case discontiguousInterval:\n // cant use midpoint\n return findCoordElementDiscontiguousInterval(target, bounded);\n }\n throw new IllegalStateException(\"unknown spacing\" + orgGridAxis.getSpacing());\n }",
"public Living getTarget();",
"String getTarget() {\r\n return this.target;\r\n }",
"public boolean contains(AnyType target) {\n\t\treturn search(root, target);\n\t}",
"public boolean contains(E target) {\n\t\treturn indexOf(target) > -1;\n\t}",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"private Item fullSearch (String target){\n\t\ttry{\n\t\t\tif(target == null) return null;\n\t\t\tItem item = null;\n\t\t\t\titem = findItemByPos(target,screenManager.getInventoryManager().getPlayer().getContainerInventory());\n\t\t\tif (item != null) return item;\n\t\t\tif (screenManager.getInventoryManager().getOpenWorldChest()!= null)\n\t\t\t\titem = findItemByPos(target,screenManager.getInventoryManager().getOpenWorldChest());\n\t\t\tif (item != null) return item;\n\t\t\tif ( openContainer !=null)\n\t\t\t\titem = findItemByPos(target,((AbstractContainerItem)openContainer).getContainerInventory());\n\t\t\treturn item;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"Attribute getTarget();",
"public Mob getTarget() {\r\n return target.get();\r\n }",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public EObject getTarget() {\n\t\treturn adaptee.getTarget();\n\t}",
"public Name getTarget() {\n\t\treturn getSingleName();\n\t}",
"public boolean contains (T target);",
"public boolean contains (T target);",
"public Node searchElement(Object el) {\n\t\n\t\tfor (Node elemento : this.set) {\n\t\t\tif(elemento.getElemento().equals(el)) {\n\t\t\t\treturn elemento;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"Elem getElem();",
"@Override\n public T get(T target) {\n if (isEmpty()){// if list is empty, there's nothing to return \n return null;\n }\n else{\n DLNode<T> current = first;\n int index = 0;\n while (current != null && !current.elem.equals(target)) {\n current = current.next;\n index++;\n }\n if (current != null && current.elem.equals(target)) {\n return get(index); //call get(index) method again\n }\n return current.elem;\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n }",
"public String getMatchingElementXPath()\n\t{\n\t\treturn this.matchingElementXPath;\n\t}",
"public OMCollection getTarget() {\r\n return IServer.associationHasTarget().dr(this).range();\r\n }",
"public Player getTarget() {\n return target;\n }",
"public GameEntity getTarget() {\r\n\t\tif(mode == RadarMode.LOCKED) return currentTarget; else return null;\r\n\t}",
"public Element lookupSourceOrOutput()\n {\n for (Element e: Element.values())\n if (e.sourceOf == this || this.sourceOf == e)\n return e;\n\n return null;\n }",
"public static Element getTargetElement(\n final Element element, final Vector2fc vector, final Element initialTarget) {\n return getTargetElement(element, vector, initialTarget, false);\n }",
"public T getOffspring(T target) {\r\n if (target == tree[0]) {\r\n return null;\r\n }\r\n\r\n int tarIndex = (getIndex(target) - 1) / 2;\r\n try {\r\n return tree[tarIndex];\r\n }\r\n catch (ElementNotFoundException exception) {\r\n System.out.println(\"The parent does not exist\");\r\n return null;\r\n }\r\n }",
"Object getComponent(WebElement element);",
"public T search(T target) {\n\t\t\n\t\tBSTNode<T> tmp = root;\n\t\twhile(tmp != null) {\n\t\t\tint c = tmp.data.compareTo(target);\n\t\t\t\n\t\t\tif (c == 0) return tmp.data;\n\t\t\ttmp = c < 0 ? tmp.left: tmp.right;\n\t\t}\n\t\treturn null;\n\t}",
"public AstNode getTarget() {\n return target;\n }",
"public boolean hasTarget() {\n return target != null;\n }",
"public Balloon acquireTarget() {\r\n\r\n\t\tBalloon closest = null;\r\n\t\tfloat closestDistance = 1000;\r\n\t\tif (balloons != null) {\r\n\t\t\tfor (Balloon balloons : balloons) {\r\n\t\t\t\tif (isInRange(balloons) && findDistance(balloons) < closestDistance && balloons.getHiddenHealth() > 0) {\r\n\t\t\t\t\tclosestDistance = findDistance(balloons);\r\n\t\t\t\t\tclosest = balloons;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (closest != null) {\r\n\t\t\t\ttargeted = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn closest;\r\n\r\n\t}",
"public Element getElement() {\n return super.getElement();\n }",
"public boolean contains(T target);",
"public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }",
"Target target();",
"public static Image target()\n\t{\n\t\treturn targetImg;\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty getPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().find_element_user(PRESENT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public DNode getTo() { return targetnode; }",
"TrgPlace getTarget();",
"public Object getTargetObject() {\n return targetObject;\n }",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"private CFGNode findTarget(String target, ArrayList<CFGNode> nodes) {\n for (CFGNode n: nodes) {\n if (n.block.label != null && n.block.label.trim().equals(target.trim())) {\n return n;\n }\n }\n\n return null;\n }",
"public java.lang.String getTarget() {\n return target;\n }",
"public E element();",
"@NotNull\n Resource getTarget();",
"public DvEHRURI getTarget() {\n return target;\n }",
"@Override\n public void acceptHit(boolean hit, Element target) {\n }",
"String getElem();",
"String getElement();",
"public abstract Element getSourceElement(Element forElement) throws IOException;",
"public final EventTarget getEventTarget() {\n return this.target;\n }",
"public int findCoordElement(double target, boolean bounded) {\n switch (orgGridAxis.getSpacing()) {\n case regularInterval:\n case regularPoint:\n return findCoordElementRegular(target, bounded);\n case irregularPoint:\n case contiguousInterval:\n return findCoordElementContiguous(target, bounded);\n case discontiguousInterval:\n return findCoordElementDiscontiguousInterval(target, bounded);\n }\n throw new IllegalStateException(\"unknown spacing\" + orgGridAxis.getSpacing());\n }",
"N getTarget();",
"private <T extends Element> T getNearestElement(Element element, Class<T> klass) {\n List elements = element.nearestDescendants(klass);\n if (elements == null || elements.isEmpty()) {\n return null;\n }\n\n return (T) elements.get(0);\n }",
"public MenuElement getSelectedElement(PortalSiteRequestContext context)\n {\n // test nested menu and option menu\n // elements for selected status\n if (elements != null)\n {\n for (MenuElement element : elements)\n {\n // test element selected\n boolean selected = false;\n if (element instanceof MenuOption)\n {\n selected = ((MenuOption)element).isSelected(context);\n }\n else if (element instanceof Menu)\n {\n selected = ((Menu)element).isSelected(context);\n }\n \n // return selected element\n if (selected)\n {\n return element;\n }\n }\n }\n return null;\n }"
]
| [
"0.72097266",
"0.6912928",
"0.6819226",
"0.6814461",
"0.6361756",
"0.63208866",
"0.61980206",
"0.61980206",
"0.60910827",
"0.60156614",
"0.58992535",
"0.58555925",
"0.58545053",
"0.584169",
"0.5796001",
"0.5766331",
"0.57643944",
"0.57643944",
"0.573228",
"0.5709673",
"0.5698306",
"0.5698306",
"0.5698306",
"0.5687421",
"0.5682162",
"0.5662752",
"0.565826",
"0.5633888",
"0.5633888",
"0.5625704",
"0.5601485",
"0.55946875",
"0.55886126",
"0.55636394",
"0.55636394",
"0.55610937",
"0.55485016",
"0.5508709",
"0.55011386",
"0.54846317",
"0.5483066",
"0.5473615",
"0.5462385",
"0.5460832",
"0.5456822",
"0.5453745",
"0.5449584",
"0.54353666",
"0.54350585",
"0.5415622",
"0.5415421",
"0.5393933",
"0.53780144",
"0.537688",
"0.5373529",
"0.53689843",
"0.53689843",
"0.536858",
"0.53682715",
"0.5364982",
"0.53633684",
"0.53633684",
"0.53489476",
"0.5345422",
"0.53426397",
"0.53208846",
"0.53206885",
"0.5316666",
"0.5314033",
"0.53086275",
"0.5285398",
"0.52834284",
"0.5280748",
"0.52805376",
"0.52699417",
"0.5263411",
"0.52600443",
"0.52569944",
"0.5243827",
"0.5237911",
"0.52350986",
"0.52274764",
"0.5227317",
"0.52216864",
"0.5217775",
"0.5216059",
"0.5213708",
"0.5190093",
"0.518184",
"0.5179302",
"0.5179014",
"0.5178874",
"0.5171824",
"0.51700455",
"0.5155193",
"0.51355535",
"0.51347107",
"0.51311594",
"0.5130881",
"0.51298916",
"0.5120413"
]
| 0.0 | -1 |
Returns the type of target | final public int getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTargetType() {\n return targetType;\n }",
"public String getTargetType() {\n return targetType;\n }",
"public String getTargetType() {\n return targetType;\n }",
"public String getTargetType() {\n return targetType;\n }",
"public int getTargetType() {\n return targetType;\n }",
"public String getTargetType() {\n return this.targetType;\n }",
"TypeDec getTarget();",
"public final Class<?> getTargetType(){\n return this.targetType;\n }",
"Class<T> getTargetType();",
"public Class<T> getTargetType() {\n return this.targetType;\n }",
"public RuleTargetType getTargetType() {\n\t\treturn targetType;\n\t}",
"public Class<?> getTargetType()\n/* */ {\n/* 266 */ if (this.resolvedTargetType != null) {\n/* 267 */ return this.resolvedTargetType;\n/* */ }\n/* 269 */ return this.targetType != null ? this.targetType.resolve() : null;\n/* */ }",
"public TypeLiteral<T> getTargetType(){\n return targetType;\n }",
"TAbstractType getTarget();",
"public String getTargetTypeAsString() {\n\t\tString type = null;\n\t\t\n\t\tswitch (targetType) {\n\t\tcase PROCEDURE:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tcase POLICY:\n\t\t\ttype = \"policy\";\n\t\t\tbreak;\n\t\tcase PROCESS:\n\t\t\ttype = \"process\";\n\t\t\tbreak;\n\t\tcase EXTERNAL:\n\t\t\ttype = \"external\";\n\t\t\tbreak;\n\t\tcase NOT_SET:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\t}\n\t\treturn type;\n\t}",
"final Class<T> targetType() {\n return this.targetType;\n }",
"protected String getTargetTypeParameter() {\n if (!notEmpty(targetType)) {\n return null;\n }\n if (targetType.equals(\"exe\")) {\n return \"/exe\";\n } else if (targetType.equals(\"library\")) {\n return \"/dll\";\n } else {\n return null;\n }\n }",
"public abstract Class<T> targetType();",
"Class<?> getTargetClass();",
"public Class<T> getTargetClass() {\n\t\treturn targetClass;\n\t}",
"public com.alcatel_lucent.www.wsp.ns._2008._03._26.ics.phonesetstaticstate.AlcForwardTargetType getTargetType() {\r\n return targetType;\r\n }",
"public Class getType();",
"type getType();",
"public Class getType();",
"public Type getType();",
"public StorageTargetType targetType() {\n return this.targetType;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public Class<?> getTestClass()\r\n {\r\n return target.getClass();\r\n }",
"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();",
"NeuronType getType();",
"public Target getTarget() {\n return target;\n }",
"public Class<?> getTargetReturnType() {\n return targetReturnType;\n }",
"@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }",
"Type getSource();",
"public Target getTarget() {\n\n return target;\n }",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"protected MetadataClass getTargetClass() {\r\n return m_targetClass;\r\n }",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();"
]
| [
"0.82274103",
"0.82274103",
"0.82274103",
"0.82274103",
"0.81726205",
"0.8156806",
"0.7895347",
"0.7881927",
"0.77629566",
"0.76965076",
"0.7590644",
"0.75770795",
"0.74970675",
"0.7251687",
"0.72382885",
"0.71526915",
"0.71396285",
"0.700788",
"0.70033383",
"0.6787439",
"0.6777736",
"0.6762824",
"0.6745766",
"0.6743652",
"0.66676843",
"0.6600032",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.6589764",
"0.65862876",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6559955",
"0.6543731",
"0.65359855",
"0.65115625",
"0.64756495",
"0.64753693",
"0.6455388",
"0.645059",
"0.645059",
"0.645059",
"0.64448315",
"0.64448315",
"0.64448315",
"0.64448315",
"0.64448315",
"0.64448315",
"0.64448315",
"0.64448315",
"0.6443901",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035",
"0.64277035"
]
| 0.0 | -1 |
Enables/Disables the target completely | final public void setEnabled(boolean value) {
enabledType = value ? ENABLED_ANY : ENABLED_NONE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void disable();",
"void disable();",
"protected abstract void disable();",
"public void disable();",
"public void enable();",
"void disable() {\n }",
"public void toggleEnable();",
"public abstract void onDisable();",
"void disableMod();",
"public void enable(){\r\n\t\tthis.activ = true;\r\n\t}",
"public void enable() {\r\n m_enabled = true;\r\n }",
"default void onDisable() {}",
"public void disable(){\r\n\t\tthis.activ = false;\r\n\t}",
"protected abstract void enable();",
"public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}",
"public void onDisable() {\r\n }",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}",
"default void onEnable() {}",
"public abstract void onEnable();",
"public void onDisable() {\n }",
"public void onDisable() {\n }",
"@Override\n\tpublic void onDisable() {\n\t\tArduinoInstruction.getInst().disable();\n\t}",
"public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}",
"public void onDisable() {\n }",
"public void onDisable()\n {\n }",
"@Override\n\tpublic void onDisable() {\n\t\t\n\t}",
"public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }",
"public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}",
"void enableMod();",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"void enable();",
"public void onEnable() {\n }",
"public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}",
"public abstract void Enabled();",
"public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}",
"@Override\r\n\tpublic void onDisable() {\n\t}",
"public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }",
"public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}",
"void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void enable() {\n \t\t\tsetEnabled(true);\n \t\t}",
"@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}",
"public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }",
"@Override\n public void onDisable() {\n }",
"@Override\n\tpublic void onDisable() {\n\n\t}",
"public void onEnabled() {\r\n }",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"private void enableDisable() {\n fixDisplayName.setEnabled(automaticFix.isSelected());\n }",
"public void disable() {\n disabled = true;\n circuit.disable();\n updateSign(true);\n notifyChipDisabled();\n }",
"public abstract void wgb_onDisable();",
"public void acivatePlayer() {\n\t\tthis.setEnabled(true);\n\t}",
"@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }",
"public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}",
"public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }",
"private void fixEnabled(){\n setEnabled(graph.getUndoManager().canRedo());\n }",
"@Override\r\n public void setEnabled(final boolean b) {\r\n _enabled = b;\r\n }",
"public void enable() {\n operating = true;\n }",
"public void disable() {\n operating = false;\n }",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void disable(final Op op);",
"@Override\n\tpublic void onEnable() {\n\t}",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"protected void onDisabled() {\n // Do nothing.\n }",
"@Override\r\n\tpublic void enable() {\n\t\tcurrentState.enable();\r\n\t}",
"public boolean setEnabled(boolean enable);",
"public abstract void Disabled();",
"@Override\n public void onDisabled() {\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"@Override\r\n\tpublic void disable() {\n\t\tcurrentState.disable();\r\n\t}",
"public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}",
"public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }",
"private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\r\n public void onEnable() {\n \r\n }",
"@Override\n public void onEnable() {\n }",
"public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}",
"public void enable(){\n if(criticalStop) return;\n getModel().setStatus(true);\n }",
"@Override\n protected void setInitiallyEnabled(boolean forConstruction)\n {\n super.setInitiallyEnabled(forConstruction);\n\n setEnabled(CogToolLID.NewWidget,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.NewWidgetJustWarn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.AddDesignDevices,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomToFit,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomNormal,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomIn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomOut,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetBackgroundImage,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetWidgetColor,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.SkinNone,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWireFrame,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWinXP,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinMacOSX,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinPalm,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.RenderAll,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.UnRender,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n view.setIsBackgroundAvailable(enable);\n\n setViewEnabledState(selection, ListenerIdentifierMap.NORMAL);\n }",
"public void setEnabled(boolean b) {\n // Not supported for MenuComponents\n }",
"private void enableControls(boolean b) {\n\n\t}",
"public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != null) {\n new Thread(() -> onStatusChangedListener.notEnabled()).start();\n }\n }",
"private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}",
"public void activateShield() {\n shield.activate();\n }",
"public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }",
"public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}",
"boolean updateEnabling();",
"public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.disable(mBinder);\n } catch (RemoteException e) {\n Log.e(TAG, \"disable failed\");\n }\n }",
"private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }",
"public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }",
"public void disableStartButton(boolean b){\n start.setDisable(b);\n }",
"public static void ToggleEnabled()\n {\n \t\tEnabled = !Enabled;\n \t\tConfigHandler.configFile.save();\n \t \t\n }",
"@Override\n public void setEnabled(boolean val) {\n super.setEnabled(val);\n mEnabled = val;\n }",
"public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}",
"public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}",
"public void setEnabled(boolean value) {\n m_Enabled = value;\n }",
"public void setEnabled(boolean b) {\n setFocusable(b);\n other.setEnabled(b);\n }",
"public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }",
"@Override\n public void setEnabled(boolean enabled) {\n }"
]
| [
"0.7011237",
"0.7011237",
"0.69822675",
"0.69582355",
"0.6878389",
"0.6850571",
"0.6801138",
"0.6781713",
"0.6748658",
"0.67464197",
"0.6700836",
"0.6665293",
"0.66420573",
"0.6547167",
"0.65322715",
"0.65309745",
"0.6529361",
"0.6526209",
"0.65187824",
"0.6494778",
"0.6494778",
"0.649093",
"0.6489283",
"0.6471293",
"0.6467088",
"0.64637774",
"0.64597386",
"0.6456945",
"0.6455844",
"0.64394385",
"0.64348406",
"0.64016527",
"0.63987416",
"0.638995",
"0.63838756",
"0.6381822",
"0.6380275",
"0.63787496",
"0.6377271",
"0.63703394",
"0.63592243",
"0.6358488",
"0.63584083",
"0.6356228",
"0.63530135",
"0.63497233",
"0.6344406",
"0.6321013",
"0.63119125",
"0.6303512",
"0.62982345",
"0.6277728",
"0.6203445",
"0.6202089",
"0.62006015",
"0.61977667",
"0.61893296",
"0.61674285",
"0.61674285",
"0.61674285",
"0.61674285",
"0.61632174",
"0.6159745",
"0.61587214",
"0.61587214",
"0.6139775",
"0.61251324",
"0.6116459",
"0.6112154",
"0.61036235",
"0.6065387",
"0.606295",
"0.60577947",
"0.6057515",
"0.60375553",
"0.60255784",
"0.60226727",
"0.6014856",
"0.6001988",
"0.59991354",
"0.59894973",
"0.59761465",
"0.5974556",
"0.5961815",
"0.5959406",
"0.59552664",
"0.59486014",
"0.59457964",
"0.59441817",
"0.5939083",
"0.5938282",
"0.5937324",
"0.5927091",
"0.5926339",
"0.5922701",
"0.5921886",
"0.5909183",
"0.5902039",
"0.5901563",
"0.5899548",
"0.5896324"
]
| 0.0 | -1 |
Returns the enabled status of the target | final public boolean isEnabled() {
return enabledType!=ENABLED_NONE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"java.lang.String getEnabled();",
"boolean hasEnabled();",
"public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn status;\n\t}",
"public Boolean getEnabled() {\r\n return enabled;\r\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public boolean getEnabled() {\n return enabled;\n }",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public Boolean getEnabled() {\n return enabled;\n }",
"public Boolean enabled() {\n return this.enabled;\n }",
"public java.lang.Boolean getEnabled() {\n return enabled;\n }",
"public String isEnabled() {\n return this.isEnabled;\n }",
"public boolean enabled(){\n return enabled;\n }",
"public boolean getEnabled() {\n\t\treturn mCurrentState != STATE.DISABLED;\n\t}",
"public boolean enabled() {\n return m_enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public boolean isEnabled() { return _enabled; }",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"public boolean isEnable() {\n return _enabled;\n }",
"public boolean isEnabled()\r\n\t{\r\n\t\treturn enabled;\r\n\t}",
"public java.lang.String getEnabled() {\n java.lang.Object ref = enabled_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n enabled_ = s;\n }\n return s;\n }\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean enabled() {\r\n\t\treturn engaged;\r\n\t}",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n\n return enabled;\n }",
"@Override\n\tpublic boolean getEnabled();",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public boolean isEnabled(){\n return enabled;\n }",
"public boolean isEnabled() {\n return myEnabled;\n }",
"public java.lang.String getEnabled() {\n java.lang.Object ref = enabled_;\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 enabled_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }",
"public boolean isEnabled ( ) {\r\n\t\treturn enabled;\r\n\t}",
"public Boolean isEnabled() {\n return this.isEnabled;\n }",
"public Boolean isEnabled() {\r\r\n\t\treturn _isEnabled;\r\r\n\t}",
"public com.google.protobuf.ByteString\n getEnabledBytes() {\n java.lang.Object ref = enabled_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n enabled_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public Boolean isEnable() {\n return this.enable;\n }",
"public boolean isEnabled(){\n\t\treturn mEnabled;\n\t}",
"public boolean isEnabled() {\n return m_Enabled;\n }",
"public boolean isEnabled() {\r\n return m_enabled;\r\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public Boolean getEnable() {\n return this.enable;\n }",
"public Boolean getEnable() {\n\t\treturn enable;\n\t}",
"public com.google.protobuf.ByteString\n getEnabledBytes() {\n java.lang.Object ref = enabled_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n enabled_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean isEnabled() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.ENABLED) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean isEnabled() { return this.myEnabled; }",
"public boolean isEnabled() {\n return mBundle.getBoolean(KEY_ENABLED, true);\n }",
"public boolean isEnable() {\n return enable;\n }",
"com.google.protobuf.ByteString\n getEnabledBytes();",
"public Boolean getEnable() {\n return enable;\n }",
"public Boolean getEnable() {\n return enable;\n }",
"boolean updateEnabling();",
"public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}",
"public Boolean isEnable() {\n\t\treturn enable;\n\t}",
"public String getEnable() {\r\n return enable;\r\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn this.enabled;\n\t}",
"public boolean isEnabled() {\n return isEnabled;\n }",
"public static boolean isEnabled() {\n return true;\n }",
"public Boolean enable() {\n return this.enable;\n }",
"public Boolean enabled() {\n return this.innerProperties() == null ? null : this.innerProperties().enabled();\n }",
"final public int getEnabled() {\n return enabledType;\n }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public static Boolean getEnabledStatus(By byObj) {\n\t\treturn driver.findElement(byObj).isEnabled();\n\t}",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }",
"public int getEnabledLevel()\r\n {\r\n return this.enabled;\r\n }"
]
| [
"0.7669354",
"0.7319618",
"0.7319618",
"0.7319618",
"0.7304348",
"0.713966",
"0.7114058",
"0.7026082",
"0.7026001",
"0.699083",
"0.699083",
"0.698412",
"0.6978586",
"0.6974982",
"0.6968458",
"0.69622916",
"0.69482034",
"0.6910354",
"0.6876961",
"0.6827192",
"0.67892617",
"0.67892617",
"0.67892617",
"0.6788264",
"0.67643964",
"0.67643964",
"0.67643964",
"0.67643964",
"0.67643964",
"0.67643964",
"0.67643964",
"0.67643964",
"0.6763113",
"0.6753607",
"0.67263997",
"0.6720364",
"0.6720364",
"0.67111284",
"0.67111284",
"0.6702198",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.66708267",
"0.6668642",
"0.6662258",
"0.6648955",
"0.6648955",
"0.6648415",
"0.66362095",
"0.6633166",
"0.66322565",
"0.66318995",
"0.6626826",
"0.6623917",
"0.66172016",
"0.66076064",
"0.6604562",
"0.6598823",
"0.6598823",
"0.6598823",
"0.6598823",
"0.6598823",
"0.6597172",
"0.65891457",
"0.6588504",
"0.65830034",
"0.65758806",
"0.65758806",
"0.6562817",
"0.6518986",
"0.6515772",
"0.65140206",
"0.65060645",
"0.65001696",
"0.6498137",
"0.6474639",
"0.6467472",
"0.6466332",
"0.6465949",
"0.64566255",
"0.64516443",
"0.64514166",
"0.6440772",
"0.6437118",
"0.64148146",
"0.6414115",
"0.6394525",
"0.63850474",
"0.6382937",
"0.6379038",
"0.63589793",
"0.6351166",
"0.6349674"
]
| 0.6690354 | 40 |
Sets partially the interaction capability of the target One of: ENABLED_NONE: the target is not responsive ENABLED_ANY: any motion is allowed ENABLED_X: the target only responds to motion in the X direction ENABLED_Y: the target only responds to motion in the Y direction | final public void setEnabled(int value) {
enabledType = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void interact(Object obj) {\n // TODO: Cave Code - Add additional Agility to the player while on this Tile\n }",
"public void basicMotion() {\r\n\t\tPVector v = behavior.behavior(obj.getMotion());\r\n\t\tobj.getMotion().setVelocity(v);\r\n\t\t\r\n\t\tobj.getMotion().kinematicUpdate();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfloat x = obj.getMotion().getPosition().x;\r\n\t\tfloat y = obj.getMotion().getPosition().y;\r\n\t\tif(y <= turnCornerMin ) {\r\n\t\t\tbehavior.setDest(turnCornerMax,turnCornerMin);\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(x >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMax, turnCornerMax);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(y >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMin, turnCornerMax);\r\n\t\t}\r\n\t\t\r\n\t\tif(x < turnCornerMin) {\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tobj.updateObjKinematics(x, y, obj.getMotion().getOrientation());\r\n\t}",
"public abstract boolean interactionPossible(Robot robot);",
"public void maybeMarkCapabilitiesRestricted() {\n // Check if we have any capability that forces the network to be restricted.\n final boolean forceRestrictedCapability =\n (mNetworkCapabilities & FORCE_RESTRICTED_CAPABILITIES) != 0;\n\n // Verify there aren't any unrestricted capabilities. If there are we say\n // the whole thing is unrestricted unless it is forced to be restricted.\n final boolean hasUnrestrictedCapabilities =\n (mNetworkCapabilities & UNRESTRICTED_CAPABILITIES) != 0;\n\n // Must have at least some restricted capabilities.\n final boolean hasRestrictedCapabilities =\n (mNetworkCapabilities & RESTRICTED_CAPABILITIES) != 0;\n\n if (forceRestrictedCapability\n || (hasRestrictedCapabilities && !hasUnrestrictedCapabilities)) {\n removeCapability(NET_CAPABILITY_NOT_RESTRICTED);\n }\n }",
"public void setCapability(Capability value) {\n\t\tthis._capability = value;\n\t}",
"@Override\n public void execute() {\n drivetrain.set(ControlMode.MotionMagic, targetDistance, targetDistance);\n }",
"public void setInteractable(boolean interactable) {\n\t\tthis.interactable = interactable;\n\t}",
"public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }",
"protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"public void setCurrentAbilityTarget(int enemyTargetIntentX, int enemyTargetIntentY, boolean hitOrSplat) {\n this.currentAbilityTargetX = enemyTargetIntentX;\n this.currentAbilityTargetY = enemyTargetIntentY;\n this.currentlyAbilityHit = hitOrSplat;\n }",
"public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }",
"@Override\n public void useWeapon(ResponseInput responseMessage)\n {\n basicMode(((ResponseRocketLauncher) responseMessage).getTargetPlayerBasicMode(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringPlayerToMove(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringTargetToMove(), ((ResponseRocketLauncher) responseMessage).isWithFragWarhead() ) ;\n }",
"public void setMotorBehaviors(){\n motors = new ArrayList<>();\n motors.add(rf);\n motors.add(rb);\n motors.add(lf);\n motors.add(lb);\n\n //reset motor encoders\n rf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set motor behaviors\n rf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rf.setDirection(DcMotorSimple.Direction.REVERSE);\n rb.setDirection(DcMotorSimple.Direction.REVERSE);\n relic_extension.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n lift.setDirection(DcMotorSimple.Direction.REVERSE);\n\n //Set servo behaviors\n leftWheel2.setDirection(DcMotorSimple.Direction.REVERSE);\n rightWheel1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n }",
"protected void setInteracting(CommandSender sender) {\n this.sender = sender;\n setChanged();\n notifyObservers();\n }",
"@Override\n public boolean interact(EntityPlayer player)\n {\n if (!super.interact(player)) return false;\n \n targetHelicopter = null; // inactivate ai\n \n return true;\n }",
"public void setSkillEnable(int healthPointMax){\n if(healthPointMax >= 200000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n if(skill4.getEnable() == false){\n setSkillPending(3);\n skill4.setEnable(true);\n skill4.setCanUse(true);\n }\n }\n else if(healthPointMax >= 50000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n }\n else if(healthPointMax >= 10000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n }\n else if(healthPointMax >= 500){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n }\n }",
"public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }",
"public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}",
"public void setFeedback()\n\t{\n\t\tif(feedback == null || feedback.equals(\"\")) {\n\t\t System.out.println(\"\");\n\t\t return;\n\t\t}\n\t\tSystem.out.println(\"here in feedback!\");\n\t\tfinal StringTokenizer st = new StringTokenizer(feedback,\",\");\n\t\t//switch dependants mode based on om string\n\t\tif(om.equals(\"graphic_associate_interaction\"))\n\t\t{\n\t\t\tif(associations == null)\n\t\t\t\tassociations = new Vector<Association>();\n\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\t//split the token again to get the two key codes\n\t\t\t\tfinal String[] parts = st.nextToken().split(\" \");\n\t\t\t\tBoundObject start = null;\n\t\t\t\tBoundObject end = null;\n\t\t\t\tfor(int i=0; i< hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(parts[0]))\n\t\t\t\t\t\tstart = hotspots.elementAt(i);\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(parts[1]))\n\t\t\t\t\t\tend = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tif(start != null && end != null)\n\t\t\t\t{\n\t\t\t\t\tstart.assCount++;\n\t\t\t\t\tend.assCount++;\n\t\t\t\t\tassociations.add(new Association(start,end,start.getPoint(end.getCentrePoint()),end.getPoint(start.getCentrePoint())));\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"hotspot_interaction\"))\n\t\t{\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tfinal String code = st.nextToken();\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(code))\n\t\t\t\t\t\thotspots.elementAt(i).highlighted = true;\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"graphic_order_interaction\"))\n\t\t{\n\t\t\tint index = 0;\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tfinal String code = st.nextToken();\n\t\t\t\tBoundObject hotSpot = null;\n\t\t\t\tMovableObject movObj = null;\n\t\t\t\tfor(int i=0; i<hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(code))\n\t\t\t\t\t\thotSpot = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tmovObj = movableObjects.elementAt(index);\n\n\t\t\t\tif(movObj != null && hotSpot != null)\n\t\t\t\t{\n\t\t\t\t\tmovObj.bound.put(hotSpot.keyCode,new Boolean(true));\n\t\t\t\t\tmovObj.assCount++;\n\t\t\t\t\thotSpot.bound.put(movObj.keyCode,new Boolean(true));\n\t\t\t\t\thotSpot.assCount++;\n\t\t\t\t\tmovObj.setPos(hotSpot.getCentrePoint());\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t}else if(om.equals(\"gap_match_interaction\"))\n\t\t{\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"handling a token!\");\n\t\t\t\tfinal String[] codepair = st.nextToken().split(\" \");\n\t\t\t\tBoundObject hotSpot = null;\n\t\t\t\tMovableObject movObj = null;\n\t\t\t\tfor(int i=0; i<hotspots.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(hotspots.elementAt(i).keyCode.equals(codepair[1]))\n\t\t\t\t\t\thotSpot = hotspots.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(movableObjects.elementAt(i).keyCode.equals(codepair[0]))\n\t\t\t\t\t\tmovObj = movableObjects.elementAt(i);\n\t\t\t\t}\n\n\t\t\t\tif(movObj != null && hotSpot != null)\n\t\t\t\t{\n\t\t\t\t\tmovObj.bound.put(hotSpot.keyCode,new Boolean(true));\n\t\t\t\t\tmovObj.assCount++;\n\t\t\t\t\thotSpot.bound.put(movObj.keyCode,new Boolean(true));\n\t\t\t\t\thotSpot.assCount++;\n\t\t\t\t\tmovObj.setPos(hotSpot.getCentrePoint());\n\n\t\t\t\t\tSystem.out.println(\"looking to clone...\");\n\t \t\t\t\tfinal Integer size = movObjCount.get(movObj.keyCode);\n\t \t\t\t\tmovObjCount.remove(movObj.keyCode);\n\t \t\t\t\tfinal int sz = size.intValue()+1;\n\t \t\t\t\tmovObjCount.put(movObj.keyCode, new Integer(sz));\n\t \t\t\t\tfinal Integer maxSize = movObjMaxCount.get(movObj.keyCode);\n\t \t\t\t\tSystem.out.println(\"key variables are [current size] : \"+sz+\" and [maxSize] : \"+maxSize.intValue());\n\t \t\t\t\tif(maxSize.intValue() == 0 || sz < maxSize.intValue())\n\t \t\t\t\t{\n\t \t\t\t\t\tfinal MovableObject copy = movObj.lightClone();\n\t \t\t\t\t\tcopy.resetPos();\n\t \t\t\t\t\tmovableObjects.add(copy);\n\t \t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tuser_responses++;\n\t\t\t}\n\t\t} else if (om.equals(\"figure_placement_interaction\")) {\n\t\t while (st.hasMoreTokens()) {\n\t\t final String[] codepair = st.nextToken().split(\":\");\n\t\t final String[] coords;\n\t\t if (codepair.length > 1) {\n\t\t coords = codepair[1].split(\"-\");\n\t\t if (coords.length > 1) {\n\t\t System.out.println(\"Code pair is: \"+coords[0]+\", \"+coords[1]);\n\t\t }\n\t\t } else {\n\t\t continue;\n\t\t }\n\t\t MovableObject movObj = null;\n\t\t for(int i=0; i < movableObjects.size(); i++)\n {\n\t\t System.out.println(\"keycode is: \" + movableObjects.elementAt(i).getKeyCode() + \" saved one is: \" + codepair[0]);\n if(movableObjects.elementAt(i).getKeyCode().equals(codepair[0])) {\n movObj = movableObjects.elementAt(i);\n break;\n }\n }\n\t\t if (movObj != null && coords.length > 1) {\n\t\t movObj.setPos(new Point(Integer.parseInt(coords[0]), Integer.parseInt(coords[1])));\n\t\t }\n\t\t }\n\t\t}\n\t}",
"public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}",
"public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }",
"public interface MultiScreenEnable\n {\n /**\n * allow\n */\n String ALLOW = \"0\";\n\n /**\n * not allow\n */\n String NOT_ALLOW = \"1\";\n }",
"@Override\n public void challengeMode() {\n super.setHP(2100);\n super.getFrontAttack().setBaseDamage(43.75);\n super.getRightAttack().setBaseDamage(43.75);\n super.getBackAttack().setBaseDamage(43.75);\n super.getBackAttack().setMainStatus(new Bleed(0.7));\n super.getBackAttack().setDescription(\"The Jyuratodus uses the razor fin on its tail to slice the area \" +\n \"behind it while flinging mud to the sides!\");\n super.getLeftAttack().setBaseDamage(43.75);\n }",
"public void meleemode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n firemode = getOthers();\r\n if(getOthers() == 1) {\r\n duelmode(e);\r\n } runaway(e);\r\n }",
"public interface InteractionTarget extends org.opensourcephysics.display.Interactive {\n // Needs to extend Interactive for backwards compatibility\n\n public InteractionSource getSource ();\n\n public Point3D getHotspot (DrawingPanel _panel);\n\n public void updateHotspot (DrawingPanel _panel, Point3D _point);\n\n}",
"public static void driverControls() {\n\t\tif (driverJoy.getYButton()) {\n\t\t\tif (!yPrevious) {\n\t\t\t\tyEnable = !yEnable;\n\t\t\t\tif (yEnable) {\n\t\t\t\t\tClimber.frontExtend();\n\t\t\t\t} else {\n\t\t\t\t\tClimber.frontRetract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tyPrevious = driverJoy.getYButton();\n\n\t\t// Toggle switch for the front climbing pneumatics\n\t\tif (driverJoy.getBButton()) {\n\t\t\tif (!bPrevious) {\n\t\t\t\tbEnable = !bEnable;\n\t\t\t\tif (bEnable) {\n\t\t\t\t\tClimber.backExtend();\n\t\t\t\t} else {\n\t\t\t\t\tClimber.backRetract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbPrevious = driverJoy.getBButton();\n\n\t\t// Toggles for extending and retracting the hatch\n\t\tif (driverJoy.getAButton()) {\n\t\t\tSystem.out.println((Arm.getSetPosition() == Constants.HATCH_ONE) + \"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\t\t\tif (!aPrevious) {\n\t\t\t\taEnable = !aEnable;\n\t\t\t\tif (aEnable) {\n\t\t\t\t\tif (Arm.getSetPosition() == Constants.HATCH_ONE && Arm.isWithinDeadband())// && Arm.isWithinDeadband()) //TODO add this in\n\t\t\t\t\t\tHatchIntake.extend();\n\t\t\t\t} else\n\t\t\t\t\tHatchIntake.retract();\n\t\t\t}\n\t\t}\n\t\taPrevious = driverJoy.getAButton();\n\n\t\t// Start to open servo, back to close\n\t\tif (driverJoy.getStartButton()) {\n\t\t\tHatchIntake.openServo();\n\t\t}\n\t\tif (driverJoy.getBackButton()) {\n\t\t\tHatchIntake.closeServo();\n\t\t}\n\n\t\t// Toggles for extending and retracting the crab\n\t\tif (driverJoy.getXButton()) {\n\t\t\tif (!xPrevious) {\n\t\t\t\txEnable = !xEnable;\n\t\t\t\tif (xEnable) {\n\t\t\t\t\tCrab.extend();\n\t\t\t\t} else {\n\t\t\t\t\tCrab.retract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\txPrevious = driverJoy.getXButton();\n\n\t\t// Make crab move left or right\n\t\tif (driverJoy.getBumper(Hand.kLeft)) {\n\t\t\tCrab.driveLeft();\n\t\t} else if (driverJoy.getBumper(Hand.kRight)) {\n\t\t\tCrab.driveRight();\n\t\t} else {\n\t\t\tCrab.driveStop();\n\t\t}\n\n\t\t// Intake controls\n\t\tif (driverJoy.getTriggerAxis(Hand.kRight) > .1) {\n\t\t\tIntake.runIntake();\n\t\t} else if (driverJoy.getTriggerAxis(Hand.kLeft) > .1) {\n\t\t\tIntake.runOuttake();\n\t\t} else {\n\t\t\tIntake.stopIntake();\n\t\t}\n\n\t\t// Drive controls front back\n\t\tif (Math.abs(driverJoy.getY(Hand.kLeft)) > .12) {\n\t\t\tspeedStraight = driverJoy.getY(Hand.kLeft);\n\t\t} else {\n\t\t\tspeedStraight = 0;\n\t\t}\n\t\t// Drive controls left right\n\t\tif (Math.abs(driverJoy.getX(Hand.kRight)) > .12) {\n\t\t\tturn = driverJoy.getX(Hand.kRight);\n\t\t} else {\n\t\t\tturn = 0;\n\t\t}\n\t\tDriveTrain.drive(speedStraight, turn);\n\t}",
"@Override\n public boolean isUsableEffectOne() {\n return getEffectsEnable()[0] && getUsableEffect()[0] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0;\n }",
"public void setHapticsEnabled(boolean hapticsEnabled) {\n this.hapticsEnabled = hapticsEnabled;\n }",
"public void liftArm(){armLifty.set(-drivePad.getThrottle());}",
"public boolean isSwimming() {\n/* 1967 */ return (!this.abilities.flying && !isSpectator() && super.isSwimming());\n/* */ }",
"public boolean canInteract(){\n\t\treturn false;\n\t}",
"public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }",
"public void skills(){\n\t\tup = false;\n\t\tdown = false;\n\t\tleft = false;\n\t\tright = false;\n\t\tskillmode = true;\n\t\t\n\t\tif(player.hasSkillHealth1()){\n\t\t\tt1.setEnabled(false);\n\t\t\tt3.setEnabled(true);\n\t\t}else{\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillHealth2()){\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength1()){\n\t\t\tt2.setEnabled(false);\n\t\t\tt4.setEnabled(true);\n\t\t}else{\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength2()){\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\tskills.setVisible(true);\n\t\t\n\t}",
"public void operatorControl() {\n \tdouble ctrlThresh = .2; \n \tdouble minPower = .05; \n \tdouble maxPower = .75; \n \tdouble recip = (1 - ctrlThresh); \n \tdouble mult = (maxPower - minPower); \n \tdouble right; \n \tdouble strafe; \n \tdouble rotate; \n \tdouble rightAxis; \n \tdouble strafeAxis; \n \tdouble rotateAxis; \n \t// \tboolean leftLeft; \n \t// \tboolean leftRight; \n \tdouble rightDir; \n \tdouble strafeDir; \n \tdouble rotateDir; \n \tdouble rightPower; \n \tdouble rotatePower; \n \tdouble strafePower; \n \t\n \tint winchCount;\n \tboolean winchDirection;\n \n \t// \tdouble frontLeftPower; \n \t// \tdouble frontRightPower; \n \t// \tdouble backLeftPower; \n \t// \tdouble backRightPower; \n \n \t//myRobot.setSafetyEnabled(true); \n \t\n \tAccelerometer test = new BuiltInAccelerometer();\n \t\n \twhile (isOperatorControl() && isEnabled()) { \n \t\t// ACCEL TEST CODE\n// \t\tSystem.out.println(test.getX() + \", \" + test.getY() + \", \" + test.getZ());\n \t\t// END ACCEL TEST CODE\n \n \t\t// ********** BEGIN DRIVING CODE ********** \n \t\t// Code for driving using omniwheels and two wheels for strafing \n \t\t// Diagram for the wheels of the robot below. \n \n \t\t// L S R \n \t\t// /--------------------------\\ \n \t\t//\t ||------------------------|| \n \t\t// || [][] || \n \t\t// || [] [] || \n \t\t// || [] [] || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || || \n \t\t// || [] [] || \n \t\t// || [] [] || \n \t\t// || [][] || \n \t\t// ||------------------------|| \n \t\t// \\--------------------------/ \n \t\t// \n \t\t// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \n \n \t\tctrlThresh = .2; // the point at which we want to sense joystick action \n \t\trecip = 1-ctrlThresh; \t\t // = 0.8 \n \n \t\trightAxis = rightStick.getRawAxis(1);\t\t\t\t// right joystick, y (up/down) axis\n \t\t\n \t\t//System.out.println(\"\"+rightAxis);\n \t\tstrafeAxis = rightStick.getRawAxis(0);\t\t\t\t// right joystick, x (left/right) axis; this is \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/// arbitrary and could have been the left stick\n \t\trotateAxis = rightStick.getRawAxis(4);\t\t\t\t\t// left joystick, y axis\n \n \t\trightDir = rightAxis/Math.abs(rightAxis);\t\t\t// forward or backward (+1 or -1)\n \t\tstrafeDir = strafeAxis/Math.abs(strafeAxis); \t// \t\t\t'' \n \t\trotateDir = rotateAxis/Math.abs(rotateAxis); // \t\t\t'' \n \n \t\tright = 0; // right input formatted for range of detected values [0.2,1] \n \t\trotate = 0; // left input formatted \n \t\tstrafe = 0; // strafe input formatted \n \n \t\tif(Math.abs(rightAxis) > ctrlThresh) \t// user moved stick beyond threshold \n \t\t{right = (rightAxis-ctrlThresh*rightDir)/recip;} // format right: scale back, set direction, proportion it \n \t\tif(Math.abs(strafeAxis) > ctrlThresh) \n \t\t{strafe = (strafeAxis-ctrlThresh*strafeDir)/recip;} // format left... \n \t\tif(Math.abs(rotateAxis) > ctrlThresh) \n \t\t{rotate = (rotateAxis-ctrlThresh*rotateDir)/recip;}\t\t// format strafe... \n \n \n \t\trightDir = right/Math.abs(right); \n \t\trightPower = (Math.abs(right*mult) + minPower) * rightDir; \t\t// re-proportion for power's range, strip direction,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/// and then add back threshold and direction. \n \t\trotateDir = rotate/Math.abs(rotate); \n \t\trotatePower = (Math.abs(rotate*mult) + minPower) * rotateDir;\t\t\t// \t\t'' \n \n \t\tstrafeDir = strafe/Math.abs(strafe); \n \t\tstrafePower = (Math.abs(strafe*mult) + minPower) * strafeDir;\t// \t\t'' \n \n \t\tif(Math.abs(rightPower)>0.2){\n \t\t\tfrontRight.set(rightPower);\t\t\t\t\t\t// set all the motors with the powers we \n \t\t\tbackRight.set(rightPower);\t\t\t\t\t\t/// calculated above : drive! \n \t\t\tfrontLeft.set(-1*rightPower); \n \t\t\tbackLeft.set(-1*rightPower);\n \t\t}\n \t\telse{\n \t\t\tfrontRight.set(rotatePower);\n \t\t\tbackRight.set(rotatePower);\n \t\t\tfrontLeft.set(rotatePower);\n \t\t\tbackLeft.set(rotatePower);\n \t\t}\n \t\t\n// \t\tfrontStrafe.set(strafePower); \n// \t\tbackStrafe.set(-1*strafePower); \n \n// \t\tmyRobot.tankDrive(leftStick, rightStick); \n \t\t \n \t\t// ********** END OF DRIVING CODE ********** \n \t\t//======================================================================= \n \t\t// ************ BEGIN WINCH CODE *********** \n \t\t// We need to code the winch to help raise and lower the elevator \n \t\t// This is just one option between the winch and the lead screw. \n \t\t \n \t\t\n \t\t//second winch test\n \t\t/*\n \t\twinchCount = winchEncoder.get();\t\t\t\t// get the pulse count from the encoder\n \t \tSystem.out.println(\"Count: \"+ winchCount);\t\t// print the pulse count \n \t \tif(winchCount<240){\n \t \t\t\n \t \t\twinchCim1.set(.1);\n \t \t\twinchCim2.set(.1);\n \t \t}\n \t \telse{\n \t \t\twinchCim1.set(0);\n \t \t\twinchCim2.set(0);\n \t \t\t\n \t \t}\n \t if(rightStick.getRawButton(5)) \n { \n\t\t\t winchEncoder.reset();// reset the pulse count\n\t\t\t winchCount = 0;\n\t\t\t winchCim1.set(0);\n\t\t\t winchCim2.set(0);\n\t\t\t \n } */ //end of second winch test \n \t \t\n \t\t\n \t\t if(rightStick.getRawButton(5)) \n { \n \t\t\t //winchEncoder.reset();// reset the pulse count\n \tSystem.out.println(\"A\");\n \t winchCim1.set(.5); \t// set winchCim1 to 0.5 power (upwards) \n \t winchCim2.set(.5); \t\t\t\t\t\t\t// set winchCim2 to 0.5 power\n \t\t\t \n } \n \t\telse if(rightStick.getRawButton(4))\n \t\t{\n \t\t\tSystem.out.println(\"B\");\n \t\t\t//winchEncoder.reset();\t\t\t\t\t\t\t// reset the pulse count\n \t \twinchCim1.set(-.3); // set winchCim1 to -0.5 power (downwards) \n \t \twinchCim2.set(-.3);\t \t\t\t\t\t\t\t// set winchCim2 to -0.5 power\n \t\t}\n \n \t \telse// if(rightStick.getRawButton(2)) \n { \n \t winchCim1.set(0); \t\t\t\t\t\t\t// set winchCim1 to 0 power (off/stop) \n \t winchCim2.set(0);\t\t\t\t\t\t\t\t// set winchCim2 to 0 pwoer (off/stop)\n// \t winchCount = winchEncoder.get();\t\t\t\t// get the pulse count from the encoder\n// \t System.out.println(\"Count: \"+ winchCount);\t\t// print the pulse count \n } \n \n \t\t// ********** END OF WINCH CODE ********** \n \t\t//======================================================================= \n \t\t \n \t\t \n \t\tTimer.delay(0.005);\t\t// wait for a motor update time \n } \n }",
"@Override\n\tpublic void onAction(L2PcInstance player, boolean interact)\n\t{\n\t\tif(!canTarget(player))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tplayer.setLastFolkNPC(this);\n\n\t\t// Check if the L2PcInstance already target the L2GuardInstance\n\t\tif(getObjectId() != player.getTargetId())\n\t\t{\n\t\t\t// Send a Server->Client packet MyTargetSelected to the L2PcInstance player\n\t\t\t// The color to display in the select window is White\n\t\t\tMyTargetSelected my = new MyTargetSelected(getObjectId(), 0);\n\t\t\tplayer.sendPacket(my);\n\n\t\t\t// Set the target of the L2PcInstance player\n\t\t\tplayer.setTarget(this);\n\n\t\t\t// Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client\n\t\t\tplayer.sendPacket(new ValidateLocation(this));\n\t\t}\n\t\telse if(interact)\n\t\t{\n\t\t\t// Check if the L2PcInstance is in the _aggroList of the L2GuardInstance\n\t\t\tif(containsTarget(player))\n\t\t\t{\n\t\t\t\t// Set the L2PcInstance Intention to AI_INTENTION_ATTACK\n\t\t\t\tplayer.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Calculate the distance between the L2PcInstance and the L2NpcInstance\n\t\t\t\tif(canInteract(player))\n\t\t\t\t{\n\t\t\t\t\t// Send a Server->Client packet SocialAction to the all L2PcInstance on the _knownPlayer of the L2NpcInstance\n\t\t\t\t\t// to display a social action of the L2GuardInstance on their client\n\t\t\t\t\t// Если НПЦ не разговаривает, то слать социалку приветствия собственно и не имеет смысла\n\t\t\t\t\tif(!Config.NON_TALKING_NPCS.contains(getNpcId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tbroadcastPacket(new SocialAction(getObjectId(), Rnd.get(8)));\n\t\t\t\t\t}\n\n\t\t\t\t\tList<Quest> qlsa = getTemplate().getEventQuests(Quest.QuestEventType.QUEST_START);\n\t\t\t\t\tList<Quest> qlst = getTemplate().getEventQuests(Quest.QuestEventType.ON_FIRST_TALK);\n\n\t\t\t\t\tif(qlsa != null && !qlsa.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tplayer.setLastQuestNpcObject(getObjectId());\n\t\t\t\t\t}\n\n\t\t\t\t\tif(qlst != null && qlst.size() == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tqlst.get(0).notifyFirstTalk(this, player);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tshowChatWindow(player, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Set the L2PcInstance Intention to AI_INTENTION_INTERACT\n\t\t\t\t\tplayer.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Send a Server->Client ActionFail to the L2PcInstance in order to avoid that the client wait another packet\n\t\tplayer.sendActionFailed();\n\t}",
"protected void enableActionMute()\n {\n Action action = new Action(\"Mute\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateMute = new DoMute();\n enableAction(action, iDelegateMute);\n }",
"public void setgearExtendLights(){\n \tgearExtendLights.set(true);\n }",
"@Override\r\n\tpublic boolean action(L2PcInstance activeChar, L2Object target, boolean interact)\r\n\t{\n\t\tfinal int castleId = MercTicketManager.getInstance().getTicketCastleId(((L2ItemInstance) target).getItemId());\r\n\t\t\r\n\t\tif ((castleId > 0) && (!activeChar.isCastleLord(castleId) || activeChar.isInParty()))\r\n\t\t{\r\n\t\t\tif (activeChar.isInParty())\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Voce nao pode pegar mercenarios enquanto estiver em party.\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Somente o lord do castelo pode melhorar os mercenarios.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tactiveChar.setTarget(target);\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);\r\n\t\t}\r\n\t\telse if (!activeChar.isFlying())\r\n\t\t{\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_PICK_UP, target);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void interact(float x, float y, float t) {}",
"@SuppressWarnings(\"unused\")\n private void setAllGesturesEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n UiSettings uiSettings = map.getUiSettings();\n uiSettings.setAllGesturesEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }",
"public void setCanMove(double cmd){\n \tleftCanMotor.set(cmd);\n \trightCanMotor.set(cmd); \n }",
"@Override\n public CapabilityPriorityLevel getMediaControlCapabilityLevel() {\n return CapabilityPriorityLevel.HIGH;\n }",
"@Override\n\tvoid movableInteraction(Tile t) {\n\t\tif (t.hasMovable()){\n\t\t\tthis.triggered = true;\n\t\t} else {\n\t\t\tthis.triggered = false;\n\t\t}\n\t}",
"public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}",
"public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }",
"public void enableInputs();",
"public void setVmotionSupported(boolean vmotionSupported) {\r\n this.vmotionSupported = vmotionSupported;\r\n }",
"@Generated\n @Selector(\"setWantsPriorityOverSystemBehavior:\")\n public native void setWantsPriorityOverSystemBehavior(boolean value);",
"@Override\n public void interact(GameObject go) {\n if (interactionTimeout == 0) {\n if (go.getClass().equals(Player.class)) {\n Line target = new Line(this.getPos_x(), this.getPos_y(), go.getPos_x(), go\n .getPos_y());\n Enums.Direction touchDirection = GameUtils.getDirectionFromXY(target.getDX(),\n target.getDY());\n if (touchDirection == this.direction) {\n this.interactionTimeout = this.rechargeDuration;\n Player p = (Player) go;\n p.setBeerLevel(p.getBeerLevel() + 10);\n this.image = image_off;\n }\n }\n super.interact(go);\n }\n }",
"protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}",
"@Override\n public boolean isProgrammable() {\n return false;\n }",
"protected void enableActionCharacteristics()\n {\n Action action = new Action(\"Characteristics\");\n action.addOutputParameter(new ParameterRelated(\"VolumeMax\", iPropertyVolumeMax));\n action.addOutputParameter(new ParameterRelated(\"VolumeUnity\", iPropertyVolumeUnity));\n action.addOutputParameter(new ParameterRelated(\"VolumeSteps\", iPropertyVolumeSteps));\n action.addOutputParameter(new ParameterRelated(\"VolumeMilliDbPerStep\", iPropertyVolumeMilliDbPerStep));\n action.addOutputParameter(new ParameterRelated(\"BalanceMax\", iPropertyBalanceMax));\n action.addOutputParameter(new ParameterRelated(\"FadeMax\", iPropertyFadeMax));\n iDelegateCharacteristics = new DoCharacteristics();\n enableAction(action, iDelegateCharacteristics);\n }",
"public void setBlocking (Fighter f1, boolean[] inputs)\r\n {\r\n if (inputs[5] == true) //if the blocking button is held\r\n {\r\n if(f1.getBlocking() == 0) //if the fighter can block\r\n {\r\n f1.setBlocking(1); //the fighter is blocking\r\n }\r\n }\r\n }",
"public void enableFlyingMode()\n\t{\n\t\tthis.player.useFlyingMode = true;\n\t\tif(this.player.healthIn < 100)\n\t\t{\n\t\t\tthis.player.healthIn = 100;\n\t\t}\n\t}",
"@Override\n public boolean CanArmor() {\n return false;\n }",
"public void enableControls() \n\t{\n\t\tfor (MutablePocket thisPocket: playerPockets) // Enable each control in turn\n\t\t{\n\t\t\tthisPocket.enablePocket();\n\t\t}\n\n\t\tfor(ImmutablePocket thisPocket: goalPockets)\n\t\t{\n\t\t\tthisPocket.enablePocket();\n\t\t}\n\n\t}",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}",
"@Pointcut(\"(@annotation(javax.annotation.security.PermitAll) || @within(javax.annotation.security.PermitAll))\")\n public void permitAll() {\n }",
"void setTouchable(Boolean touchable);",
"public boolean canRequestPower();",
"public void setDamping(float ratio) { \n \tmouseJointDef.dampingRatio = ratio; \n }",
"public HitWall() {\n\t\ttouch_r = Settings.TOUCH_R;\n\t\ttouch_l = Settings.TOUCH_L;\n\t\tpilot = Settings.PILOT;\n\t}",
"public void lift(){\n\t\twhile(Math.abs(robot.lift1.getCurrentPosition()-robot.startingHeight)<3900&&opModeIsActive()){\n\t\t\trobot.lift1.setPower(1);\n\t\t\trobot.lift2.setPower(1);\n\t\t}\n\t\tlift(\"stop\");\n\t}",
"public void setVibrationOn() {\n\n }",
"@Override\r\n\tpublic void setAbilities() {\n\t\t\r\n\t}",
"public GetInRangeAndAimCommand() {\n xController = new PIDController(0.1, 1e-4, 1);\n yController = new PIDController(-0.1, 1e-4, 1);\n xController.setSetpoint(0);\n yController.setSetpoint(0);\n // xController.\n drive = DrivetrainSubsystem.getInstance();\n limelight = Limelight.getInstance();\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drive);\n\n }",
"private void setArmor() {\n\n if (VersionChecker.currentVersionIsUnder(12, 2)) return;\n if (!ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_ARMOR)) return;\n\n eliteMob.getEquipment().setItemInMainHandDropChance(0);\n eliteMob.getEquipment().setHelmetDropChance(0);\n eliteMob.getEquipment().setChestplateDropChance(0);\n eliteMob.getEquipment().setLeggingsDropChance(0);\n eliteMob.getEquipment().setBootsDropChance(0);\n\n if (hasCustomArmor) return;\n\n if (!(eliteMob instanceof Zombie || eliteMob instanceof PigZombie ||\n eliteMob instanceof Skeleton || eliteMob instanceof WitherSkeleton)) return;\n\n eliteMob.getEquipment().setBoots(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.AIR));\n\n if (eliteMobLevel >= 12)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.LEATHER_HELMET));\n\n if (eliteMobLevel >= 14)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.LEATHER_BOOTS));\n\n if (eliteMobLevel >= 16)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));\n\n if (eliteMobLevel >= 18)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));\n\n if (eliteMobLevel >= 20)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.CHAINMAIL_HELMET));\n\n if (eliteMobLevel >= 22)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.CHAINMAIL_BOOTS));\n\n if (eliteMobLevel >= 24)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.CHAINMAIL_LEGGINGS));\n\n if (eliteMobLevel >= 26)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.CHAINMAIL_CHESTPLATE));\n\n if (eliteMobLevel >= 28)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));\n\n if (eliteMobLevel >= 30)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));\n\n if (eliteMobLevel >= 32)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));\n\n if (eliteMobLevel >= 34)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));\n\n if (eliteMobLevel >= 36)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));\n\n if (eliteMobLevel >= 38)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));\n\n if (eliteMobLevel >= 40)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));\n\n if (eliteMobLevel >= 42)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));\n\n }",
"void changeTargetMode(boolean goRight);",
"public void setVmotionAcrossNetworkSupported(java.lang.Boolean vmotionAcrossNetworkSupported) {\r\n this.vmotionAcrossNetworkSupported = vmotionAcrossNetworkSupported;\r\n }",
"public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }",
"public void setIntakeLights(){\n \tintakeLights.set(true);\n }",
"public void setArmed(boolean b) {\n }",
"public void setSensorOn() {\n\n }",
"@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }",
"public void experimental_allowMultipleAdaptiveSelections() {\n this.allowMultipleAdaptiveSelections = true;\n }",
"protected void execute() {\n\t\tif (!isSafe) {\n\t\t\tRobot.wrist.motionMagicControl();\n\t\t\t\n\t\t}\n\t}",
"@Override\n public boolean isAIEnabled() {\n return false;\n }",
"public void setImmunity(boolean bool) {\r\n shieldImmune = bool;\r\n }",
"void setAllowFriendlyFire(boolean allowFriendlyFire);",
"public void ability(AbstractAbility ability) {\n\n logger.info(abilityInfo(map.getCurrentTurnHero(), ability));\n\n if (selectionX != -1 && !playerPerformingMove && !map.enemyPerformingMove()) {\n AbstractCharacter owner = map.getCurrentTurnHero();\n\n // Check range\n if (!(ability.inRange(owner.getX(), owner.getY(), selectionX, selectionY))) {\n logger.info(\"NOT IN RANGE.\");\n toAbilityInfoDialogue(\"NOT IN RANGE.\");\n return;\n }\n \tif (ability.onCooldown()) {\n \t\tlogger.info(\"ABILITY IS ON COOL-DOWN.\");\n toAbilityInfoDialogue(\"ABILITY IS ON COOL-DOWN.\");\n \t\treturn;\n \t}\n if (ability.getCostAP() > ((AbstractHero)owner).getActionPoints()) {\n \tlogger.info(\"NOT ENOUGH ABILITY POINTS.\");\n toAbilityInfoDialogue(\"NOT ENOUGH ABILITY POINTS.\");\n \treturn;\n }\n\n TargetDesignation targetDesignation;\n if (ability.canUseOnPoint()) {\n \ttargetDesignation = TargetDesignation.POINT;\n } else {\n \ttargetDesignation = getTargetDesignation(owner, selectionX, selectionY);\n }\n Thread abilityAnimationThread = new Thread(() -> playerAbilityHandler(owner, ability, targetDesignation));\n try {\n abilityAnimationThread.join();\n abilityAnimationThread.setDaemon(true);\n } catch (InterruptedException e) {\n logger.info(\"AAAAAAAAAAAAAAAAAAAAAAAAAAA\");\n Platform.exit();\n Thread.currentThread().interrupt();\n }\n\n if (targetDesignation == TargetDesignation.FRIEND && ability.canUseOnFriend()) {\n // Friend Character\n abilityAnimationThread.start();\n }\n else if (targetDesignation == TargetDesignation.FOE && ability.canUseOnFoe()) {\n // Foe Character OR Unknown Entity OR Targetable LiveTile\n\n if (!map.getTile(selectionX, selectionY).getEntities().isEmpty()\n &&!(map.getTile(selectionX, selectionY).getEntities().get(0) instanceof Targetable)) {\n logger.info(\"NOT A VALID TARGET.\");\n toAbilityInfoDialogue(\"NOT A VALID TARGET.\");\n return;\n }\n\n if(isMultiplayer()){\n multiplayerGameManager.enableTemporaryBlock();\n multiplayerGameManager.hookAttack(owner, ability, selectionX, selectionY);\n }\n\n abilityAnimationThread.start();\n }\n else if (ability.canUseOnPoint()){\n // Point\n abilityAnimationThread.start();\n }\n }\n gameChanged = true;\n }",
"public void update(EntityLivingBase target, IMorphing cap)\n {\n if (!Metamorph.proxy.config.disable_health)\n {\n this.setMaxHealth(target, this.health);\n }\n\n if (speed != 0.1F)\n {\n target.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(this.speed);\n }\n\n for (IAbility ability : abilities)\n {\n ability.update(target);\n }\n }",
"public final void mT__81() throws RecognitionException {\n try {\n int _type = T__81;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:81:7: ( 'capability' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:81:9: 'capability'\n {\n match(\"capability\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\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 }",
"@Override\n public void easyMode() {\n super.setHP(900);\n super.getFrontAttack().setBaseDamage(18.75);\n super.getRightAttack().setBaseDamage(18.75);\n super.getBackAttack().setBaseDamage(18.75);\n super.getLeftAttack().setBaseDamage(18.75);\n }",
"@Override\n protected void execute() {\n //Activate both lifters, throttled by height\n if (Robot.myLifter.getLeftEncoder() > 75) {\n Robot.myLifter.setLeftSpeed(-0.3);\n Robot.myLifter.setRightSpeed(-0.3);\n } else {\n Robot.myLifter.setLeftSpeed(-0.5);\n Robot.myLifter.setRightSpeed(-0.5);\n }\n \n }",
"public abstract void setTriggerOrAction();",
"protected void execute() {\n if (oi.getButton(1,3).get()){\n speedModifier = 0.6;\n }\n else if(oi.getButton(2,3).get()){\n speedModifier = 1;\n }\n else if(oi.getButton(1,2).get()&&oi.getButton(2, 2).get()){\n speedModifier = 0.75;\n }\n chassis.tankDrive((oi.getJoystick(1).getAxis(Joystick.AxisType.kY)*speedModifier), (oi.getJoystick(2).getAxis(Joystick.AxisType.kY)*speedModifier));\n //While no triggers are pressed the robot moves at .75 the joystick input\n }",
"public void setBoulderLockOff(){\r\n\t\tservoTarget = Constants.BALL_HOLDER_RETRACTED;\r\n\t}",
"public void onEnable(VirtualDevice device, Capability capability) {\n switch (capability) {\n case CAMERA:\n // Camera enabled successfully\n addLog(\"open camera success\");\n // Set the camera enable status to true\n cameraOpend.put(device.getDeviceId(), true);\n break;\n case DISPLAY:\n // The display is successfully enabled. Set the display enable status to true.\n addLog(\"open display success\");\n displayOpend.put(device.getDeviceId(), true);\n break;\n case MIC:\n // mic enabled successfully, set mic enabled status to true\n addLog(\"open mic success\");\n micOpend.put(device.getDeviceId(), true);\n break;\n case SPEAKER:\n // speaker enabled successfully, set speaker enabled status to true\n addLog(\"open speaker success\");\n speakerOpend.put(device.getDeviceId(), true);\n break;\n }\n }",
"public void setChargerTarget() {\n if (getEnemies().size() > 0) {\n ArrayList<RobotReference> enemies = getEnemies();\n RobotReference closestEnemy = enemies.get(0);\n if (chargerTarget == null && teamTarget != null) {\n for (RobotReference enemy : enemies) {\n if (!enemy.isTeammate()) {\n if (Vector2d.getDistanceTo(closestEnemy.getLocation(), getLocation()) > Vector2d.getDistanceTo(enemy.getLocation(), getLocation()))\n closestEnemy = enemy;\n }\n }\n chargerTarget = closestEnemy;\n } else {\n chargerTarget = enemies.get(0);\n }\n }\n }",
"public void setVibrationOff() {\n\n }",
"@Override\r\n\tpublic void act(SWActor a) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tassert(this.getTarget().hasCapability(Capability.FILLABLE));\r\n\t\tFillable fillableTarget = (Fillable) (this.getTarget());\r\n\t\tfillableTarget.fill();\r\n\t}",
"@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }",
"protected boolean canTriggerWalking() {\n/* 140 */ return false;\n/* */ }",
"AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }",
"public final void mT__18() throws RecognitionException {\n try {\n int _type = T__18;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:16:7: ( 'capability' )\n // InternalMyDsl.g:16:9: 'capability'\n {\n match(\"capability\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"protected boolean isAIEnabled()\n {\n return true;\n }",
"@Override\n protected void setInitiallyEnabled(boolean forConstruction)\n {\n super.setInitiallyEnabled(forConstruction);\n\n setEnabled(CogToolLID.NewWidget,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.NewWidgetJustWarn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.AddDesignDevices,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomToFit,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomNormal,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomIn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomOut,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetBackgroundImage,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetWidgetColor,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.SkinNone,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWireFrame,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWinXP,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinMacOSX,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinPalm,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.RenderAll,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.UnRender,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n view.setIsBackgroundAvailable(enable);\n\n setViewEnabledState(selection, ListenerIdentifierMap.NORMAL);\n }",
"public boolean onInteract(Entity x, Entity y) {\n //Empty stub\n return false;\n }",
"@Override\n public boolean applyThis() {\n Unit source = (Unit) ref.getSourceObj();\n Ref REF = ref.getCopy();\n Condition conditions = new OrConditions(\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_ITEM),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_WEAPON));\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n HeroItem item = (HeroItem) REF.getTargetObj();\n conditions = new Conditions(\n // ++ Max distance?\n new DistanceCondition(ref.getActive().getIntParam(PARAMS.RANGE, false) + \"\"),\n // new NumericCondition(\"{match_c_n_of_actions}\", \"1\"),\n new CanActCondition(KEYS.MATCH),\n new NotCondition(ConditionMaster.getSelfFilterCondition()),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.ANY_ALLY));\n // non-immobile, ++facing?\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n\n Unit unit = (Unit) REF.getTargetObj();\n\n boolean result = roll(source, unit, item);\n if (item instanceof QuickItem) {\n QuickItem quickItem = (QuickItem) item;\n source.removeQuickItem(quickItem);\n if (result) {\n unit.addQuickItem(quickItem);\n } else {\n dropped(item, unit);\n }\n\n } else {\n source.unequip(item, null);\n if (result) {\n unit.addItemToInventory(item); // TODO equip in hand if\n }\n// possible? spend AP?\n else {\n dropped(item, unit);\n }\n\n }\n // ref.getObj(KEYS.ITEM);\n return true;\n }"
]
| [
"0.5538901",
"0.5412244",
"0.531237",
"0.5200865",
"0.5153052",
"0.51147425",
"0.5111558",
"0.5063296",
"0.5057309",
"0.5054322",
"0.5033363",
"0.5028274",
"0.49935618",
"0.4980171",
"0.4956232",
"0.49403313",
"0.49377018",
"0.4926287",
"0.49158797",
"0.49062738",
"0.49016637",
"0.48987484",
"0.4895487",
"0.4886011",
"0.48828346",
"0.4867921",
"0.4848262",
"0.48463377",
"0.48383436",
"0.48372415",
"0.48365748",
"0.48252264",
"0.48225024",
"0.48183513",
"0.4816829",
"0.48051193",
"0.48039132",
"0.4798586",
"0.47982016",
"0.47955763",
"0.47853538",
"0.47852737",
"0.47801122",
"0.47738817",
"0.47718325",
"0.47698587",
"0.47666118",
"0.47605",
"0.47596848",
"0.47521383",
"0.47333506",
"0.47311074",
"0.47307134",
"0.47266328",
"0.47230548",
"0.47201",
"0.47108883",
"0.47094637",
"0.47064924",
"0.47059527",
"0.46972665",
"0.4690739",
"0.46903166",
"0.46824905",
"0.46824232",
"0.4677855",
"0.4676006",
"0.46741655",
"0.46724555",
"0.465509",
"0.46542984",
"0.46489668",
"0.46479517",
"0.46463346",
"0.4640392",
"0.46334788",
"0.4625045",
"0.46244568",
"0.46243122",
"0.46214825",
"0.46099228",
"0.46088886",
"0.4604778",
"0.46035537",
"0.46023086",
"0.4600155",
"0.45958892",
"0.4593296",
"0.45919466",
"0.45916307",
"0.45903504",
"0.45888242",
"0.4586965",
"0.4581452",
"0.45776656",
"0.45724142",
"0.45707685",
"0.4565738",
"0.45649755",
"0.45593035",
"0.4546622"
]
| 0.0 | -1 |
Returns the (perhaps partial) interaction capability of the target | final public int getEnabled() {
return enabledType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AbilityTarget getAbilityTarget();",
"public Capability getCapability() {\n\t\treturn _capability;\n\t}",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",
"@Override\n public Interaction getStandardInteraction()\n {\n return interaction;\n }",
"public final CapabilityBlock getCapability() {\n return cap;\n }",
"protected TargetFeatureComputer getTargetFeatureComputer(Voice v)\r\n {\r\n return v.getHalfphoneTargetFeatureComputer();\r\n }",
"public abstract boolean interactionPossible(Robot robot);",
"private static IReasoner checkForCapabilitiy(IReasoner reasoner, IReasonerCapability capability) {\r\n IReasoner result = null;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n if (desc.hasCapability(capability)) {\r\n result = reasoner;\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"Behavior getBehavior();",
"String getCapability_name();",
"Set<Capability> getAvailableCapability();",
"Object getTarget();",
"Object getTarget();",
"public InteractionMatrix<ConstrainedInteraction> getInteractionMatrix() {\n return this.getEnvironmentType().getInteractionMatrix();\n }",
"public OMCollection getTarget() {\r\n return IServer.associationHasTarget().dr(this).range();\r\n }",
"public Contig getTarget() { return target; }",
"public Living getTarget();",
"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 Boolean getWantIntent() {\n return false;\n }",
"public @Nullable String describeFirstNonRequestableCapability() {\n final long nonRequestable = (mNetworkCapabilities | mUnwantedNetworkCapabilities)\n & NON_REQUESTABLE_CAPABILITIES;\n\n if (nonRequestable != 0) {\n return capabilityNameOf(BitUtils.unpackBits(nonRequestable)[0]);\n }\n if (mLinkUpBandwidthKbps != 0 || mLinkDownBandwidthKbps != 0) return \"link bandwidth\";\n if (hasSignalStrength()) return \"signalStrength\";\n return null;\n }",
"public boolean canRequestPower();",
"public RaceCar getTarget() {\n return target;\n }",
"ITargetMode getCurrentTargetMode();",
"public abstract boolean isTarget();",
"public interface InteractionTarget extends org.opensourcephysics.display.Interactive {\n // Needs to extend Interactive for backwards compatibility\n\n public InteractionSource getSource ();\n\n public Point3D getHotspot (DrawingPanel _panel);\n\n public void updateHotspot (DrawingPanel _panel, Point3D _point);\n\n}",
"public abstract List<AbstractCapability> getCapabilities();",
"String getTarget();",
"String getTarget();",
"@Nullable String pistonBehavior();",
"ICapability getCapabilityById( String id );",
"public Ability getConfigurationSkill() {\n\n\n if (frameworkAbility.hasAdvantage(advantageCosmic.advantageName) || frameworkAbility.hasAdvantage(advantageNoSkillRollRequired.advantageName)) {\n return null;\n } else {\n ParameterList pl = frameworkAbility.getPowerParameterList();\n Ability skill = null;\n\n Object o = pl.getParameterValue(\"Skill\");\n if (o instanceof AbilityAlias) {\n skill = ((AbilityAlias) o).getAliasReferent();\n } else if (o instanceof Ability) {\n skill = (Ability) o;\n }\n\n return skill;\n }\n }",
"int getOffensiveMod(ActionType type);",
"public Capability negotiate(Capability agentCap) {\n if (!(agentCap instanceof CDMAcceleratorCap))\n return null;\n\n CDMAcceleratorCap host = (CDMAcceleratorCap) agentCap;\n return new CDMAcceleratorCap(host.supportMask & this.supportMask, DEF_MAXREADAHEADK);\n }",
"public String getCapabilityConfiguration() {\n return this.capabilityConfiguration;\n }",
"@Override\r\n\tpublic boolean action(L2PcInstance activeChar, L2Object target, boolean interact)\r\n\t{\n\t\tfinal int castleId = MercTicketManager.getInstance().getTicketCastleId(((L2ItemInstance) target).getItemId());\r\n\t\t\r\n\t\tif ((castleId > 0) && (!activeChar.isCastleLord(castleId) || activeChar.isInParty()))\r\n\t\t{\r\n\t\t\tif (activeChar.isInParty())\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Voce nao pode pegar mercenarios enquanto estiver em party.\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Somente o lord do castelo pode melhorar os mercenarios.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tactiveChar.setTarget(target);\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);\r\n\t\t}\r\n\t\telse if (!activeChar.isFlying())\r\n\t\t{\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_PICK_UP, target);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"Capabilities getCapabilities();",
"public void performAbility() { return; }",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"public boolean getCarry() {\n return mAndGate.getOutput();\n }",
"EReqOrCap getReq_cap();",
"Attribute getTarget();",
"boolean has(String capability);",
"public Player getTarget() {\n return target;\n }",
"public Mob getTarget() {\r\n return target.get();\r\n }",
"public InteractionSource getSource ();",
"public String getCapabilities() {\n return this.capabilities;\n }",
"int getDefensiveMod(ActionType type);",
"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 }",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"@Override\n public void interact(Object obj) {\n // TODO: Cave Code - Add additional Agility to the player while on this Tile\n }",
"N getTarget();",
"public int getMobilityFlag()\n\t {\n\t return 1;\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 }",
"public boolean canInteract(){\n\t\treturn false;\n\t}",
"public Spatial getTarget() {\r\n return target;\r\n }",
"Resource getAbilityResource();",
"public void toSelectingAttackTarget() {\n }",
"public ProtocolCommandSupport getCommandSupport() {\n return this._commandSupport_;\n }",
"public boolean hasObjective(){ return this.hasParameter(1); }",
"protected Vector<WorldObject> getCanProcess(String commandId, String targetId, int roomId)\n\t{\n\t\treturn null;\n\t}",
"@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 }",
"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 }",
"Permeability getPermeability();",
"public GameEntity getTarget() {\r\n\t\tif(mode == RadarMode.LOCKED) return currentTarget; else return null;\r\n\t}",
"public Target getTarget() {\n return target;\n }",
"@InVertex\n Object getTarget();",
"public FocusNode.EnumSupplyType[] willSupply() { return new FocusNode.EnumSupplyType[] { FocusNode.EnumSupplyType.TARGET }; }",
"public Formula encodeTarget() {\n\t\tConjunction result = new Conjunction(\"target\");\n\t\tSet<CArgument> T = CAF.getTarget();\n\t\tfor(CArgument t : T) {\n\t\t\tresult.addSubformula(new Atom(\"acc_\" + t.getName()));\n\t\t}\n\t\treturn result;\n\t}",
"Target target();",
"@Override\r\n\tpublic void specialAbility() {\n\t}",
"boolean isAchievable();",
"public dynamixel_command_t getArmCommand();",
"Inertial getInertial();",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"public Object getTarget()\n {\n return __m_Target;\n }",
"public List<String> capabilities() {\n return this.capabilities;\n }",
"public String getTarget() {\n return this.target;\n }",
"String getTarget() {\r\n return this.target;\r\n }",
"boolean isTargetStatistic();",
"public boolean isSelectingAttackTarget() {\n return false;\n }",
"float getMainUtteranceTargetLevel();",
"public Experiment getFullExperiment();",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public boolean isControllable() {\n return stats.isControllable();\n }",
"@Override\n public CapabilityPriorityLevel getMediaControlCapabilityLevel() {\n return CapabilityPriorityLevel.HIGH;\n }",
"public Player getInteractingPlayer() {\n\t\treturn interactWith;\n\t}",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"Feature getFeature();",
"Feature getFeature();",
"public Target getTarget() {\n\n return target;\n }",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();",
"@Override\r\n\tpublic boolean hasCapability(String methodName, Object target,\r\n\t\t\tObject[] arguments) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"public boolean canAttack(Figure target) {\n return true;\n }",
"public boolean getHitOrSplat() {\n return currentlyAbilityHit;\n }",
"public void testPhysicalInteractions() throws Exception {\n\t\tModel model = BioPaxUtil.read(new FileInputStream(getClass().getResource(\"/DIP_ppi.owl\").getFile()));\n\t\tMapBioPaxToCytoscape mapper = new MapBioPaxToCytoscape();\n\t\tmapper.doMapping(model);\n\n\t\tCyNetwork cyNetwork = createNetwork(\"network2\", mapper);\n\t\tint nodeCount = cyNetwork.getNodeCount();\n\t\tassertEquals(3, nodeCount);\n\n\t\t// First, find the Target Interaction: physicalInteraction1.\n\t\tint targetNodeIndex = 0;\n\t\tRootGraph rootGraph = cyNetwork.getRootGraph();\n\t\tIterator nodeIterator = cyNetwork.nodesIterator();\n\n\t\twhile (nodeIterator.hasNext()) {\n\t\t\tCyNode node = (CyNode) nodeIterator.next();\n\t\t\tString uri = Cytoscape.getNodeAttributes()\n\t .getStringAttribute(node.getIdentifier(), MapBioPaxToCytoscape.BIOPAX_RDF_ID);\n\t\t\tif (uri.endsWith(\"physicalInteraction1\")) {\n\t\t\t\ttargetNodeIndex = node.getRootGraphIndex();\n\t\t\t}\n\t\t}\n\n\t\t// Get All Edges Adjacent to this Node\n\t\tint[] edgeIndices = rootGraph.getAdjacentEdgeIndicesArray(targetNodeIndex, true, true, true);\n\n\t\t// There should be two edges; one for each participant\n\t\tassertEquals(2, edgeIndices.length);\n\t}",
"@Override\n\tpublic void onAction(L2PcInstance player, boolean interact)\n\t{\n\t\tif(!canTarget(player))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tplayer.setLastFolkNPC(this);\n\n\t\t// Check if the L2PcInstance already target the L2GuardInstance\n\t\tif(getObjectId() != player.getTargetId())\n\t\t{\n\t\t\t// Send a Server->Client packet MyTargetSelected to the L2PcInstance player\n\t\t\t// The color to display in the select window is White\n\t\t\tMyTargetSelected my = new MyTargetSelected(getObjectId(), 0);\n\t\t\tplayer.sendPacket(my);\n\n\t\t\t// Set the target of the L2PcInstance player\n\t\t\tplayer.setTarget(this);\n\n\t\t\t// Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client\n\t\t\tplayer.sendPacket(new ValidateLocation(this));\n\t\t}\n\t\telse if(interact)\n\t\t{\n\t\t\t// Check if the L2PcInstance is in the _aggroList of the L2GuardInstance\n\t\t\tif(containsTarget(player))\n\t\t\t{\n\t\t\t\t// Set the L2PcInstance Intention to AI_INTENTION_ATTACK\n\t\t\t\tplayer.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Calculate the distance between the L2PcInstance and the L2NpcInstance\n\t\t\t\tif(canInteract(player))\n\t\t\t\t{\n\t\t\t\t\t// Send a Server->Client packet SocialAction to the all L2PcInstance on the _knownPlayer of the L2NpcInstance\n\t\t\t\t\t// to display a social action of the L2GuardInstance on their client\n\t\t\t\t\t// Если НПЦ не разговаривает, то слать социалку приветствия собственно и не имеет смысла\n\t\t\t\t\tif(!Config.NON_TALKING_NPCS.contains(getNpcId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tbroadcastPacket(new SocialAction(getObjectId(), Rnd.get(8)));\n\t\t\t\t\t}\n\n\t\t\t\t\tList<Quest> qlsa = getTemplate().getEventQuests(Quest.QuestEventType.QUEST_START);\n\t\t\t\t\tList<Quest> qlst = getTemplate().getEventQuests(Quest.QuestEventType.ON_FIRST_TALK);\n\n\t\t\t\t\tif(qlsa != null && !qlsa.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tplayer.setLastQuestNpcObject(getObjectId());\n\t\t\t\t\t}\n\n\t\t\t\t\tif(qlst != null && qlst.size() == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tqlst.get(0).notifyFirstTalk(this, player);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tshowChatWindow(player, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Set the L2PcInstance Intention to AI_INTENTION_INTERACT\n\t\t\t\t\tplayer.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Send a Server->Client ActionFail to the L2PcInstance in order to avoid that the client wait another packet\n\t\tplayer.sendActionFailed();\n\t}",
"public boolean isFrameworkAbilityEnabled(Ability ability, Target target) {\n FrameworkAbility afa = getFrameworkAbility();\n if (ability instanceof FrameworkAbility) {\n return true;\n }\n ReconfigurationMode mode = getFrameworkMode();\n if (mode == ReconfigurationMode.WARNING_ONLY || mode == ReconfigurationMode.IMPLICIT_RECONFIG) {\n // Count the activated abilities\n int activePoints = 0;\n int count = getFrameworkAbilityInstanceGroupCount();\n for (int i = 0; i < count; i++) {\n Ability a = getFrameworkAbilityInstanceGroup(i).getCurrentInstance();\n if (a.isActivated(target)) {\n activePoints += a.getCPCost();\n }\n }\n\n int needed = 0;\n if (ability.isActivated(target) == false) {\n needed = ability.getCPCost();\n }\n\n if (getFrameworkPoolSize() < activePoints) {\n String s = \"<b>Framework Warning:</b> Variable Point Pool Framework is over-configured. \" + activePoints + \" active points are configured out of a pool of \" + getFrameworkPoolSize() + \".\";\n if (needed > 0) {\n s += \"A Pool of \" + (activePoints + needed) + \" is needed to activate \" + ability.getNameWithInstance() + \".\";\n }\n ability.setEnableMessage(s);\n if (mode == ReconfigurationMode.WARNING_ONLY) {\n ability.setEnableColor(Ability.getEnableErrorColor());\n return true;\n } else { // implicit mode...\n ability.setEnableColor(Ability.getEnableErrorColor());\n return false;\n }\n } else if (getFrameworkPoolSize() < activePoints + needed) {\n String s = \"<b>Framework Warning:</b> Variable Point Pool already has \" + activePoints + \" active points configured out of a pool of \" + getFrameworkPoolSize() + \".\";\n if (needed > 0) {\n s += \" A Pool of \" + (activePoints + needed) + \" is needed to activate \" + ability.getNameWithInstance() + \".\";\n }\n ability.setEnableMessage(s);\n if (mode == ReconfigurationMode.WARNING_ONLY) {\n ability.setEnableColor(Ability.getEnableWarningColor());\n return true;\n } else { // implicit mode...\n ability.setEnableColor(Ability.getEnableErrorColor());\n return false;\n }\n }\n } else if (mode == ReconfigurationMode.EXPLICIT_RECONFIG) {\n if (isAbilityConfigured(ability) == false) {\n // This needs to be much smarter\n\n String s = ability.getNameWithInstance() + \" is not currently configured in the framework. (Framework Mode is Explicit Reconfiguration.)\";\n ability.setEnableMessage(s);\n ability.setEnableColor(Ability.getEnableErrorColor());\n return false;\n }\n }\n return true;\n }"
]
| [
"0.622345",
"0.61955976",
"0.5864808",
"0.5649695",
"0.5632854",
"0.55650365",
"0.5542399",
"0.55022997",
"0.5452215",
"0.54390883",
"0.5433106",
"0.5406293",
"0.5406293",
"0.54027426",
"0.5391822",
"0.5383449",
"0.53825104",
"0.53644687",
"0.5345002",
"0.5325415",
"0.53210866",
"0.5304182",
"0.52932453",
"0.5281583",
"0.5281005",
"0.5261616",
"0.52512723",
"0.52512723",
"0.52453107",
"0.52254647",
"0.5222102",
"0.5211318",
"0.518841",
"0.5179212",
"0.5163784",
"0.5152984",
"0.5151469",
"0.514928",
"0.5132792",
"0.51315457",
"0.5129838",
"0.5119235",
"0.5116728",
"0.5115299",
"0.5110081",
"0.5093859",
"0.50701904",
"0.50540394",
"0.50409776",
"0.5037055",
"0.50268626",
"0.5026713",
"0.50180393",
"0.50053304",
"0.5000079",
"0.4994731",
"0.49945313",
"0.49848178",
"0.497923",
"0.49778292",
"0.4968966",
"0.49645075",
"0.49513853",
"0.49455726",
"0.4945154",
"0.49426827",
"0.4936257",
"0.49286196",
"0.4924577",
"0.48989114",
"0.48963606",
"0.4894703",
"0.48884735",
"0.4877707",
"0.4877707",
"0.48735666",
"0.48685747",
"0.48620498",
"0.48611575",
"0.4857201",
"0.48571187",
"0.48556757",
"0.4848781",
"0.48437923",
"0.48437923",
"0.48437923",
"0.48427978",
"0.48251462",
"0.48229402",
"0.4814641",
"0.4814641",
"0.48104465",
"0.48104465",
"0.4807344",
"0.4805722",
"0.47962928",
"0.4794778",
"0.47801393",
"0.47799528",
"0.47785258",
"0.4773853"
]
| 0.0 | -1 |
Returns the action command of this target | final public String getActionCommand() {
return command;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getActionCommand() {\n return actionCommand_;\n }",
"public int getActionCommand() {\n return actionCommand_;\n }",
"public String getAction() {\n\t\treturn action.get();\n\t}",
"public String getAction () {\n return action;\n }",
"public String getAction() {\r\n\t\treturn action;\r\n\t}",
"public String getAction() {\n\t\treturn action;\n\t}",
"public String getAction() {\n\t\treturn action;\n\t}",
"public String getAction() {\n\t\treturn action;\n\t}",
"public String getAction() {\n\t\treturn action;\n\t}",
"public String getAction() {\n return action;\n }",
"public String getAction() {\n return action;\n }",
"public String getAction() {\n return action;\n }",
"public String getAction() {\n return this.action;\n }",
"public String getAction() {\n return action;\n }",
"public int getAction() {\n return action;\n }",
"public int getAction() {\n\t\treturn action;\n\t}",
"public int getAction() {\n return action_;\n }",
"public int getAction() {\n return action_;\n }",
"public Action getAction() {\n return action;\n }",
"@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}",
"public Action getExecuteAction() {\n return this.data.getExecuteAction();\n }",
"public A getAction() {\r\n\t\treturn action;\r\n\t}",
"public String getActionArg() {\n\t\treturn actionArg;\n\t}",
"public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public int getAction()\n {\n return m_action;\n }",
"int getActionCommand();",
"public String getCommand(){\n return getCommand(null);\n }",
"@NonNull\n public Action getAction() {\n return this.action;\n }",
"public String getAction() {\n Object ref = action_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n }\n }",
"public Action getAction() {\n\treturn action;\n }",
"java.lang.String getCommand();",
"public RvSnoopAction getAction(String command);",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public UndoableAction getAction() {\n return (UndoableAction) super.getAction();\n }",
"public Method getActionMethod() {\n return this.method;\n }",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"public int getCommand() {\n return command_;\n }",
"public String getCommand() {\r\n return command;\r\n }",
"java.lang.String getCommandName();",
"public int getCommand() {\n return command_;\n }",
"String getCommand();",
"public com.vmware.converter.AlarmAction getAction() {\r\n return action;\r\n }",
"public Action getSelectedAction() {\n return selectedAction;\n }",
"public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}",
"public String Command() {\n\treturn command;\n }",
"public RepositoryActionType getAction() {\n\t\t\treturn action;\n\t\t}",
"public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public Class<?> getActionClass() {\n return this.action;\n }",
"public String getCommand() {\n\n return command;\n }",
"public Method getMethod() {\n\t\treturn this.currentAction.getMethod();\n\t}",
"public String getCommand() {\n return this.command;\n }",
"public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }",
"@Override\r\n\tpublic String getAction() {\n\t\tString action = null;\r\n\t\tif(caction.getSelectedIndex() == -1) {\r\n\t\t\treturn null;\r\n\t}\r\n\tif(caction.getSelectedIndex() >= 0) {\r\n\t\t\taction = caction.getSelectedItem().toString();\r\n\t}\r\n\t\treturn action;\r\n\t\r\n\t}",
"String getAction();",
"String getAction();",
"String getCommandName();",
"public String getActionName() {\n\t\treturn this.function;\n\t}",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"String getOnAction();",
"public POGOProtos.Rpc.CombatActionProto getMinigameAction() {\n if (minigameActionBuilder_ == null) {\n return minigameAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : minigameAction_;\n } else {\n return minigameActionBuilder_.getMessage();\n }\n }",
"public POGOProtos.Rpc.CombatActionProto getCurrentAction() {\n if (currentActionBuilder_ == null) {\n return currentAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : currentAction_;\n } else {\n return currentActionBuilder_.getMessage();\n }\n }",
"public String getActionId() {\n\t\treturn actionId;\n\t}",
"public String getProcessAction() {\n\t\treturn processAction;\n\t}",
"public String calcelAction() {\n\t\tthis.setViewOrNewAction(false);\n\t\treturn null;\n\t}",
"public String getCommand() { return command; }",
"BuildAction getBuildAction();",
"public String getCommandName() {\n\treturn verb;\n }",
"public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }",
"public void setActionCommand(String command) {\n this.command = command;\n }",
"public String getActionId() {\n return actionId;\n }",
"public abstract String getCommandName();",
"public abstract String getCommandName();",
"public int getActionIndex() {\n return actionIndex;\n }",
"public TSetAclAction getAction() {\n return this.action;\n }",
"public EventType getCommand(){\n return this.command;\n }",
"public String getDocAction() {\n\t\treturn (String) get_Value(\"DocAction\");\n\t}",
"public abstract Action getAction();",
"public Command click() {\r\n\t\treturn command;\r\n\t}",
"public GrouperActivemqPermissionAction getAction() {\r\n return this.action;\r\n }",
"public String getCmd() {\r\n return cmd;\r\n }",
"public String getUserAction() {\n return userAction;\n }",
"@java.lang.Override\n public POGOProtos.Rpc.CombatActionProto getMinigameAction() {\n return minigameAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : minigameAction_;\n }",
"public String getCommand(){\n return command;\n }",
"public abstract String getCommand();",
"@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}",
"public int getCmd() {\n return cmd_;\n }",
"public int getCmd() {\n return cmd_;\n }",
"public Long getActionId() {\n return actionId;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n command_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getActionType();",
"public Class getActionClass() {\n return actionClass;\n }",
"public MenuActionRequest getMenuAction() {\n\t\treturn menuAction;\n\t}",
"public Builder setActionCommand(int value) {\n bitField0_ |= 0x00000010;\n actionCommand_ = value;\n onChanged();\n return this;\n }",
"public Command getCurrentCommand();"
]
| [
"0.84135264",
"0.8388543",
"0.7917611",
"0.76619136",
"0.76351905",
"0.761125",
"0.761125",
"0.761125",
"0.761125",
"0.7571392",
"0.7571392",
"0.7571392",
"0.75230056",
"0.75043297",
"0.73140013",
"0.73131347",
"0.7290298",
"0.72509176",
"0.72399163",
"0.7237848",
"0.71640164",
"0.7118441",
"0.7089244",
"0.70883393",
"0.70859283",
"0.70844966",
"0.7063508",
"0.7044271",
"0.7024486",
"0.7019486",
"0.6962829",
"0.6924263",
"0.6903191",
"0.68943644",
"0.6889935",
"0.6878641",
"0.6844076",
"0.6836649",
"0.67640746",
"0.6760053",
"0.6755073",
"0.67472124",
"0.6747197",
"0.6738599",
"0.6736978",
"0.67137384",
"0.6712261",
"0.67112064",
"0.67080104",
"0.6704483",
"0.6704483",
"0.6700709",
"0.66953653",
"0.66895235",
"0.66894644",
"0.66844714",
"0.66717744",
"0.66715634",
"0.6665291",
"0.6665291",
"0.6648921",
"0.6640711",
"0.66342294",
"0.6624956",
"0.6601208",
"0.6600149",
"0.6583267",
"0.65111315",
"0.64915854",
"0.6477837",
"0.6466166",
"0.6423368",
"0.6397448",
"0.63836974",
"0.6382002",
"0.63706744",
"0.63706744",
"0.6367251",
"0.6367024",
"0.6349726",
"0.6339137",
"0.6333044",
"0.63279325",
"0.63231206",
"0.6317703",
"0.629374",
"0.6292007",
"0.6288571",
"0.6285166",
"0.6276152",
"0.62714493",
"0.62709284",
"0.6267653",
"0.6264181",
"0.6263918",
"0.6255309",
"0.6250379",
"0.624707",
"0.62255967",
"0.6224904"
]
| 0.8370902 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.